Skip to content

Commit

Permalink
Moved the container startup script to bin
Browse files Browse the repository at this point in the history
  • Loading branch information
Luzifer committed Feb 22, 2015
1 parent 3826970 commit ab28018
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MAINTAINER Brian Tiger Chow <btc@perfmode.com>
ADD . /go/src/github.com/jbenet/go-ipfs
RUN cd /go/src/github.com/jbenet/go-ipfs/cmd/ipfs && go install

RUN echo -n "#!/bin/bash\nipfs init\nipfs config Addresses.API /ip4/0.0.0.0/tcp/5001\nipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080\nipfs daemon" > /usr/local/bin/start_ipfs && \
RUN cp /go/src/github.com/jbenet/go-ipfs/bin/container_daemon /usr/local/bin/start_ipfs && \
chmod 755 /usr/local/bin/start_ipfs

EXPOSE 4001 5001 8080
Expand Down
5 changes: 5 additions & 0 deletions bin/container_daemon
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
ipfs init
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
ipfs daemon

0 comments on commit ab28018

Please sign in to comment.