This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eeb933a
commit 11d1673
Showing
7 changed files
with
87 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM mhart/alpine-node:10 | ||
|
||
ENV IPFS_VERSION=latest | ||
ENV IPFS_MONITORING=1 | ||
ENV IPFS_PATH=/root/.jsipfs | ||
ENV BUILD_DEPS='libnspr4 libnspr4-dev libnss3' | ||
|
||
RUN apk add --no-cache git | ||
RUN apk add --no-cache python | ||
RUN apk add --no-cache build-base | ||
|
||
RUN npm install --unsafe-perm -g ipfs@"$IPFS_VERSION" | ||
|
||
# Make the image a bit smaller | ||
RUN npm cache clear --force | ||
|
||
# Configure jsipfs | ||
RUN jsipfs init | ||
|
||
RUN jsipfs version | ||
|
||
# Allow connections from any host | ||
RUN sed -i.bak "s/127.0.0.1/0.0.0.0/g" $IPFS_PATH/config | ||
|
||
EXPOSE 4002 | ||
EXPOSE 4003 | ||
EXPOSE 5002 | ||
EXPOSE 9090 | ||
|
||
CMD jsipfs daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM mhart/alpine-node:10 | ||
|
||
ENV IPFS_VERSION=next | ||
ENV IPFS_MONITORING=1 | ||
ENV IPFS_PATH=/root/.jsipfs | ||
ENV BUILD_DEPS='libnspr4 libnspr4-dev libnss3' | ||
|
||
RUN apk add --no-cache git | ||
RUN apk add --no-cache python | ||
RUN apk add --no-cache build-base | ||
|
||
RUN npm install --unsafe-perm -g ipfs@"$IPFS_VERSION" | ||
|
||
# Make the image a bit smaller | ||
RUN npm cache clear --force | ||
|
||
# Configure jsipfs | ||
RUN jsipfs init | ||
|
||
RUN jsipfs version | ||
|
||
# Allow connections from any host | ||
RUN sed -i.bak "s/127.0.0.1/0.0.0.0/g" $IPFS_PATH/config | ||
|
||
EXPOSE 4002 | ||
EXPOSE 4003 | ||
EXPOSE 5002 | ||
EXPOSE 9090 | ||
|
||
CMD jsipfs daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.