Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose #18

Merged
merged 3 commits into from
Dec 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,14 @@ EXPOSE 8545 8546 30303 6060
RUN apk update
RUN apk add nano

# Add dockerize tool -------------------
RUN apk add --no-cache openssl
ENV DOCKERIZE_VERSION v0.6.1
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz


# CMD secrets/main.sh
ENTRYPOINT ["secrets/main.sh"]

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Image with tag latest will build from master branch automatically for every new

## Use the docker image:

This container uses a shared folder for the Autontiy data, so the node database and identity store will be persistent. If you want to start a fresh node with a new identity, make sure you delete the local Autonity folder first.
This container uses a shared folder for the Autontiy data, so the node database and identity store will be persistent. If you want to start a fresh node with a new identity, make sure you delete the local Autonity folder first. From `v0.7.1-bakerloo04`, this image has been updated so it is compatible with docker compose, with the new dockerize tool, which delays launching autonity until other dependencies have fully launched. These changes do not affect running autonity as a bare docker container.

To run with mining and full sync disabled:

Expand All @@ -28,7 +28,7 @@ docker run -d -ti --net=host \
--name services-testnet-agc \
--user $(id -u):$(id -g) \
-v $(pwd):/autonity \
clearmatics/services-testnet-agc:v0.7.1-bakerloo03 \
clearmatics/services-testnet-agc:v0.7.1-bakerloo04 \
--datadir=/autonity \
--nat extip:<IP_ADDRESS>
```
Expand All @@ -40,7 +40,7 @@ docker run -d --net=host \
--name services-testnet-agc \
--user $(id -u):$(id -g) \
-v $(pwd):/autonity \
clearmatics/services-testnet-afnc:v0.7.1-bakerloo03 \
clearmatics/services-testnet-afnc:v0.7.1-bakerloo04 \
--datadir=/autonity \
--nat extip:<IP_ADDRESS> \
--mine --minerthreads 1 --syncmode full
Expand Down