Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial commit of ipfs support #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions files/ipfs-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"Addresses": {
"Swarm": [
"/ip4/0.0.0.0/tcp/4001"
],
"API": "/ip4/127.0.0.1/tcp/5001",
"Gateway": "/ip4/127.0.0.1/tcp/8080",
"Bootstrap": [
""
]
}
17 changes: 17 additions & 0 deletions ipfs-with-webui/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ipfs/go-ipfs
#FROM alpine:3.3

EXPOSE 3000

RUN apk add --update git nodejs

RUN cd /root &&\
git clone https://github.com/ipfs/webui &&\
cd webui &&\
# Remove all build-time dependencies
apk del --purge git

ADD start.sh /root/start.sh
RUN chmod +x /root/start.sh

ENTRYPOINT /root/start.sh
9 changes: 9 additions & 0 deletions ipfs-with-webui/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -e

cd /root/webui

# ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://localhost:3000"]'
# ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
# ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]
/usr/local/bin/start_ipfs $@