Skip to content

Commit

Permalink
build(docker): remove core source and add channel support (#2274)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian69 authored and faustbrian committed Mar 21, 2019
1 parent ebbbc8b commit ffd7b19
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker/production/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ WORKDIR /home/node/core

ADD docker/production/entrypoint.sh /entrypoint.sh

COPY ./ /home/node/core
ARG core_channel=latest

RUN apk add --no-cache --virtual .build-deps make gcc g++ python git \
&& apk add --no-cache bash sudo git openntpd openssl \
&& npm i pm2 -g --loglevel notice \
&& yarn global add @arkecosystem/core \
&& su node -c "yarn global add @arkecosystem/core@${core_channel}" \
&& yarn cache clean \
&& apk del .build-deps \
&& echo 'node ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
Expand Down
1 change: 0 additions & 1 deletion docker/production/devnet/docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ services:
- ~/.config/ark-core:/home/node/.config/ark-core
- ~/.local/share/ark-core:/home/node/.local/share/ark-core
- ~/.local/state/ark-core:/home/node/.local/state/ark-core
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./enc:/run/secrets
networks:
Expand Down
1 change: 0 additions & 1 deletion docker/production/devnet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ services:
- ~/.config/ark-core:/home/node/.config/ark-core
- ~/.local/share/ark-core:/home/node/.local/share/ark-core
- ~/.local/state/ark-core:/home/node/.local/state/ark-core
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./enc:/run/secrets
networks:
Expand Down
1 change: 0 additions & 1 deletion docker/production/mainnet/docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ services:
- ~/.config/ark-core:/home/node/.config/ark-core
- ~/.local/share/ark-core:/home/node/.local/share/ark-core
- ~/.local/state/ark-core:/home/node/.local/state/ark-core
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./enc:/run/secrets
networks:
Expand Down
1 change: 0 additions & 1 deletion docker/production/mainnet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ services:
- ~/.config/ark-core:/home/node/.config/ark-core
- ~/.local/share/ark-core:/home/node/.local/share/ark-core
- ~/.local/state/ark-core:/home/node/.local/state/ark-core
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./enc:/run/secrets
networks:
Expand Down

0 comments on commit ffd7b19

Please sign in to comment.