Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions starship/docker/chains/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ ARG BASE_IMAGE
ARG VERSION
FROM ${BASE_IMAGE}:${VERSION} AS source

FROM alpine:3.17
FROM alpine:3.22

ARG BIN_PATH=/bin
ARG LIB_PATH=/lib

LABEL org.opencontainers.image.source="https://github.com/hyperweb-io/starship"

COPY --from=source /bin /usr/bin
COPY --from=source /lib /usr/lib
COPY --from=source ${BIN_PATH} /usr/bin
COPY --from=source ${LIB_PATH} /usr/lib

# Set up dependencies
ENV PACKAGES curl make bash jq sed
ENV PACKAGES="curl make bash jq sed"

# Install minimum necessary dependencies
RUN apk add --no-cache $PACKAGES
Expand Down
4 changes: 4 additions & 0 deletions starship/docker/chains/build-docker-chains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ build_chain_tag() {

local base=$(yq -r ".chains[] | select(.name==\"$chain\") | .base" versions.yaml)
local dockerfile=$(yq -r ".chains[] | select(.name==\"$chain\") | .file // \"Dockerfile\"" versions.yaml)
local bin_path=$(yq -r ".chains[] | select(.name==\"$chain\") | .bin_path // \"/bin\"" versions.yaml)
local lib_path=$(yq -r ".chains[] | select(.name==\"$chain\") | .lib_path // \"/lib\"" versions.yaml)

if [[ "$FORCE" -ne 1 ]]; then
if image_tag_exists $DOCKER_REPO/$chain $tag; then
Expand All @@ -75,6 +77,8 @@ build_chain_tag() {
. -f $dockerfile \
--build-arg BASE_IMAGE=$base \
--build-arg VERSION=$tag \
--build-arg BIN_PATH=$bin_path \
--build-arg LIB_PATH=$lib_path \
$buildx_args && break
color red "failed to build docker image, retrying in 5 seconds, retry: $n"
sleep 5
Expand Down
19 changes: 8 additions & 11 deletions starship/docker/chains/versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@ chains:
- v24.0.3
- v23.0.0
- name: gaia
base: ghcr.io/strangelove-ventures/heighliner/gaia
tags:
- v24.0.0
- v23.3.0
- v23.2.0
- v23.1.1
- v21.0.1
- v19.2.0
- v19.1.0
- v18.1.0
- v18.0.0
base: ghcr.io/cosmos/gaia
bin_path: /usr/local/bin
tags:
- v27.0.0
- v26.0.0
- v25.3.2
- v25.2.0
- v25.1.1
- name: stride
base: ghcr.io/strangelove-ventures/heighliner/stride
tags:
Expand Down
Loading