mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-17 13:58:19 +00:00
Compare commits
41 Commits
e48744774c
...
master
Author | SHA1 | Date | |
---|---|---|---|
28675d7f44 | |||
44797c4354 | |||
9798329c6c | |||
e4c5e91057 | |||
e98984f940 | |||
f08fce28be | |||
5ddc69bf00 | |||
2f2aba2f94 | |||
8c6ed3d881 | |||
46b1a36bae | |||
02bc4e82bf | |||
9bdfe3db5d | |||
ef36a1ec1a | |||
26eb50901d | |||
51319d06e3 | |||
48d16d1b6f | |||
02c0e7e7ae | |||
da99f7e4e9 | |||
64cbc25c27 | |||
2f83b43b23 | |||
7c429a2fc9 | |||
85cb1ed8bd | |||
e0e9a96154 | |||
f70cc9c3c7 | |||
c224357b36 | |||
8695a0eaa5 | |||
e909a33232 | |||
6c45f29e23 | |||
93bb6732f3 | |||
3a3fdc6e55 | |||
4071758696 | |||
9040815ab9 | |||
7fef6bf63a | |||
7ea1becf24 | |||
465cee68bd | |||
0a44914536 | |||
d38a19bfee | |||
d752fcfe68 | |||
bb195ddc12 | |||
577a743a83 | |||
e5368c9336 |
151
.gitlab-ci.yml
151
.gitlab-ci.yml
@ -6,45 +6,57 @@ variables:
|
||||
DOCKER_CLI_EXPERIMENTAL: enabled
|
||||
DOCKER_BUILDKIT: 1
|
||||
|
||||
|
||||
dev-minio:
|
||||
dovecot:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd minio
|
||||
- make nopush
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||
changes:
|
||||
- minio/*
|
||||
|
||||
minio:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd minio
|
||||
- cd dovecot
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- minio/*
|
||||
- dovecot/*
|
||||
|
||||
dev-watchdog:
|
||||
element:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd watchdog
|
||||
- make nopush
|
||||
- cd element
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- watchdog/*
|
||||
- element/*
|
||||
|
||||
matrix-webhook:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd matrix-webhook
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- matrix-webhook/*
|
||||
|
||||
hugo:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd hugo
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- hugo/*
|
||||
|
||||
watchdog:
|
||||
stage: build
|
||||
@ -59,19 +71,6 @@ watchdog:
|
||||
changes:
|
||||
- watchdog/*
|
||||
|
||||
dev-unifi:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd unifi
|
||||
- make nopush
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||
changes:
|
||||
- unifi/*
|
||||
|
||||
unifi:
|
||||
stage: build
|
||||
tags:
|
||||
@ -85,19 +84,6 @@ unifi:
|
||||
changes:
|
||||
- unifi/*
|
||||
|
||||
dev-keycloak:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd keycloak
|
||||
- make nopush
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||
changes:
|
||||
- keycloak/*
|
||||
|
||||
keycloak:
|
||||
stage: build
|
||||
tags:
|
||||
@ -111,32 +97,6 @@ keycloak:
|
||||
changes:
|
||||
- keycloak/*
|
||||
|
||||
dev-restic:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd restic
|
||||
- make nopush
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||
changes:
|
||||
- restic/*
|
||||
|
||||
restic:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd restic
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- restic/*
|
||||
|
||||
pleroma:
|
||||
stage: build
|
||||
tags:
|
||||
@ -150,19 +110,6 @@ pleroma:
|
||||
changes:
|
||||
- pleroma/*
|
||||
|
||||
dendrite:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd dendrite
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- dendrite/*
|
||||
|
||||
roundcubemail:
|
||||
stage: build
|
||||
tags:
|
||||
@ -176,19 +123,6 @@ roundcubemail:
|
||||
changes:
|
||||
- roundcubemail/*
|
||||
|
||||
borg:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd borg
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- borg/*
|
||||
|
||||
shields:
|
||||
stage: build
|
||||
tags:
|
||||
@ -202,6 +136,19 @@ shields:
|
||||
changes:
|
||||
- shields/*
|
||||
|
||||
synapse:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd synapse
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- synapse/*
|
||||
|
||||
.docker_init: &docker_init |
|
||||
if ! docker info &>/dev/null; then
|
||||
if [ -z "${DOCKER_HOST}" -a "${KUBERNETES_PORT}" ]; then
|
||||
@ -217,8 +164,8 @@ shields:
|
||||
fi
|
||||
|
||||
mkdir -p /root/.docker/cli-plugins
|
||||
wget https://github.com/docker/buildx/releases/download/v0.4.2/buildx-v0.4.2.linux-amd64
|
||||
mv buildx-v0.4.2.linux-amd64 /root/.docker/cli-plugins/docker-buildx
|
||||
wget https://github.com/docker/buildx/releases/download/v0.5.1/buildx-v0.5.1.linux-amd64
|
||||
mv buildx-v0.5.1.linux-amd64 /root/.docker/cli-plugins/docker-buildx
|
||||
chmod +x /root/.docker/cli-plugins/docker-buildx
|
||||
|
||||
before_script:
|
||||
|
@ -1,19 +0,0 @@
|
||||
FROM debian:buster-20210208-slim as builder
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG TARGETARCH
|
||||
RUN apt update -qq && apt install wget -qqy && rm -rf /var/lib/apt/lists/*
|
||||
ARG VERSION
|
||||
RUN case $TARGETARCH in \
|
||||
arm) \
|
||||
wget https://dl.bintray.com/borg-binary-builder/borg-binaries/borg-${VERSION}-armv6 -O /usr/bin/borg \
|
||||
;; \
|
||||
arm64) \
|
||||
wget https://dl.bintray.com/borg-binary-builder/borg-binaries/borg-${VERSION}-arm64 -O /usr/bin/borg \
|
||||
;; \
|
||||
amd64) \
|
||||
wget https://github.com/borgbackup/borg/releases/download/${VERSION}/borg-linux64 -O /usr/bin/borg \
|
||||
;; \
|
||||
esac && \
|
||||
chmod a+x /usr/bin/borg
|
||||
FROM debian:buster-20210208-slim
|
||||
COPY --from=builder /usr/bin/borg /usr/bin/borg
|
@ -1,18 +0,0 @@
|
||||
NAMESPACE=alemairebe
|
||||
include version
|
||||
|
||||
IMAGE=borg
|
||||
|
||||
nopush:
|
||||
docker buildx build --platform linux/amd64 --load \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
||||
|
||||
push:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
@ -1 +0,0 @@
|
||||
VERSION=1.1.15
|
@ -1,15 +0,0 @@
|
||||
FROM golang:buster as builder
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG VERSION
|
||||
WORKDIR /
|
||||
RUN git clone -b v${VERSION} --depth 1 https://github.com/matrix-org/dendrite.git && \
|
||||
cd dendrite && rm -rf .git && ./build.sh
|
||||
|
||||
FROM debian:buster-20210208-slim
|
||||
|
||||
COPY --from=builder /dendrite/bin/ /usr/local/bin/
|
||||
COPY --from=builder /dendrite/dendrite-config.yaml /usr/local/share/
|
||||
COPY entrypoint.sh /usr/local/bin/
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
@ -1,21 +0,0 @@
|
||||
NAMESPACE=alemairebe
|
||||
include version
|
||||
|
||||
IMAGE=dendrite
|
||||
|
||||
nopush:
|
||||
docker buildx build --platform linux/amd64 --load \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
||||
|
||||
push:
|
||||
docker buildx build --platform linux/amd64,linux/arm64 --push \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
||||
|
||||
git-clone:
|
||||
git clone -b v${VERSION} --depth 1 https://github.com/matrix-org/dendrite.git
|
@ -1,13 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -f /usr/local/etc/dendrite.yaml ]; then
|
||||
cp /usr/local/share/dendrite-config.yaml /usr/local/etc/dendrite.yaml
|
||||
fi
|
||||
|
||||
if [ ! -f /usr/local/etc/matrix_key.pem ]; then
|
||||
/usr/local/bin/generate-keys --private-key /usr/local/etc/matrix_key.pem
|
||||
fi
|
||||
|
||||
/usr/local/bin/dendrite-monolith-server --config /usr/local/etc/dendrite.yaml
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
VERSION=0.3.8
|
29
dovecot/Dockerfile
Normal file
29
dovecot/Dockerfile
Normal file
@ -0,0 +1,29 @@
|
||||
ARG DEBIAN_VERSION=20210408
|
||||
FROM docker.io/debian:bullseye-${DEBIAN_VERSION}-slim
|
||||
|
||||
ENV container=docker
|
||||
ENV LC_ALL=C
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get -y update && apt-get -y install \
|
||||
tini \
|
||||
dovecot-core \
|
||||
dovecot-imapd \
|
||||
dovecot-lmtpd \
|
||||
dovecot-ldap \
|
||||
dovecot-managesieved \
|
||||
dovecot-mysql \
|
||||
dovecot-pgsql \
|
||||
dovecot-sqlite \
|
||||
dovecot-pop3d \
|
||||
dovecot-sieve \
|
||||
dovecot-solr \
|
||||
dovecot-submissiond \
|
||||
ca-certificates \
|
||||
ssl-cert \
|
||||
&& rm -rf /etc/dovecot \
|
||||
&& mkdir /srv/mail && chown dovecot:dovecot /srv/mail \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
VOLUME [/etc/dovecot /srv/mail /var/mail]
|
||||
ENTRYPOINT ["/sbin/tini" "--"]
|
||||
CMD ["/usr/sbin/dovecot" "-F"]
|
17
dovecot/Makefile
Normal file
17
dovecot/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
NAMESPACE=alemairebe
|
||||
VERSION=2.3.13
|
||||
IMAGE=dovecot
|
||||
|
||||
push:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
|
||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
-f Dockerfile .
|
||||
|
||||
dev:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm \
|
||||
--output type=tar,dest=synapse.tar \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
-f Dockerfile ${IMAGE}-${VERSION}
|
8
element/Dockerfile
Normal file
8
element/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
FROM nginx:1.20.0-alpine
|
||||
|
||||
COPY ./element /app
|
||||
|
||||
# Insert wasm type into Nginx mime.types file so they load correctly.
|
||||
RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types \
|
||||
&& rm -rf /usr/share/nginx/html \
|
||||
&& ln -s /app /usr/share/nginx/html
|
20
element/Makefile
Normal file
20
element/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
NAMESPACE=alemairebe
|
||||
IMAGE=element
|
||||
VERSION=v1.7.28
|
||||
|
||||
push: get decompress build
|
||||
|
||||
get:
|
||||
wget https://github.com/vector-im/element-web/releases/download/${VERSION}/element-${VERSION}.tar.gz
|
||||
|
||||
decompress:
|
||||
tar -xf element-$(VERSION).tar.gz
|
||||
mv element-$(VERSION) element
|
||||
mv element/config.sample.json element/config.json
|
||||
|
||||
build:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
|
||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
4
hugo/Dockerfile
Normal file
4
hugo/Dockerfile
Normal file
@ -0,0 +1,4 @@
|
||||
ARG ALPINE_VERSION=3.13.5
|
||||
|
||||
FROM docker.io/alpine:${ALPINE_VERSION}
|
||||
RUN apk add --no-cache hugo rsync openssh-client
|
14
hugo/Makefile
Normal file
14
hugo/Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
NAMESPACE=alemairebe
|
||||
IMAGE=hugo
|
||||
VERSION=0.83.1
|
||||
|
||||
push: build
|
||||
|
||||
|
||||
build:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
|
||||
--build-arg HUGO_VERSION=${VERSION} \
|
||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
49
hugo/hugo.sh
Normal file
49
hugo/hugo.sh
Normal file
@ -0,0 +1,49 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This file is triggered inside the _base/Dockerfile-base file.
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
# Variables
|
||||
# HUGO_VERSION is edited in Dockerfile.
|
||||
|
||||
# Architecture
|
||||
TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
|
||||
|
||||
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then
|
||||
HUGO_ARCH="64bit"
|
||||
elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then
|
||||
HUGO_ARCH="ARM64"
|
||||
elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then
|
||||
HUGO_ARCH="ARM"
|
||||
else
|
||||
echo "Unknown build architecture: $TARGETPLATFORM"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# Download binaries from release
|
||||
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz
|
||||
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_checksums.txt
|
||||
|
||||
# Verify checksums
|
||||
grep hugo_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz hugo_${HUGO_VERSION}_checksums.txt | sha256sum -c
|
||||
|
||||
# Prepare folders
|
||||
mkdir -p /usr/local/bin/
|
||||
|
||||
# Unpack downloaded content
|
||||
tar -zxf hugo_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz -C /usr/local/bin
|
||||
|
||||
# Verify executable
|
||||
/usr/local/bin/hugo version
|
||||
|
||||
# Create autocompletion script
|
||||
mkdir -p /etc/bash_completion.d
|
||||
/usr/local/bin/hugo gen autocomplete > /etc/bash_completion.d/hugo.sh
|
||||
|
||||
# Create version file
|
||||
echo -n "${HUGO_VERSION}" > /etc/hugo-release
|
||||
|
||||
# Remove binaries
|
||||
rm hugo_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz hugo_${HUGO_VERSION}_checksums.txt
|
@ -1,4 +1,4 @@
|
||||
FROM debian:buster-20210208-slim
|
||||
FROM debian:buster-20210408-slim
|
||||
ADD https://curl.haxx.se/ca/cacert.pem /etc/ssl/certs/cacert.pem
|
||||
ENV CURL_CA_BUNDLE=/etc/ssl/certs/cacert.pem
|
||||
|
||||
|
@ -1 +1 @@
|
||||
VERSION=12.0.4
|
||||
VERSION=13.0.0
|
||||
|
25
matrix-webhook/Dockerfile
Normal file
25
matrix-webhook/Dockerfile
Normal file
@ -0,0 +1,25 @@
|
||||
FROM node:10-alpine
|
||||
|
||||
COPY . /
|
||||
WORKDIR /
|
||||
ENV NODE_ENV=development
|
||||
|
||||
RUN npm install -g npm-check-updates
|
||||
RUN ncu -u matrix-appservice-bridge
|
||||
RUN apk add --no-cache -t build-deps make gcc g++ python libc-dev wget git dos2unix \
|
||||
&& apk add --no-cache ca-certificates \
|
||||
&& dos2unix docker-start.sh \
|
||||
&& chmod +x docker-start.sh \
|
||||
&& npm install \
|
||||
&& apk del build-deps
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV WEBHOOKS_USER_STORE_PATH=/data/user-store.db
|
||||
ENV WEBHOOKS_ROOM_STORE_PATH=/data/room-store.db
|
||||
ENV WEBHOOKS_DB_CONFIG_PATH=/data/database.json
|
||||
ENV WEBHOOKS_ENV=docker
|
||||
|
||||
CMD /docker-start.sh
|
||||
|
||||
EXPOSE 9000
|
||||
VOLUME ["/data"]
|
20
matrix-webhook/Makefile
Normal file
20
matrix-webhook/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
NAMESPACE=alemairebe
|
||||
VERSION=0.0.3
|
||||
|
||||
IMAGE=matrix-webhook
|
||||
|
||||
push: get decompress build
|
||||
|
||||
get:
|
||||
wget https://github.com/turt2live/matrix-appservice-webhooks/archive/refs/heads/master.zip
|
||||
|
||||
decompress:
|
||||
unzip master.zip
|
||||
|
||||
build:
|
||||
docker buildx build --platform linux/amd64,linux/arm64 --push \
|
||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) \
|
||||
-f Dockerfile matrix-appservice-webhooks-master
|
@ -1,40 +0,0 @@
|
||||
FROM golang:1.15-alpine as builder
|
||||
|
||||
LABEL maintainer="MinIO Inc <dev@min.io>"
|
||||
ARG VERSION
|
||||
ARG TARGETARCH
|
||||
ENV VERSION $VERSION
|
||||
ENV GOPATH /go
|
||||
ENV CGO_ENABLED 0
|
||||
ENV GO111MODULE on
|
||||
|
||||
RUN \
|
||||
apk add --no-cache git && \
|
||||
git clone -b ${VERSION} --depth 1 https://github.com/minio/minio && cd minio && \
|
||||
go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)"
|
||||
|
||||
|
||||
FROM alpine:3.13.0
|
||||
|
||||
ENV MINIO_ACCESS_KEY_FILE=access_key \
|
||||
MINIO_SECRET_KEY_FILE=secret_key \
|
||||
MINIO_KMS_MASTER_KEY_FILE=kms_master_key \
|
||||
MINIO_SSE_MASTER_KEY_FILE=sse_master_key \
|
||||
MINIO_UPDATE_MINISIGN_PUBKEY="RWTx5Zr1tiHQLwG9keckT0c45M3AGeHD6IvimQHpyRywVWGbP1aVSGav"
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
RUN \
|
||||
apk add --no-cache ca-certificates 'curl>7.61.0' 'su-exec>=0.2' && \
|
||||
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf
|
||||
|
||||
ARG VERSION
|
||||
ENV VERSION $VERSION
|
||||
COPY --from=builder /go/bin/minio /usr/bin/minio
|
||||
COPY --from=builder /go/minio/dockerscripts/docker-entrypoint.sh /usr/bin/
|
||||
|
||||
ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]
|
||||
|
||||
VOLUME ["/data"]
|
||||
|
||||
CMD ["minio"]
|
@ -1,19 +0,0 @@
|
||||
NAMESPACE=alemairebe
|
||||
include version
|
||||
|
||||
IMAGE=minio
|
||||
|
||||
nopush:
|
||||
docker buildx build --platform linux/amd64 --load \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
||||
|
||||
push:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
||||
|
@ -1 +0,0 @@
|
||||
VERSION=RELEASE.2021-02-07T01-31-02Z
|
@ -1,7 +0,0 @@
|
||||
FROM alpine:3.13.0
|
||||
ARG VERSION
|
||||
ARG TARGETARCH
|
||||
ENV VERSION $VERSION
|
||||
ADD https://github.com/restic/restic/releases/download/v${VERSION}/restic_${VERSION}_linux_${TARGETARCH}.bz2 /root/restic.bz2
|
||||
RUN bunzip2 /root/restic.bz2 && chmod +x /root/restic && mv /root/restic /usr/bin/restic
|
||||
ENTRYPOINT ["/usr/bin/restic"]
|
@ -1,18 +0,0 @@
|
||||
NAMESPACE=alemairebe
|
||||
include version
|
||||
|
||||
IMAGE=restic
|
||||
|
||||
nopush:
|
||||
docker buildx build --platform linux/amd64 --load \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
||||
|
||||
push:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm,linux/ppc64le --push \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
@ -1 +0,0 @@
|
||||
VERSION=0.11.0
|
@ -1,4 +1,4 @@
|
||||
FROM debian:buster-20210208-slim
|
||||
FROM debian:buster-20210408-slim
|
||||
ENV APACHE_CONFDIR /etc/apache2
|
||||
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
|
||||
RUN set -ex; \
|
||||
|
@ -70,6 +70,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
|
||||
: "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}"
|
||||
: "${ROUNDCUBEMAIL_SKIN:=larry}"
|
||||
: "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}"
|
||||
: "${ROUNDCUBEMAIL_IMAP_CACHE_TTL:7d}"
|
||||
: "${ROUNDCUBEMAIL_MESSAGES_CACHE_TTL:3m}"
|
||||
: "${ROUNDCUBEMAIL_MESSAGES_CACHE_TRESHOLD:3mb}"
|
||||
|
||||
|
||||
if [ ! -e config/config.inc.php ]; then
|
||||
ROUNDCUBEMAIL_DES_KEY=`head /dev/urandom | base64 | head -c 24`
|
||||
@ -100,6 +104,11 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
|
||||
\$config['temp_dir'] = '${ROUNDCUBEMAIL_TEMP_DIR}';
|
||||
\$config['skin'] = '${ROUNDCUBEMAIL_SKIN}';
|
||||
\$config['plugins'] = array_filter(array_unique(array_merge(\$config['plugins'], ['${ROUNDCUBEMAIL_PLUGINS_PHP}'])));
|
||||
\$config['imap_cache'] = 'db';
|
||||
\$config['imap_cache_ttl'] = '${ROUNDCUBEMAIL_IMAP_CACHE_TTL}';
|
||||
\$config['messages_cache'] = 'db';
|
||||
\$config['messages_cache_threshold'] = '${ROUNDCUBEMAIL_MESSAGES_CACHE_THRESHOLD}';
|
||||
\$config['messages_cache_ttl'] = '${ROUNDCUBEMAIL_MESSAGES_CACHE_TTL}';
|
||||
" > config/config.docker.inc.php
|
||||
|
||||
if [ -e /run/secrets/roundcube_des_key ]; then
|
||||
|
@ -1 +1 @@
|
||||
VERSION=server-2021-03-01
|
||||
VERSION=server-2021-05-01
|
||||
|
155
synapse/Dockerfile
Normal file
155
synapse/Dockerfile
Normal file
@ -0,0 +1,155 @@
|
||||
# Dockerfile to build the matrixdotorg/synapse docker images.
|
||||
#
|
||||
# To build the image, run `docker build` command from the root of the
|
||||
# synapse repository:
|
||||
#
|
||||
# docker build -f docker/Dockerfile .
|
||||
#
|
||||
#
|
||||
ARG DEBIAN_VERSION=20210408
|
||||
###
|
||||
### Stage 0: builder
|
||||
###
|
||||
FROM docker.io/debian:bullseye-${DEBIAN_VERSION}-slim as builder
|
||||
|
||||
# install the OS build deps
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
libffi-dev \
|
||||
libjpeg-dev \
|
||||
libpq-dev \
|
||||
libssl-dev \
|
||||
libwebp-dev \
|
||||
libxml++2.6-dev \
|
||||
libxslt1-dev \
|
||||
openssl \
|
||||
python3-dev \
|
||||
cargo \
|
||||
rustc \
|
||||
zlib1g-dev \
|
||||
python3-pip \
|
||||
python3-jsonschema \
|
||||
python3-frozendict \
|
||||
python3-unpaddedbase64 \
|
||||
python3-nacl \
|
||||
python3-idna \
|
||||
python3-twisted \
|
||||
python3-treq \
|
||||
python3-yaml \
|
||||
python3-pyasn1-modules \
|
||||
python3-bcrypt \
|
||||
python3-pillow \
|
||||
python3-sortedcontainers \
|
||||
python3-pymacaroons \
|
||||
python3-msgpack \
|
||||
python3-phonenumbers \
|
||||
python3-netaddr \
|
||||
python3-jinja2 \
|
||||
python3-bleach \
|
||||
python3-pysaml2 \
|
||||
python3-systemd \
|
||||
python3-lxml \
|
||||
python3-jwt \
|
||||
python3-hiredis\
|
||||
python3-canonicaljson \
|
||||
python3-signedjson \
|
||||
python3-typing-extensions \
|
||||
python3-psycopg2cffi \
|
||||
python3-txacme \
|
||||
python3-authlib \
|
||||
python3-sentry-sdk \
|
||||
python3-opentracing \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy just what we need to pip install
|
||||
COPY scripts /synapse/scripts/
|
||||
COPY MANIFEST.in README.rst setup.py synctl /synapse/
|
||||
COPY synapse/__init__.py /synapse/synapse/__init__.py
|
||||
COPY synapse/python_dependencies.py /synapse/synapse/python_dependencies.py
|
||||
|
||||
# To speed up rebuilds, install all of the dependencies before we copy over
|
||||
# the whole synapse project so that we this layer in the Docker cache can be
|
||||
# used while you develop on the source
|
||||
#
|
||||
# This is aiming at installing the `install_requires` and `extras_require` from `setup.py`
|
||||
RUN pip install --upgrade pip && \
|
||||
pip install --prefix="/install" --no-warn-script-location \
|
||||
/synapse[all]
|
||||
|
||||
# Copy over the rest of the project
|
||||
COPY synapse /synapse/synapse/
|
||||
|
||||
# Install the synapse package itself and all of its children packages.
|
||||
#
|
||||
# This is aiming at installing only the `packages=find_packages(...)` from `setup.py
|
||||
RUN pip3 install --prefix="/install" --no-deps --no-warn-script-location /synapse
|
||||
|
||||
###
|
||||
### Stage 1: runtime
|
||||
###
|
||||
|
||||
FROM docker.io/debian:bullseye-${DEBIAN_VERSION}-slim
|
||||
|
||||
LABEL org.opencontainers.image.url='https://matrix.org/docs/projects/server/synapse'
|
||||
LABEL org.opencontainers.image.documentation='https://github.com/matrix-org/synapse/blob/master/docker/README.md'
|
||||
LABEL org.opencontainers.image.source='https://github.com/matrix-org/synapse.git'
|
||||
LABEL org.opencontainers.image.licenses='Apache-2.0'
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
gosu \
|
||||
libjpeg62-turbo \
|
||||
libpq5 \
|
||||
libwebp6 \
|
||||
xmlsec1 \
|
||||
libjemalloc2 \
|
||||
libssl-dev \
|
||||
openssl \
|
||||
python3-jsonschema \
|
||||
python3-frozendict \
|
||||
python3-unpaddedbase64 \
|
||||
python3-nacl \
|
||||
python3-idna \
|
||||
python3-twisted \
|
||||
python3-treq \
|
||||
python3-yaml \
|
||||
python3-pyasn1-modules \
|
||||
python3-bcrypt \
|
||||
python3-pillow \
|
||||
python3-sortedcontainers \
|
||||
python3-pymacaroons \
|
||||
python3-msgpack \
|
||||
python3-phonenumbers \
|
||||
python3-netaddr \
|
||||
python3-jinja2 \
|
||||
python3-bleach \
|
||||
python3-pysaml2 \
|
||||
python3-systemd \
|
||||
python3-lxml \
|
||||
python3-jwt \
|
||||
python3-hiredis\
|
||||
python3-canonicaljson \
|
||||
python3-signedjson \
|
||||
python3-typing-extensions \
|
||||
python3-psycopg2cffi \
|
||||
python3-txacme \
|
||||
python3-authlib \
|
||||
python3-sentry-sdk \
|
||||
python3-opentracing \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=builder /install /usr/local
|
||||
COPY ./docker/start.py /start.py
|
||||
COPY ./docker/conf /conf
|
||||
|
||||
RUN ln -s /usr/bin/python3 /usr/local/bin/python && \
|
||||
mv /usr/local/lib/python3.9/site-packages/* /usr/local/lib/python3.9/dist-packages/
|
||||
|
||||
VOLUME ["/data"]
|
||||
|
||||
EXPOSE 8008/tcp 8009/tcp 8448/tcp
|
||||
|
||||
ENTRYPOINT ["/start.py"]
|
||||
|
||||
HEALTHCHECK --interval=1m --timeout=5s \
|
||||
CMD curl -fSs http://localhost:8008/health || exit 1
|
27
synapse/Makefile
Normal file
27
synapse/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
NAMESPACE=alemairebe
|
||||
VERSION=1.36.0
|
||||
IMAGE=synapse
|
||||
|
||||
push: get decompress build
|
||||
|
||||
dev: get decompress build_dev
|
||||
|
||||
get:
|
||||
wget https://github.com/matrix-org/synapse/archive/refs/tags/v$(VERSION).tar.gz
|
||||
|
||||
decompress:
|
||||
tar -xf v$(VERSION).tar.gz
|
||||
|
||||
build:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
|
||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
-f Dockerfile ${IMAGE}-${VERSION}
|
||||
|
||||
build_dev:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm \
|
||||
--output type=tar,dest=synapse.tar \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
-f Dockerfile ${IMAGE}-${VERSION}
|
@ -1,4 +1,4 @@
|
||||
FROM ubuntu:focal-20210119
|
||||
FROM ubuntu:focal-20210416
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
COPY entrypoint.sh /docker-entrypoint.sh
|
||||
|
@ -1,2 +1,2 @@
|
||||
VERSION=6.2.16
|
||||
UNIFI_VERSION=6.2.16-5e841c18e7
|
||||
VERSION=6.2.26
|
||||
UNIFI_VERSION=6.2.26-a79cb15f05
|
||||
|
@ -1,8 +0,0 @@
|
||||
FROM debian:buster-20210111-slim
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG VERSION
|
||||
RUN apt update -qq && \
|
||||
apt install -qqy --no-install-recommends watchdog=$VERSION && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENTRYPOINT ["/usr/sbin/watchdog", "-F"]
|
@ -1,19 +0,0 @@
|
||||
NAMESPACE=alemairebe
|
||||
include version
|
||||
|
||||
IMAGE=watchdog
|
||||
|
||||
nopush:
|
||||
docker buildx build --platform linux/amd64 --load \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
||||
|
||||
push:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm,linux/ppc64le --push \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
||||
|
@ -1 +0,0 @@
|
||||
VERSION=5.15-2
|
Reference in New Issue
Block a user