mirror of
https://github.com/embarklabs/embark-docker.git
synced 2025-02-14 16:46:46 +00:00
Initial Import
This commit is contained in:
parent
b1e607cb31
commit
ef7e8817ad
56
Dockerfile
Normal file
56
Dockerfile
Normal file
@ -0,0 +1,56 @@
|
||||
FROM node:8.11.3-stretch
|
||||
|
||||
MAINTAINER Andre Medeiros <andre@status.im>
|
||||
|
||||
ENV EMBARK_VERSION=3.1.3 \
|
||||
GANACHE_VERSION=6.1.4 \
|
||||
GETH_VERSION=1.8.11-dea1ce05 \
|
||||
IPFS_VERSION=0.4.15
|
||||
|
||||
# IPFS: 5001 8080
|
||||
# Go Ethereum: 30303/tcp 30301/udp 8545
|
||||
# Embark: 8000
|
||||
EXPOSE 5001 8080 30303/tcp 30301/udp 8545 8000
|
||||
|
||||
RUN adduser --disabled-password --shell /bin/bash --gecos "" embark \
|
||||
# Install geth
|
||||
&& curl -fsSLO --compressed "https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-amd64-${GETH_VERSION}.tar.gz" \
|
||||
&& tar -xvzf "geth-alltools-linux-amd64-${GETH_VERSION}.tar.gz" \
|
||||
&& for geth_tool in \
|
||||
abigen \
|
||||
bootnode \
|
||||
evm \
|
||||
geth \
|
||||
puppeth \
|
||||
rlpdump \
|
||||
swarm \
|
||||
wnode \
|
||||
; do \
|
||||
cp "geth-alltools-linux-amd64-${GETH_VERSION}/${geth_tool}" "/usr/local/bin/${geth_tool}"; \
|
||||
done \
|
||||
&& rm -rf "geth-alltools-linux-amd64-${GETH_VERSION}*"\
|
||||
# Install ipfs
|
||||
&& curl -fsSLO --compressed "https://dist.ipfs.io/go-ipfs/v${IPFS_VERSION}/go-ipfs_v${IPFS_VERSION}_linux-amd64.tar.gz" \
|
||||
&& tar -xvzf "go-ipfs_v${IPFS_VERSION}_linux-amd64.tar.gz" \
|
||||
&& cp go-ipfs/ipfs /usr/local/bin/ipfs \
|
||||
&& rm -rf go-ipfs "go-ipfs_v${IPFS_VERSION}_linux-amd64.tar.gz" \
|
||||
# Setup ~embark
|
||||
&& su - embark -c "mkdir /home/embark/.npm-packages" \
|
||||
&& su - embark -c "echo prefix=/home/embark/.npm-packages > /home/embark/.npmrc" \
|
||||
&& for directive in \
|
||||
"export NPM_PACKAGES=\$HOME/.npm-packages" \
|
||||
"export NODE_PATH=\$NPM_PACKAGES/lib/node_modules:\$NODE_PATH" \
|
||||
"export PATH=\$NPM_PACKAGES/bin:\$PATH" \
|
||||
; do \
|
||||
echo ${directive} >> /home/embark/.profile \
|
||||
&& echo ${directive} >> /home/embark/.bashrc; \
|
||||
done \
|
||||
# Install embark and the simulator
|
||||
&& su - embark -c "npm install -g embark@${EMBARK_VERSION} ganache-cli@${GANACHE_VERSION}" \
|
||||
# Cleanup build stuff
|
||||
&& echo "Done"
|
||||
|
||||
USER embark
|
||||
|
||||
CMD ["embark"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user