8 Commits

Author SHA1 Message Date
34e5e8dcf8 bar
All checks were successful
Ruby Lint / lint (push) Successful in 19s
Release / docker (push) Successful in 26m12s
Ruby Test / test (push) Successful in 17s
2025-06-28 18:23:41 -05:00
bdcd99ec92 test
Some checks failed
Ruby Lint / lint (push) Successful in 18s
Ruby Test / test (push) Has been cancelled
Release / docker (push) Has been cancelled
2025-06-28 18:19:29 -05:00
5fb1f2fcc7 crap
Some checks failed
Ruby Lint / lint (push) Successful in 1m2s
Ruby Test / test (push) Successful in 15s
Release / docker (push) Failing after 3m28s
2025-06-28 17:51:59 -05:00
df808b8396 piss
All checks were successful
Ruby Lint / lint (push) Successful in 20s
Release / docker (push) Successful in 4m54s
Ruby Test / test (push) Successful in 24s
2025-06-28 16:33:58 -05:00
6ec00632d1 poop
Some checks failed
Ruby Lint / lint (push) Successful in 14s
Release / docker (push) Failing after 14m9s
Ruby Test / test (push) Successful in 17s
2025-06-28 16:18:52 -05:00
fafe0bc0bd fart
Some checks failed
Ruby Lint / lint (push) Successful in 15s
Release / docker (push) Failing after 6m1s
Ruby Test / test (push) Successful in 15s
2025-06-28 16:12:05 -05:00
533cea3b26 namespace cache IDs by TARGETARCH
Some checks failed
Ruby Lint / lint (push) Successful in 15s
Ruby Test / test (push) Has been cancelled
Release / docker (push) Has been cancelled
2025-06-28 15:31:42 -05:00
653167adb5 add arm64 build target
Some checks failed
Ruby Lint / lint (push) Successful in 16s
Ruby Test / test (push) Successful in 31s
Release / docker (push) Has been cancelled
2025-06-28 13:12:17 -05:00
3 changed files with 22 additions and 11 deletions

View File

@@ -9,6 +9,9 @@ target "_common" {
args = {
RUBY_VERSION = "3.4.4"
}
platforms = [
"linux/arm64",
]
}
target "bookworm" {

View File

@@ -1,7 +1,10 @@
ARG RUBY_VERSION="3.4.4"
ARG BASE_REGISTRY="docker.io"
FROM ${BASE_REGISTRY}/ruby:${RUBY_VERSION}-alpine AS base
ARG TARGETARCH
ENV RACK_ENV="production" \
BUNDLE_DEPLOYMENT=true \
BUNDLE_PATH="/usr/local/bundle" \
@@ -11,19 +14,20 @@ ENV RACK_ENV="production" \
WORKDIR /kubernaut
RUN \
--mount=type=cache,id=var-cache-apk,target=/var/cache/apk,sharing=locked \
--mount=type=cache,id=var-cache-apk-${TARGETARCH},target=/var/cache/apk,sharing=locked \
apk update -q; \
apk add bash jemalloc
RUN \
--mount=type=cache,id=usr-local-bundle-cache,target=${BUNDLE_PATH},sharing=locked \
gem update --system --no-document; \
--mount=type=cache,id=usr-local-bundle-cache-${TARGETARCH},target=${BUNDLE_PATH},sharing=locked \
gem install -N bundler
FROM base AS build
ARG TARGETARCH
RUN \
--mount=type=cache,id=var-cache-apk,target=/var/cache/apk,sharing=locked \
--mount=type=cache,id=var-cache-apk-${TARGETARCH},target=/var/cache/apk,sharing=locked \
apk update -q; \
apk add musl-dev gcc make; \
apk add bash jemalloc
@@ -31,7 +35,7 @@ RUN \
COPY Gemfile Gemfile.lock ./
RUN \
--mount=type=cache,id=usr-local-bundle-ruby-cache,target=${BUNDLE_PATH}/ruby/3.4.0/cache,sharing=locked \
--mount=type=cache,id=usr-local-bundle-ruby-cache-${TARGETARCH},target=${BUNDLE_PATH}/ruby/3.4.0/cache,sharing=locked \
bundle install
COPY . .

View File

@@ -1,8 +1,11 @@
ARG RUBY_VERSION="3.4.4"
ARG BASE_REGISTRY="docker.io"
ARG DEBIAN_VERSION="bookworm"
FROM ${BASE_REGISTRY}/ruby:${RUBY_VERSION}-slim-${DEBIAN_VERSION} AS base
ARG TARGETARCH
ENV RACK_ENV="production" \
BUNDLE_DEPLOYMENT=true \
BUNDLE_PATH="/usr/local/bundle" \
@@ -14,24 +17,25 @@ WORKDIR /kubernaut
RUN rm -f /etc/apt/apt.conf.d/docker-clean
RUN \
--mount=type=cache,id=var-cache-apt,target=/var/cache/apt,sharing=locked \
--mount=type=cache,id=var-cache-apt-${TARGETARCH},target=/var/cache/apt,sharing=locked \
--mount=type=cache,id=var-lib-apt,target=/var/lib/apt,sharing=locked \
apt-get update -qq; \
apt-get install --yes --no-install-recommends \
libjemalloc2
RUN \
--mount=type=cache,id=usr-local-bundle-cache,target=${BUNDLE_PATH},sharing=locked \
gem update --system --no-document; \
--mount=type=cache,id=usr-local-bundle-cache-${TARGETARCH},target=${BUNDLE_PATH},sharing=locked \
gem install -N bundler
ENV DEBIAN_FRONTEND="noninteractive"
FROM base AS build
ARG TARGETARCH
RUN \
--mount=type=cache,id=var-cache-apt,target=/var/cache/apt,sharing=locked \
--mount=type=cache,id=var-lib-apt,target=/var/lib/apt,sharing=locked \
--mount=type=cache,id=var-cache-apt-${TARGETARCH},target=/var/cache/apt,sharing=locked \
--mount=type=cache,id=var-lib-apt-${TARGETARCH},target=/var/lib/apt,sharing=locked \
apt-get update -qq; \
apt-get install --yes --no-install-recommends \
build-essential
@@ -39,7 +43,7 @@ RUN \
COPY Gemfile Gemfile.lock ./
RUN \
--mount=type=cache,id=usr-local-bundle-ruby-cache,target=${BUNDLE_PATH}/ruby/3.4.0/cache,sharing=locked \
--mount=type=cache,id=usr-local-bundle-ruby-cache-${TARGETARCH},target=${BUNDLE_PATH}/ruby/3.4.0/cache,sharing=locked \
bundle install
COPY . .