Skip to content

Commit 1cae909

Browse files
committed
Install Subway by extracting binary from acala/subway:v0.1.1 Docker image
The `v0.1.1` GitHub Release at AcalaNetwork/subway is missing its `x86_64-unknown-linux-musl.tar.gz` asset; the release workflow's `Build release binary` step failed (`cargo build --locked` mismatched the bumped `Cargo.toml` version), so the upload was skipped. The upstream tag still produces a working Docker image because `docker.yml` doesn't use `--locked`, so `acala/subway:v0.1.1` is the only working consumption path for v0.1.1. The image's binary lives at `/usr/local/bin/subway` (per Subway's Dockerfile); copying it out with `docker create` + `docker cp` lands in roughly the same wall time as the curl-and-untar path and unblocks consumption of PR #203's `request_timeout_seconds` config field.
1 parent 8eac503 commit 1cae909

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ jobs:
5757

5858
- name: Install Subway
5959
run: |
60-
curl -fsSL https://github.com/AcalaNetwork/subway/releases/download/v0.1.0/subway-v0.1.0-x86_64-unknown-linux-musl.tar.gz \
61-
| sudo tar -xz -C /usr/local/bin
60+
docker create --name subway-extract acala/subway:v0.1.1
61+
sudo docker cp subway-extract:/usr/local/bin/subway /usr/local/bin/subway
62+
docker rm subway-extract
6263
sudo chmod +x /usr/local/bin/subway
6364
subway --version
6465

.github/workflows/update-known-good.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ jobs:
9393
# rate-limiting from production endpoints during test runs
9494
- name: Install Subway
9595
run: |
96-
curl -fsSL https://github.com/AcalaNetwork/subway/releases/download/v0.1.0/subway-v0.1.0-x86_64-unknown-linux-musl.tar.gz \
97-
| sudo tar -xz -C /usr/local/bin
96+
docker create --name subway-extract acala/subway:v0.1.1
97+
sudo docker cp subway-extract:/usr/local/bin/subway /usr/local/bin/subway
98+
docker rm subway-extract
9899
sudo chmod +x /usr/local/bin/subway
99100
subway --version
100101

.github/workflows/update-snapshot.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ jobs:
4343

4444
- name: Install Subway
4545
run: |
46-
curl -fsSL https://github.com/AcalaNetwork/subway/releases/download/v0.1.0/subway-v0.1.0-x86_64-unknown-linux-musl.tar.gz \
47-
| sudo tar -xz -C /usr/local/bin
46+
docker create --name subway-extract acala/subway:v0.1.1
47+
sudo docker cp subway-extract:/usr/local/bin/subway /usr/local/bin/subway
48+
docker rm subway-extract
4849
sudo chmod +x /usr/local/bin/subway
4950
subway --version
5051

0 commit comments

Comments
 (0)