Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
ab28018f
Commit
ab28018f
authored
Feb 23, 2015
by
Knut Ahlers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved the container startup script to bin
parent
38269700
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Dockerfile
Dockerfile
+1
-1
bin/container_daemon
bin/container_daemon
+5
-0
No files found.
Dockerfile
View file @
ab28018f
...
...
@@ -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
\n
ipfs init
\n
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
\n
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
\n
ipfs
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
...
...
bin/container_daemon
0 → 100644
View file @
ab28018f
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment