Compare commits
No commits in common. "main" and "3.16" have entirely different histories.
5 changed files with 72 additions and 45 deletions
9
.editorconfig
Normal file
9
.editorconfig
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
26
.gitlab-ci.yml
Normal file
26
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
variables:
|
||||||
|
CONTAINER_NAME: thallian/alpine-s6
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
image:
|
||||||
|
name: gcr.io/kaniko-project/executor:debug
|
||||||
|
entrypoint: [""]
|
||||||
|
script:
|
||||||
|
- mkdir -p /kaniko/.docker
|
||||||
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
|
||||||
|
- >-
|
||||||
|
/kaniko/executor
|
||||||
|
--context "$CI_PROJECT_DIR"
|
||||||
|
--dockerfile "$CI_PROJECT_DIR/Dockerfile"
|
||||||
|
--destination "$CONTAINER_NAME:$CI_COMMIT_SHA"
|
||||||
|
--destination "$CONTAINER_NAME:$CI_COMMIT_REF_NAME"
|
||||||
|
--destination "$CONTAINER_NAME:latest"
|
||||||
|
|
||||||
|
downstream:
|
||||||
|
stage: .post
|
||||||
|
trigger: containers/confd-env
|
||||||
|
|
||||||
|
downstream-keycloak:
|
||||||
|
stage: .post
|
||||||
|
trigger: containers/keycloak
|
|
@ -1,44 +0,0 @@
|
||||||
FROM docker.io/alpine:3.22 AS builder
|
|
||||||
LABEL maintainer="Sebastian Hugentobler <sebastian@vanwa.ch>"
|
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
|
||||||
curl \
|
|
||||||
tar \
|
|
||||||
xz
|
|
||||||
|
|
||||||
RUN mkdir /overlay
|
|
||||||
|
|
||||||
ENV S6_OVERLAY_VERSION=v3.2.1.0
|
|
||||||
ENV S6_HASH_noarch=42e038a9a00fc0fef70bf0bc42f625a9c14f8ecdfe77d4ad93281edf717e10c5
|
|
||||||
ENV S6_HASH_aarch64=c8fd6b1f0380d399422fc986a1e6799f6a287e2cfa24813ad0b6a4fb4fa755cc
|
|
||||||
ENV S6_HASH_x86_64=8bcbc2cada58426f976b159dcc4e06cbb1454d5f39252b3bb0c778ccf71c9435
|
|
||||||
|
|
||||||
RUN curl -L -O https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-noarch.tar.xz
|
|
||||||
RUN echo "$S6_HASH_noarch s6-overlay-noarch.tar.xz" | sha256sum -c - || exit 1
|
|
||||||
RUN tar xf s6-overlay-noarch.tar.xz -C /overlay --strip 1
|
|
||||||
|
|
||||||
RUN curl -L -O https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-$(arch).tar.xz
|
|
||||||
RUN eval "echo \"\${S6_HASH_$(arch)} s6-overlay-$(arch).tar.xz\" | sha256sum -c -" || exit 1
|
|
||||||
RUN tar xf s6-overlay-$(arch).tar.xz -C /overlay --strip 1
|
|
||||||
|
|
||||||
|
|
||||||
FROM docker.io/alpine:3.22
|
|
||||||
|
|
||||||
ENV LANG=en_US.UTF-8
|
|
||||||
ENV S6_KEEP_ENV=1
|
|
||||||
ENV PATH="$PATH:/command"
|
|
||||||
ENV S6_GLOBAL_PATH="$PATH"
|
|
||||||
|
|
||||||
COPY --from=builder /overlay /
|
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
|
||||||
syslog-ng \
|
|
||||||
tzdata
|
|
||||||
|
|
||||||
ENV TZ=Europe/Zurich
|
|
||||||
|
|
||||||
RUN apk --no-cache upgrade --ignore alpine-baselayout
|
|
||||||
|
|
||||||
ADD /rootfs /
|
|
||||||
|
|
||||||
ENTRYPOINT ["/init"]
|
|
37
Dockerfile
Normal file
37
Dockerfile
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
FROM docker.io/alpine:3.16 AS builder
|
||||||
|
LABEL maintainer="Sebastian Hugentobler <sebastian@vanwa.ch>"
|
||||||
|
|
||||||
|
ENV S6_OVERLAY_VERSION=v3.1.1.2
|
||||||
|
|
||||||
|
RUN apk --no-cache add \
|
||||||
|
git \
|
||||||
|
make \
|
||||||
|
binutils \
|
||||||
|
tar \
|
||||||
|
xz
|
||||||
|
|
||||||
|
RUN git clone https://github.com/just-containers/s6-overlay.git /src
|
||||||
|
WORKDIR /src
|
||||||
|
RUN git checkout "$S6_OVERLAY_VERSION"
|
||||||
|
|
||||||
|
RUN make ARCH=x86_64-linux-musl
|
||||||
|
|
||||||
|
|
||||||
|
FROM docker.io/alpine:3.16
|
||||||
|
|
||||||
|
ENV LANG=en_US.UTF-8
|
||||||
|
ENV S6_KEEP_ENV=1
|
||||||
|
ENV PATH="$PATH:/command"
|
||||||
|
ENV S6_GLOBAL_PATH="$PATH"
|
||||||
|
|
||||||
|
COPY --from=builder /src/output/rootfs-overlay-noarch /
|
||||||
|
COPY --from=builder /src/output/rootfs-overlay-x86_64-linux-musl /
|
||||||
|
|
||||||
|
RUN apk --no-cache add \
|
||||||
|
syslog-ng
|
||||||
|
|
||||||
|
RUN apk --no-cache upgrade --ignore alpine-baselayout
|
||||||
|
|
||||||
|
ADD /rootfs /
|
||||||
|
|
||||||
|
ENTRYPOINT ["/init"]
|
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
|
@ -1 +0,0 @@
|
||||||
multiarch_container()
|
|
Loading…
Add table
Add a link
Reference in a new issue