This commit is contained in:
parent
af5f55e374
commit
8369f6305b
@ -42,8 +42,11 @@ local PipelineBuildContainer(arch='amd64') = {
|
|||||||
image: 'jdrouet/docker-with-buildx:stable',
|
image: 'jdrouet/docker-with-buildx:stable',
|
||||||
commands: [
|
commands: [
|
||||||
'docker buildx create --use',
|
'docker buildx create --use',
|
||||||
'docker buildx build --platform linux/' + std.strReplace(arch, '_', '/') + ' --tag thegeeklab/buildx-alpine:latest .',
|
'docker buildx build --platform linux/' + std.strReplace(arch, '_', '/') + ' --tag thegeeklab/buildx-alpine:latest . -f ${DOCKERFILE}',
|
||||||
],
|
],
|
||||||
|
environment: {
|
||||||
|
DOCKERFILE: 'Dockerfile.' + std.split(arch, '_')[0],
|
||||||
|
},
|
||||||
volumes: [{
|
volumes: [{
|
||||||
name: 'dockersock-' + arch,
|
name: 'dockersock-' + arch,
|
||||||
path: '/var/run',
|
path: '/var/run',
|
||||||
@ -73,11 +76,12 @@ local PipelineBuildContainer(arch='amd64') = {
|
|||||||
commands: [
|
commands: [
|
||||||
'docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"',
|
'docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"',
|
||||||
'docker buildx create --use',
|
'docker buildx create --use',
|
||||||
'docker buildx build --push --platform linux/' + std.strReplace(arch, '_', '/') + ' --tag thegeeklab/buildx-alpine:' + std.split(arch, '_')[0] + ' .',
|
'docker buildx build --push --platform linux/' + std.strReplace(arch, '_', '/') + ' --tag thegeeklab/buildx-alpine:' + std.split(arch, '_')[0] + ' . -f ${DOCKERFILE}',
|
||||||
],
|
],
|
||||||
environment: {
|
environment: {
|
||||||
DOCKER_PASSWORD: { from_secret: 'docker_password' },
|
DOCKER_PASSWORD: { from_secret: 'docker_password' },
|
||||||
DOCKER_USERNAME: { from_secret: 'docker_username' },
|
DOCKER_USERNAME: { from_secret: 'docker_username' },
|
||||||
|
DOCKERFILE: 'Dockerfile.' + std.split(arch, '_')[0],
|
||||||
},
|
},
|
||||||
volumes: [{
|
volumes: [{
|
||||||
name: 'dockersock-' + arch,
|
name: 'dockersock-' + arch,
|
||||||
|
23
.drone.yml
23
.drone.yml
@ -38,7 +38,9 @@ steps:
|
|||||||
image: jdrouet/docker-with-buildx:stable
|
image: jdrouet/docker-with-buildx:stable
|
||||||
commands:
|
commands:
|
||||||
- docker buildx create --use
|
- docker buildx create --use
|
||||||
- docker buildx build --platform linux/amd64 --tag thegeeklab/buildx-alpine:latest .
|
- docker buildx build --platform linux/amd64 --tag thegeeklab/buildx-alpine:latest . -f ${DOCKERFILE}
|
||||||
|
environment:
|
||||||
|
DOCKERFILE: Dockerfile.amd64
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock-amd64
|
- name: dockersock-amd64
|
||||||
path: /var/run
|
path: /var/run
|
||||||
@ -67,8 +69,9 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"
|
- docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"
|
||||||
- docker buildx create --use
|
- docker buildx create --use
|
||||||
- docker buildx build --push --platform linux/amd64 --tag thegeeklab/buildx-alpine:amd64 .
|
- docker buildx build --push --platform linux/amd64 --tag thegeeklab/buildx-alpine:amd64 . -f ${DOCKERFILE}
|
||||||
environment:
|
environment:
|
||||||
|
DOCKERFILE: Dockerfile.amd64
|
||||||
DOCKER_PASSWORD:
|
DOCKER_PASSWORD:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
DOCKER_USERNAME:
|
DOCKER_USERNAME:
|
||||||
@ -124,7 +127,9 @@ steps:
|
|||||||
image: jdrouet/docker-with-buildx:stable
|
image: jdrouet/docker-with-buildx:stable
|
||||||
commands:
|
commands:
|
||||||
- docker buildx create --use
|
- docker buildx create --use
|
||||||
- docker buildx build --platform linux/arm64/v8 --tag thegeeklab/buildx-alpine:latest .
|
- docker buildx build --platform linux/arm64/v8 --tag thegeeklab/buildx-alpine:latest . -f ${DOCKERFILE}
|
||||||
|
environment:
|
||||||
|
DOCKERFILE: Dockerfile.arm64
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock-arm64_v8
|
- name: dockersock-arm64_v8
|
||||||
path: /var/run
|
path: /var/run
|
||||||
@ -153,8 +158,9 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"
|
- docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"
|
||||||
- docker buildx create --use
|
- docker buildx create --use
|
||||||
- docker buildx build --push --platform linux/arm64/v8 --tag thegeeklab/buildx-alpine:arm64 .
|
- docker buildx build --push --platform linux/arm64/v8 --tag thegeeklab/buildx-alpine:arm64 . -f ${DOCKERFILE}
|
||||||
environment:
|
environment:
|
||||||
|
DOCKERFILE: Dockerfile.arm64
|
||||||
DOCKER_PASSWORD:
|
DOCKER_PASSWORD:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
DOCKER_USERNAME:
|
DOCKER_USERNAME:
|
||||||
@ -210,7 +216,9 @@ steps:
|
|||||||
image: jdrouet/docker-with-buildx:stable
|
image: jdrouet/docker-with-buildx:stable
|
||||||
commands:
|
commands:
|
||||||
- docker buildx create --use
|
- docker buildx create --use
|
||||||
- docker buildx build --platform linux/arm/v7 --tag thegeeklab/buildx-alpine:latest .
|
- docker buildx build --platform linux/arm/v7 --tag thegeeklab/buildx-alpine:latest . -f ${DOCKERFILE}
|
||||||
|
environment:
|
||||||
|
DOCKERFILE: Dockerfile.arm
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock-arm_v7
|
- name: dockersock-arm_v7
|
||||||
path: /var/run
|
path: /var/run
|
||||||
@ -239,8 +247,9 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"
|
- docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"
|
||||||
- docker buildx create --use
|
- docker buildx create --use
|
||||||
- docker buildx build --push --platform linux/arm/v7 --tag thegeeklab/buildx-alpine:arm .
|
- docker buildx build --push --platform linux/arm/v7 --tag thegeeklab/buildx-alpine:arm . -f ${DOCKERFILE}
|
||||||
environment:
|
environment:
|
||||||
|
DOCKERFILE: Dockerfile.arm
|
||||||
DOCKER_PASSWORD:
|
DOCKER_PASSWORD:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
DOCKER_USERNAME:
|
DOCKER_USERNAME:
|
||||||
@ -349,6 +358,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 76e555af40a68c0e75b0fcb3a67ec222aa8ac8034baf2787a753323fb4a0f58c
|
hmac: 6f2c42e32ff8a7cae90d34ed880c480d31557f7dc7f796fbae9f133b1de9e246
|
||||||
|
|
||||||
...
|
...
|
||||||
|
40
Dockerfile.amd64
Normal file
40
Dockerfile.amd64
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
FROM amd64/alpine:3.12@sha256:074d3636ebda6dd446d0d00304c4454f468237fdacf08fb0eeac90bdbfa1bac7
|
||||||
|
|
||||||
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
||||||
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
||||||
|
LABEL org.opencontainers.image.title="alpine"
|
||||||
|
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/alpine"
|
||||||
|
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/alpine"
|
||||||
|
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/alpine"
|
||||||
|
|
||||||
|
ARG GOMPLATE_VERSION
|
||||||
|
ARG SUPERCRONIC_VERSION
|
||||||
|
ARG URL_PARSER_VERSION
|
||||||
|
|
||||||
|
# renovate: datasource=github-releases depName=hairyhenderson/gomplate
|
||||||
|
ENV GOMPLATE_VERSION="${GOMPLATE_VERSION:-v3.8.0}"
|
||||||
|
# renovate: datasource=github-releases depName=aptible/supercronic
|
||||||
|
ENV SUPERCRONIC_VERSION="${SUPERCRONIC_VERSION:-v0.1.12}"
|
||||||
|
# renovate: datasource=github-releases depName=thegeeklab/url-parser
|
||||||
|
ENV URL_PARSER_VERSION="${URL_PARSER_VERSION:-v0.2.1}"
|
||||||
|
|
||||||
|
RUN addgroup -g 101 -S app && \
|
||||||
|
adduser -S -D -H -u 101 -h /app -s /sbin/nologin -G app -g app app && \
|
||||||
|
apk --update add --virtual .build-deps curl && \
|
||||||
|
curl -SsL -o /usr/local/bin/gomplate "https://github.com/hairyhenderson/gomplate/releases/download/${GOMPLATE_VERSION}/gomplate_linux-amd64-slim" && \
|
||||||
|
curl -SsL -o /usr/local/bin/supercronic "https://github.com/aptible/supercronic/releases/download/${SUPERCRONIC_VERSION}/supercronic-linux-amd64" && \
|
||||||
|
curl -SsL -o /usr/local/bin/url-parser "https://github.com/thegeeklab/url-parser/releases/download/${URL_PARSER_VERSION}/url-parser-linux-amd64" && \
|
||||||
|
curl -SsL -o /usr/local/bin/wait-for "https://raw.githubusercontent.com/thegeeklab/wait-for/master/wait-for" && \
|
||||||
|
chmod 755 /usr/local/bin/gomplate && \
|
||||||
|
chmod 755 /usr/local/bin/supercronic && \
|
||||||
|
chmod 755 /usr/local/bin/url-parser && \
|
||||||
|
chmod 755 /usr/local/bin/wait-for && \
|
||||||
|
apk del .build-deps && \
|
||||||
|
rm -rf /var/cache/apk/* && \
|
||||||
|
rm -rf /tmp/*
|
||||||
|
|
||||||
|
ADD overlay/ /
|
||||||
|
|
||||||
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
|
CMD []
|
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.12@sha256:074d3636ebda6dd446d0d00304c4454f468237fdacf08fb0eeac90bdbfa1bac7
|
FROM arm32v7/alpine:3.12
|
||||||
|
|
||||||
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
||||||
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
40
Dockerfile.arm64
Normal file
40
Dockerfile.arm64
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
FROM arm64v8/alpine:3.12
|
||||||
|
|
||||||
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
||||||
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
||||||
|
LABEL org.opencontainers.image.title="alpine"
|
||||||
|
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/alpine"
|
||||||
|
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/alpine"
|
||||||
|
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/alpine"
|
||||||
|
|
||||||
|
ARG GOMPLATE_VERSION
|
||||||
|
ARG SUPERCRONIC_VERSION
|
||||||
|
ARG URL_PARSER_VERSION
|
||||||
|
|
||||||
|
# renovate: datasource=github-releases depName=hairyhenderson/gomplate
|
||||||
|
ENV GOMPLATE_VERSION="${GOMPLATE_VERSION:-v3.8.0}"
|
||||||
|
# renovate: datasource=github-releases depName=aptible/supercronic
|
||||||
|
ENV SUPERCRONIC_VERSION="${SUPERCRONIC_VERSION:-v0.1.12}"
|
||||||
|
# renovate: datasource=github-releases depName=thegeeklab/url-parser
|
||||||
|
ENV URL_PARSER_VERSION="${URL_PARSER_VERSION:-v0.2.1}"
|
||||||
|
|
||||||
|
RUN addgroup -g 101 -S app && \
|
||||||
|
adduser -S -D -H -u 101 -h /app -s /sbin/nologin -G app -g app app && \
|
||||||
|
apk --update add --virtual .build-deps curl && \
|
||||||
|
curl -SsL -o /usr/local/bin/gomplate "https://github.com/hairyhenderson/gomplate/releases/download/${GOMPLATE_VERSION}/gomplate_linux-amd64-slim" && \
|
||||||
|
curl -SsL -o /usr/local/bin/supercronic "https://github.com/aptible/supercronic/releases/download/${SUPERCRONIC_VERSION}/supercronic-linux-amd64" && \
|
||||||
|
curl -SsL -o /usr/local/bin/url-parser "https://github.com/thegeeklab/url-parser/releases/download/${URL_PARSER_VERSION}/url-parser-linux-amd64" && \
|
||||||
|
curl -SsL -o /usr/local/bin/wait-for "https://raw.githubusercontent.com/thegeeklab/wait-for/master/wait-for" && \
|
||||||
|
chmod 755 /usr/local/bin/gomplate && \
|
||||||
|
chmod 755 /usr/local/bin/supercronic && \
|
||||||
|
chmod 755 /usr/local/bin/url-parser && \
|
||||||
|
chmod 755 /usr/local/bin/wait-for && \
|
||||||
|
apk del .build-deps && \
|
||||||
|
rm -rf /var/cache/apk/* && \
|
||||||
|
rm -rf /tmp/*
|
||||||
|
|
||||||
|
ADD overlay/ /
|
||||||
|
|
||||||
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
|
CMD []
|
Loading…
Reference in New Issue
Block a user