Skip to content

Commit

Permalink
update docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
1xstj committed Jan 23, 2024
1 parent f81a3e5 commit 2770c75
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

push:
branches: [main]
branches: [main, update-docker-container]
tags: ["v*.*.*"]
pull_request:
branches: [main]
Expand Down
10 changes: 1 addition & 9 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,11 @@ The (Provided Dockerfile)[./Tangle.Dockerfile] is used as a base file to build d

You can build it by executing the following commands:

**Standalone node**
**Tangle node**

Execute the following script:

```sh
./scripts/build-standalone-docker.sh
```


**Parachain Node**

Execute the following script:

```sh
./scripts/build-parachain-docker.sh
```
8 changes: 6 additions & 2 deletions docker/Tangle.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,9 @@ ENV BINARY=${BINARY}

COPY --from=builder /tangle/target/release/${BINARY} /usr/local/bin

EXPOSE 30333 9933 9944 9615
VOLUME ["/data"]
# check if executable works in this container
RUN /usr/local/bin/tangle --version

EXPOSE 30333 9933 9944
VOLUME ["/tangle"]
ENTRYPOINT ["/usr/local/bin/tangle "]
6 changes: 2 additions & 4 deletions docker/tangle-standalone/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Docker compose file to start tangle parachain collator that connects to tangle testnet

# Docker compose file to start tangle node
version: "3.7"
services:

Expand All @@ -8,8 +7,7 @@ services:
network_mode: host
entrypoint: /tangle
command:
- "--chain"
- "/var/lib/data/arana-alpha.json"
- "--chain=tangle-testnet"
- "--validator"
- "--prometheus-external"
ports:
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-standalone-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PROJECT_ROOT=$(git rev-parse --show-toplevel)
cd "$PROJECT_ROOT"

# Find the current version from Cargo.toml
VERSION=$(grep "^version" ./standalone/node/Cargo.toml | grep -E -o "([0-9\.]+)")
VERSION=$(grep "^version" ./node/Cargo.toml | grep -E -o "([0-9\.]+)")
GITUSER=webb-tools
IMAGE_NAME=tangle

Expand Down

0 comments on commit 2770c75

Please sign in to comment.