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
6c193625
Commit
6c193625
authored
Feb 24, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #800 from Luzifer/fix_dockerfile
Fix Dockerfile
parents
78b2e9ef
ab28018f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
Dockerfile
Dockerfile
+8
-6
bin/container_daemon
bin/container_daemon
+5
-0
No files found.
Dockerfile
View file @
6c193625
FROM
golang:1.
3
FROM
golang:1.
4
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
EXPOSE
4001 5001 4002/udp
RUN
cp
/go/src/github.com/jbenet/go-ipfs/bin/container_daemon /usr/local/bin/start_ipfs
&&
\
chmod
755 /usr/local/bin/start_ipfs
ENTRYPOINT
["ipfs"]
EXPOSE
4001 5001 8080
# 4001 = Swarm, 5001 = API, 8080 = HTTP transport
CMD
["daemon", "--init
"]
ENTRYPOINT
["/usr/local/bin/start_ipfs
"]
# build: docker build -t go-ipfs .
# run: docker run -p 4001:4001 -p 5001:5001 go-ipfs:latest
daemon --init
# run: docker run -p
4002:4002/udp
-p 4001:4001 -p 5001:5001 go-ipfs:latest
daemon --init
# run: docker run -p 4001:4001 -p 5001:5001 go-ipfs:latest
# run: docker run -p
8080:8080
-p 4001:4001 -p 5001:5001 go-ipfs:latest
bin/container_daemon
0 → 100644
View file @
6c193625
#!/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