Skip to content

Commit bf50e5a

Browse files
authored
Publish official docker images for the Nimbus validator client (#4439)
Fixes #4426
1 parent bd8f082 commit bf50e5a

File tree

4 files changed

+71
-3
lines changed

4 files changed

+71
-3
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
username: ${{ secrets.DOCKERHUB_USERNAME }}
4747
password: ${{ secrets.DOCKERHUB_TOKEN }}
48-
- name: Build and push a Docker image for end users
48+
- name: Build and push a Docker images for end users
4949
run: |
5050
cd dist
5151
tar -xzf ${{ steps.make_dist.outputs.archive }}
@@ -56,6 +56,10 @@ jobs:
5656
DOCKER_BUILDKIT=1 docker build -f Dockerfile.amd64 -t statusim/nimbus-eth2:amd64-${TAG} -t statusim/nimbus-eth2:amd64-latest .
5757
docker push statusim/nimbus-eth2:amd64-${TAG}
5858
docker push statusim/nimbus-eth2:amd64-latest
59+
60+
DOCKER_BUILDKIT=1 docker build -f Dockerfile.vc.amd64 -t statusim/nimbus-validator-client:amd64-${TAG} -t statusim/nimbus-validator-client:amd64-latest .
61+
docker push statusim/nimbus-validator-client:amd64-${TAG}
62+
docker push statusim/nimbus-validator-client:amd64-latest
5963
- name: Setup ruby # Needed for fpm
6064
uses: ruby/setup-ruby@v1
6165
with:
@@ -118,7 +122,7 @@ jobs:
118122
with:
119123
username: ${{ secrets.DOCKERHUB_USERNAME }}
120124
password: ${{ secrets.DOCKERHUB_TOKEN }}
121-
- name: Build and push a Docker image for end users
125+
- name: Build and push a Docker images for end users
122126
run: |
123127
cd dist
124128
tar -xzf ${{ steps.make_dist.outputs.archive }}
@@ -127,9 +131,14 @@ jobs:
127131
REFNAME="${{ github.ref }}"
128132
TAG="${REFNAME#refs/tags/}"
129133
cp -a /usr/bin/qemu-aarch64-static .
134+
130135
DOCKER_BUILDKIT=1 docker build -f Dockerfile.arm64 -t statusim/nimbus-eth2:arm64-${TAG} -t statusim/nimbus-eth2:arm64-latest .
131136
docker push statusim/nimbus-eth2:arm64-${TAG}
132137
docker push statusim/nimbus-eth2:arm64-latest
138+
139+
DOCKER_BUILDKIT=1 docker build -f Dockerfile.vc.arm64 -t statusim/nimbus-validator-client:arm64-${TAG} -t statusim/nimbus-validator-client:arm64-latest .
140+
docker push statusim/nimbus-validator-client:arm64-${TAG}
141+
docker push statusim/nimbus-validator-client:arm64-latest
133142
- name: Setup ruby # Needed for fpm
134143
uses: ruby/setup-ruby@v1
135144
with:
@@ -192,7 +201,7 @@ jobs:
192201
with:
193202
username: ${{ secrets.DOCKERHUB_USERNAME }}
194203
password: ${{ secrets.DOCKERHUB_TOKEN }}
195-
- name: Build and push a Docker image for end users
204+
- name: Build and push a Docker images for end users
196205
run: |
197206
cd dist
198207
tar -xzf ${{ steps.make_dist.outputs.archive }}
@@ -204,6 +213,11 @@ jobs:
204213
DOCKER_BUILDKIT=1 docker build -f Dockerfile.arm -t statusim/nimbus-eth2:arm-${TAG} -t statusim/nimbus-eth2:arm-latest .
205214
docker push statusim/nimbus-eth2:arm-${TAG}
206215
docker push statusim/nimbus-eth2:arm-latest
216+
217+
DOCKER_BUILDKIT=1 docker build -f Dockerfile.vc.arm -t statusim/nimbus-validator-client:arm-${TAG} -t statusim/nimbus-validator-client:arm-latest .
218+
docker push statusim/nimbus-validator-client:arm-${TAG}
219+
docker push statusim/nimbus-validator-client:arm-latest
220+
207221
- name: Setup ruby # Needed for fpm
208222
uses: ruby/setup-ruby@v1
209223
with:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM debian:bullseye-slim
2+
3+
SHELL ["/bin/bash", "-c"]
4+
5+
# Likely to match the first regular user:group created on the host.
6+
RUN addgroup --gid 1000 user; \
7+
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
8+
9+
USER user
10+
11+
STOPSIGNAL SIGINT
12+
13+
COPY "nimbus-eth2/build/nimbus_validator_client" "/home/user/nimbus_validator_client"
14+
WORKDIR "/home/user/"
15+
ENTRYPOINT ["/home/user/nimbus_validator_client"]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM arm32v7/debian:bullseye-slim
2+
3+
SHELL ["/bin/bash", "-c"]
4+
5+
# We need the host's registered binfmt_misc "interpreter" inside the container,
6+
# for that transparent virtualisation to work.
7+
COPY "qemu-arm-static" "/usr/bin/"
8+
9+
# Likely to match the first regular user:group created on the host.
10+
RUN addgroup --gid 1000 user; \
11+
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
12+
13+
USER user
14+
15+
STOPSIGNAL SIGINT
16+
17+
COPY "nimbus-eth2/build/nimbus_validator_client" "/home/user/nimbus_validator_client"
18+
WORKDIR "/home/user/"
19+
ENTRYPOINT ["/home/user/nimbus_validator_client"]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM arm64v8/debian:bullseye-slim
2+
3+
SHELL ["/bin/bash", "-c"]
4+
5+
# We need the host's registered binfmt_misc "interpreter" inside the container,
6+
# for that transparent virtualisation to work.
7+
COPY "qemu-aarch64-static" "/usr/bin/"
8+
9+
# Likely to match the first regular user:group created on the host.
10+
RUN addgroup --gid 1000 user; \
11+
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
12+
13+
USER user
14+
15+
STOPSIGNAL SIGINT
16+
17+
COPY "nimbus-eth2/build/nimbus_validator_client" "/home/user/nimbus_validator_client"
18+
WORKDIR "/home/user/"
19+
ENTRYPOINT ["/home/user/nimbus_validator_client"]
20+

0 commit comments

Comments
 (0)