Skip to content

Commit

Permalink
Add multi-arch Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
unxnn committed Jan 24, 2022
1 parent bcfed0b commit 00d066f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "!*"
tags:
- "v*"
paths:
- 'charts/operator/docker/*'

jobs:
docker:
Expand Down
22 changes: 11 additions & 11 deletions charts/operator/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,27 @@ COPY --from=teku /opt/teku /opt/teku
RUN apt update && apt install curl unzip jq -y && rm -rf /var/apt/cache /var/lib/api/lists/*

RUN echo " ---> Install vault CLI" && \
curl -sSLO "https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip" && \
unzip vault_${VAULT_VERSION}_linux_amd64.zip && \
curl -sSLO "https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_$(dpkg --print-architecture).zip" && \
unzip vault_${VAULT_VERSION}_linux_$(dpkg --print-architecture).zip && \
mv vault /usr/local/bin/vault && \
rm -rf vault_${VAULT_VERSION}_linux_amd64.zip && \
rm -rf vault_${VAULT_VERSION}_linux_amd64 && \
rm -rf vault_${VAULT_VERSION}_linux_$(dpkg --print-architecture).zip && \
rm -rf vault_${VAULT_VERSION}_linux_$(dpkg --print-architecture) && \
chmod +x /usr/local/bin/vault

RUN echo " ---> Install prysm validator" && \
curl -sSLO "https://github.com/prysmaticlabs/prysm/releases/download/v${PRYSM_VALIDATOR_VERSION}/validator-v${PRYSM_VALIDATOR_VERSION}-linux-amd64" && \
mv validator-v${PRYSM_VALIDATOR_VERSION}-linux-amd64 /usr/local/bin/prysm-validator && \
curl -sSLO "https://github.com/prysmaticlabs/prysm/releases/download/v${PRYSM_VALIDATOR_VERSION}/validator-v${PRYSM_VALIDATOR_VERSION}-linux-$(dpkg --print-architecture)" && \
mv validator-v${PRYSM_VALIDATOR_VERSION}-linux-$(dpkg --print-architecture) /usr/local/bin/prysm-validator && \
chmod +x /usr/local/bin/prysm-validator

RUN echo " ---> Install lighthouse validator" && \
curl -sSLO "https://github.com/sigp/lighthouse/releases/download/v${LIGHTHOUSE_VALIDATOR_VERSION}/lighthouse-v${LIGHTHOUSE_VALIDATOR_VERSION}-x86_64-unknown-linux-gnu-portable.tar.gz" && \
tar xzvf lighthouse-v${LIGHTHOUSE_VALIDATOR_VERSION}-x86_64-unknown-linux-gnu-portable.tar.gz && \
curl -sSLO "https://github.com/sigp/lighthouse/releases/download/v${LIGHTHOUSE_VALIDATOR_VERSION}/lighthouse-v${LIGHTHOUSE_VALIDATOR_VERSION}-$(uname -i)-unknown-linux-gnu-portable.tar.gz" && \
tar xzvf lighthouse-v${LIGHTHOUSE_VALIDATOR_VERSION}-$(uname -i)-unknown-linux-gnu-portable.tar.gz && \
mv lighthouse /usr/local/bin/lighthouse-validator && \
rm -f lighthouse-v${LIGHTHOUSE_VALIDATOR_VERSION}-x86_64-unknown-linux-gnu-portable.tar.gz && \
rm -f lighthouse-v${LIGHTHOUSE_VALIDATOR_VERSION}-$(uname -i)-unknown-linux-gnu-portable.tar.gz && \
chmod +x /usr/local/bin/lighthouse-validator

RUN rm -f /usr/bin/sh /usr/bin/*less* /usr/bin/*grep* \
/usr/bin/*more* /usr/bin/*sed* /usr/bin/*head* \
RUN rm -f /usr/bin/*less* /usr/bin/*grep* \
/usr/bin/*more* /usr/bin/*head* \
/usr/bin/*diff* /usr/bin/*apt*

ENTRYPOINT ["/usr/bin/bash", "/data/scripts/validator-init.sh"]

0 comments on commit 00d066f

Please sign in to comment.