mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
containers/docker: use docker volumes
This commit is contained in:
parent
f273c64a94
commit
164df57c87
4 changed files with 18 additions and 8 deletions
|
|
@ -7,9 +7,12 @@ RUN \
|
||||||
(cd go-ethereum && make geth) && \
|
(cd go-ethereum && make geth) && \
|
||||||
cp go-ethereum/build/bin/geth /geth && \
|
cp go-ethereum/build/bin/geth /geth && \
|
||||||
apk del go git make gcc musl-dev && \
|
apk del go git make gcc musl-dev && \
|
||||||
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
|
rm -rf /go-ethereum && rm -rf /var/cache/apk/* && \
|
||||||
|
mkdir /datadir
|
||||||
|
|
||||||
EXPOSE 8545
|
EXPOSE 8545
|
||||||
EXPOSE 30303
|
EXPOSE 30303
|
||||||
|
|
||||||
ENTRYPOINT ["/geth"]
|
VOLUME /datadir
|
||||||
|
|
||||||
|
ENTRYPOINT ["/geth", "--datadir=/datadir"]
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,10 @@ RUN apt-get update && \
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 923F6CA9 && \
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 923F6CA9 && \
|
||||||
echo "deb http://ppa.launchpad.net/ethereum/ethereum-dev/ubuntu wily main" | tee -a /etc/apt/sources.list.d/ethereum.list && \
|
echo "deb http://ppa.launchpad.net/ethereum/ethereum-dev/ubuntu wily main" | tee -a /etc/apt/sources.list.d/ethereum.list && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -q -y geth
|
apt-get install -q -y geth && \
|
||||||
|
mkdir /datadir
|
||||||
|
|
||||||
EXPOSE 8545
|
EXPOSE 8545
|
||||||
EXPOSE 30303
|
EXPOSE 30303
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/geth"]
|
ENTRYPOINT ["/usr/bin/geth", "--datadir=/datadir"]
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,12 @@ RUN \
|
||||||
(cd go-ethereum && make geth) && \
|
(cd go-ethereum && make geth) && \
|
||||||
cp go-ethereum/build/bin/geth /geth && \
|
cp go-ethereum/build/bin/geth /geth && \
|
||||||
apk del go git make gcc musl-dev && \
|
apk del go git make gcc musl-dev && \
|
||||||
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
|
rm -rf /go-ethereum && rm -rf /var/cache/apk/* && \
|
||||||
|
mkdir /datadir
|
||||||
|
|
||||||
EXPOSE 8545
|
EXPOSE 8545
|
||||||
EXPOSE 30303
|
EXPOSE 30303
|
||||||
|
|
||||||
ENTRYPOINT ["/geth"]
|
VOLUME /datadir
|
||||||
|
|
||||||
|
ENTRYPOINT ["/geth", "--datadir=/datadir"]
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,12 @@ RUN apt-get update && \
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 923F6CA9 && \
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 923F6CA9 && \
|
||||||
echo "deb http://ppa.launchpad.net/ethereum/ethereum/ubuntu wily main" | tee -a /etc/apt/sources.list.d/ethereum.list && \
|
echo "deb http://ppa.launchpad.net/ethereum/ethereum/ubuntu wily main" | tee -a /etc/apt/sources.list.d/ethereum.list && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -q -y geth
|
apt-get install -q -y geth && \
|
||||||
|
mkdir /datadir
|
||||||
|
|
||||||
EXPOSE 8545
|
EXPOSE 8545
|
||||||
EXPOSE 30303
|
EXPOSE 30303
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/geth"]
|
VOLUME /datadir
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/bin/geth", "--datadir=/datadir"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue