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
18 changes: 16 additions & 2 deletions .gitlab/ci/container-build.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,20 @@ manifest:rust:
- generate-environment
- container:rust

container:definitions:
extends:
- .single-image-build-base
needs:
- generate-environment
- manifest:rust

manifest:definitions:
extends:
- .manifest-create-base
needs:
- generate-environment
- container:definitions

container:aquila:
extends:
- .single-image-build-base
Expand All @@ -136,7 +150,7 @@ container:draco:
- .variant-image-build-base
needs:
- generate-environment
- manifest:rust
- manifest:definitions
variables:
NEED_PROJECT_DOWNLOAD: 'true'
parallel:
Expand Down Expand Up @@ -171,7 +185,7 @@ container:taurus:
- .single-image-build-base
needs:
- generate-environment
- manifest:rust
- manifest:definitions
variables:
NEED_PROJECT_DOWNLOAD: 'true'

Expand Down
16 changes: 16 additions & 0 deletions container/definitions/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ARG RETICULUM_IMAGE_TAG=local

FROM ghcr.io/code0-tech/reticulum/ci-builds/rust:$RETICULUM_IMAGE_TAG

WORKDIR /

RUN apk add openssl-dev openssl-libs-static pkgconfig

# renovate: datasource=crate depName=code0-cli
ARG CODE0_CLI_VERSION=0.0.8
RUN cargo install --version $CODE0_CLI_VERSION code0-cli

# renovate: datasource=github-releases depName=code0-tech/code0-definition versioning=regex:^def-(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)$
ARG DEFINITION_VERSION=def-0.0.20
LABEL org.opencontainers.image.version=$DEFINITION_VERSION
RUN code0-cli download -t $DEFINITION_VERSION
14 changes: 3 additions & 11 deletions container/draco/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ARG RETICULUM_IMAGE_TAG=local

FROM ghcr.io/code0-tech/reticulum/ci-builds/definitions:$RETICULUM_IMAGE_TAG AS definitions

FROM ghcr.io/code0-tech/reticulum/ci-builds/rust:$RETICULUM_IMAGE_TAG AS builder
ARG VARIANT

Expand All @@ -12,21 +14,11 @@ RUN sed -i "s/version = \"0.0.0\"/version = \"$RETICULUM_IMAGE_TAG\"/" Cargo.tom
WORKDIR /draco/adapters/$VARIANT
RUN cargo build --release

RUN apk add openssl-dev openssl-libs-static pkgconfig

# renovate: datasource=crate depName=code0-cli
ARG CODE0_CLI_VERSION=0.0.8
RUN cargo install --version $CODE0_CLI_VERSION code0-cli

# renovate: datasource=github-releases depName=code0-tech/code0-definition versioning=regex:^def-(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)$
ARG DEFINITION_VERSION=def-0.0.19
RUN code0-cli download -f $VARIANT -t $DEFINITION_VERSION

FROM alpine:3.22
ARG VARIANT

RUN apk --update add libc6-compat
COPY --from=builder /draco/target/release/$VARIANT /draco
COPY --from=builder /draco/adapters/$VARIANT/definitions /definitions
COPY --from=definitions /definitions/$VARIANT /definitions/$VARIANT

CMD ["/draco"]
14 changes: 3 additions & 11 deletions container/taurus/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ARG RETICULUM_IMAGE_TAG=local

FROM ghcr.io/code0-tech/reticulum/ci-builds/definitions:$RETICULUM_IMAGE_TAG AS definitions

FROM ghcr.io/code0-tech/reticulum/ci-builds/rust:$RETICULUM_IMAGE_TAG AS builder

WORKDIR /taurus
Expand All @@ -10,20 +12,10 @@ RUN sed -i "s/version = \"0.0.0\"/version = \"$RETICULUM_IMAGE_TAG\"/" Cargo.tom

RUN cargo build --release

RUN apk add openssl-dev openssl-libs-static pkgconfig

# renovate: datasource=crate depName=code0-cli
ARG CODE0_CLI_VERSION=0.0.8
RUN cargo install --version $CODE0_CLI_VERSION code0-cli

# renovate: datasource=github-releases depName=code0-tech/code0-definition versioning=regex:^def-(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)$
ARG DEFINITION_VERSION=def-0.0.19
RUN code0-cli download -f standard -t $DEFINITION_VERSION

FROM alpine:3.22

RUN apk --update add libc6-compat
COPY --from=builder /taurus/target/release/taurus /taurus
COPY --from=builder /taurus/definitions /definitions
COPY --from=definitions /definitions/standard /definitions/standard

CMD ["/taurus"]