Skip to content
Snippets Groups Projects
Commit a7f61c3d authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Limpiando start.sh

parent 1b953436
Branches R20200306
No related tags found
No related merge requests found
......@@ -11,6 +11,6 @@ ENV BFANODEDIR=${BFANETWORKDIR}/node BFATOML=${BFANETWORKDIR}/config.toml
RUN mkdir ${BFANODEDIR} && ln -s ${BFANODEDIR} ${HOME}/.ethereum
USER ${USERNAME}
WORKDIR ${BFAHOME}
RUN rm -f package-lock.json ; git checkout ${GITBRANCH} && git pull
RUN git checkout package-lock.json ; git checkout ${GITBRANCH} && git pull
VOLUME $BFANETWORKDIR/cache
VOLUME $BFANODEDIR
......@@ -25,11 +25,10 @@ else
exit 1
fi
mounts="${name}_node:/home/bfa/bfa/${netdir}/node ${name}_cache:/home/bfa/bfa/${netdir}/cache"
mounts="-v ${name}_node:/home/bfa/bfa/${netdir}/node -v ${name}_cache:/home/bfa/bfa/${netdir}/cache"
ports="-p 8545:8545 -p 8546:8546 -p 30303:30303"
docker run --rm $mounts -u root bfaar/nodo:${tag} chown -R 30303:30303 /home/bfa
docker run $mounts --rm --user root bfaar/nodo:${tag} chown -R bfa:bfa /home/bfa/bfa/${netdir}/node /home/bfa/bfa/${netdir}/cache
# Run this just a single time.
# Docker itself makes sure it autostarts if it crashes or the server reboots.
docker run \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment