-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update docker files for prysm docker files
- Loading branch information
Showing
4 changed files
with
54 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
ARG BASE_IMAGE | ||
ARG VERSION | ||
FROM ${BASE_IMAGE}:${VERSION} AS source | ||
|
||
FROM golang:1.21-bullseye | ||
FROM golang:1.22.0-bullseye | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/cosmology-tech/starship" | ||
|
||
COPY --from=source /beacon-chain /usr/bin | ||
# Set up dependencies | ||
ENV PACKAGES curl make bash jq sed | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
jq \ | ||
curl \ | ||
make \ | ||
bash \ | ||
jq \ | ||
sed \ | ||
build-essential \ | ||
ca-certificates \ | ||
libssl-dev \ | ||
unzip \ | ||
zip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
# Install minimum necessary dependencies | ||
RUN apt-get update --yes && \ | ||
apt-get install $PACKAGES --no-install-recommends --yes && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /opt | ||
|
||
# Download and install the beacon-chain binary | ||
RUN ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') && \ | ||
PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]') && \ | ||
BINARY_NAME="beacon-chain-${VERSION}-${PLATFORM}-${ARCH}" && \ | ||
echo "Downloading binary: $BINARY_NAME" && \ | ||
curl -LO https://github.com/prysmaticlabs/prysm/releases/download/${VERSION}/$BINARY_NAME && \ | ||
chmod +x $BINARY_NAME && \ | ||
mv $BINARY_NAME /usr/bin/beacon-chain | ||
|
||
# Verify installation | ||
RUN beacon-chain --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
ARG BASE_IMAGE | ||
ARG VERSION | ||
FROM ${BASE_IMAGE}:${VERSION} AS source | ||
|
||
FROM alpine:3.17 | ||
FROM golang:1.22.0-bullseye | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/cosmology-tech/starship" | ||
|
||
COPY --from=source /prysmctl /usr/bin | ||
|
||
# Set up dependencies | ||
ENV PACKAGES curl make bash jq sed | ||
|
||
# Install minimum necessary dependencies | ||
RUN apk add --no-cache $PACKAGES | ||
RUN apt-get update --yes && \ | ||
apt-get install $PACKAGES --no-install-recommends --yes && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /opt | ||
|
||
# Download and install the prysmctl binary | ||
RUN ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') && \ | ||
PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]') && \ | ||
BINARY_NAME="prysmctl-${VERSION}-${PLATFORM}-${ARCH}" && \ | ||
echo "Downloading binary: $BINARY_NAME" && \ | ||
curl -LO https://github.com/prysmaticlabs/prysm/releases/download/${VERSION}/$BINARY_NAME && \ | ||
chmod +x $BINARY_NAME && \ | ||
mv $BINARY_NAME /usr/bin/prysmctl | ||
|
||
# Verify installation | ||
RUN prysmctl --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
ARG BASE_IMAGE | ||
ARG VERSION | ||
FROM ${BASE_IMAGE}:${VERSION} AS source | ||
|
||
FROM alpine:3.17 | ||
FROM golang:1.22.0-bullseye | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/cosmology-tech/starship" | ||
|
||
COPY --from=source /validator /usr/bin | ||
|
||
# Set up dependencies | ||
ENV PACKAGES curl make bash jq sed | ||
|
||
# Install minimum necessary dependencies | ||
RUN apk add --no-cache $PACKAGES | ||
RUN apt-get update --yes && \ | ||
apt-get install $PACKAGES --no-install-recommends --yes && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /opt | ||
|
||
# Download and install the validator binary | ||
RUN ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') && \ | ||
PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]') && \ | ||
BINARY_NAME="validator-${VERSION}-${PLATFORM}-${ARCH}" && \ | ||
echo "Downloading binary: $BINARY_NAME" && \ | ||
curl -LO https://github.com/prysmaticlabs/prysm/releases/download/${VERSION}/$BINARY_NAME && \ | ||
chmod +x $BINARY_NAME && \ | ||
mv $BINARY_NAME /usr/bin/validator | ||
|
||
# Verify installation | ||
RUN validator --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters