mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-17 13:58:19 +00:00
Compare commits
75 Commits
d3aa3298cb
...
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 | |||
e48744774c | |||
e2061992d1 | |||
dcd0c90456 | |||
0b60c4b88a | |||
59bd3cd1f2 | |||
81c7be7cf0 | |||
1518b2d267 | |||
14af0d3877 | |||
10ffb41353 | |||
5810781fd4 | |||
303d218570 | |||
c97ef43629 | |||
1fb91c73f3 | |||
a245874763 | |||
df57e4cb79 | |||
d86d91c336 | |||
d166831ee9 | |||
fa837c95ac | |||
58b7d8788c | |||
2d47d49c49 | |||
b8f7df566c | |||
51130880da | |||
eed7d54d42 | |||
4c78b7a67f | |||
29fdd75ca1 | |||
2bd2ca4aa5 | |||
0c90e97185 | |||
2d87a247f2 | |||
b807cc60bc | |||
2f0862d098 | |||
783f804556 | |||
813306c275 | |||
ff0634c91e | |||
6bd5e2efc5 |
142
.gitlab-ci.yml
142
.gitlab-ci.yml
@ -6,39 +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"
|
||||
|
||||
minio:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd minio
|
||||
- cd dovecot
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- 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:
|
||||
- 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
|
||||
@ -50,17 +68,8 @@ watchdog:
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
|
||||
dev-unifi:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd unifi
|
||||
- make nopush
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||
changes:
|
||||
- watchdog/*
|
||||
|
||||
unifi:
|
||||
stage: build
|
||||
@ -72,17 +81,8 @@ unifi:
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
|
||||
dev-keycloak:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd keycloak
|
||||
- make nopush
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||
changes:
|
||||
- unifi/*
|
||||
|
||||
keycloak:
|
||||
stage: build
|
||||
@ -94,28 +94,8 @@ keycloak:
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
|
||||
dev-restic:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd restic
|
||||
- make nopush
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||
|
||||
restic:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd restic
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- keycloak/*
|
||||
|
||||
pleroma:
|
||||
stage: build
|
||||
@ -127,17 +107,8 @@ pleroma:
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
|
||||
dendrite:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd dendrite
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- pleroma/*
|
||||
|
||||
roundcubemail:
|
||||
stage: build
|
||||
@ -149,17 +120,34 @@ roundcubemail:
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
changes:
|
||||
- roundcubemail/*
|
||||
|
||||
borg:
|
||||
shields:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- cd borg
|
||||
- cd shields
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
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
|
||||
@ -176,8 +164,8 @@ borg:
|
||||
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.2
|
||||
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 +1 @@
|
||||
VERSION=v2.2.2
|
||||
VERSION=v2.3.0
|
||||
|
@ -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,16 +1,21 @@
|
||||
FROM debian:buster-20210208-slim
|
||||
FROM debian:buster-20210408-slim
|
||||
ENV APACHE_CONFDIR /etc/apache2
|
||||
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
|
||||
RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
apt-get update -qqy; \
|
||||
apt-get install -qqy --no-install-recommends \
|
||||
php-exif \
|
||||
php-gd \
|
||||
php-intl \
|
||||
php-ldap \
|
||||
php-pdo-mysql \
|
||||
php-pdo-pgsql \
|
||||
php-pdo-sqlite \
|
||||
php-zip \
|
||||
php-imagick \
|
||||
php-cli \
|
||||
php-mbstring \
|
||||
php-xml \
|
||||
apache2 \
|
||||
libapache2-mod-php \
|
||||
rsync \
|
||||
@ -19,10 +24,50 @@ RUN set -ex; \
|
||||
dirmngr \
|
||||
locales \
|
||||
libc-l10n \
|
||||
ca-certificates \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
a2enmod rewrite
|
||||
a2dismod mpm_event && a2enmod mpm_prefork && a2enmod rewrite; \
|
||||
mkdir -p /etc/ssl/certs; \
|
||||
curl -fLSko /etc/ssl/certs/cacert.pem https://curl.se/ca/cacert.pem; \
|
||||
sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; \
|
||||
\
|
||||
. "$APACHE_ENVVARS"; \
|
||||
for dir in \
|
||||
"$APACHE_LOCK_DIR" \
|
||||
"$APACHE_RUN_DIR" \
|
||||
"$APACHE_LOG_DIR" \
|
||||
; do \
|
||||
rm -rvf "$dir"; \
|
||||
mkdir -p "$dir"; \
|
||||
chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; \
|
||||
chmod 777 "$dir"; \
|
||||
done; \
|
||||
\
|
||||
rm -rvf /var/www/html/*; \
|
||||
chmod 777 /var/www/html; \
|
||||
\
|
||||
# logs should go to stdout / stderr
|
||||
ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; \
|
||||
ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; \
|
||||
ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; \
|
||||
chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"; \
|
||||
{ \
|
||||
echo '<FilesMatch \.php$>'; \
|
||||
echo '\tSetHandler application/x-httpd-php'; \
|
||||
echo '</FilesMatch>'; \
|
||||
echo; \
|
||||
echo 'DirectoryIndex disabled'; \
|
||||
echo 'DirectoryIndex index.php index.html'; \
|
||||
echo; \
|
||||
echo '<Directory /var/www/>'; \
|
||||
echo '\tOptions -Indexes'; \
|
||||
echo '\tAllowOverride All'; \
|
||||
echo '</Directory>'; \
|
||||
} | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \
|
||||
&& a2enconf docker-php
|
||||
|
||||
ENV CURL_CA_BUNDLE=/etc/ssl/certs/cacert.pem \
|
||||
SSL_CERT_FILE=/etc/ssl/certs/cacert.pem
|
||||
|
||||
# install composer
|
||||
RUN set -ex; \
|
||||
@ -38,7 +83,7 @@ RUN curl -fL https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait
|
||||
COPY php.ini /usr/local/etc/php/conf.d/roundcube-defaults.ini
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
|
||||
COPY apache2-foreground /usr/local/bin/
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
CMD ["apache2-foreground"]
|
||||
|
||||
@ -47,13 +92,15 @@ VOLUME /var/roundcube/config
|
||||
VOLUME /var/roundcube/db
|
||||
VOLUME /var/www/html
|
||||
VOLUME /tmp/roundcube-temp
|
||||
|
||||
WORKDIR /var/www/html
|
||||
STOPSIGNAL SIGWINCH
|
||||
# Define Roundcubemail version
|
||||
ARG VERSION
|
||||
ENV ROUNDCUBEMAIL_VERSION $VERSION
|
||||
|
||||
# Download package and extract to web volume
|
||||
RUN set -ex; \
|
||||
chmod +x /docker-entrypoint.sh /usr/local/bin/apache2-foreground; \
|
||||
curl -o roundcubemail.tar.gz -fSL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz; \
|
||||
curl -o roundcubemail.tar.gz.asc -fSL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz.asc; \
|
||||
export GNUPGHOME="$(mktemp -d)"; \
|
||||
@ -68,3 +115,19 @@ RUN set -ex; \
|
||||
rm -r "$GNUPGHOME" roundcubemail.tar.gz.asc roundcubemail.tar.gz; \
|
||||
rm -rf /usr/src/roundcubemail/installer; \
|
||||
chown -R www-data:www-data /usr/src/roundcubemail/logs
|
||||
|
||||
RUN set -ex; \
|
||||
/usr/local/bin/composer.phar \
|
||||
--working-dir=/usr/src/roundcubemail/ \
|
||||
--prefer-dist --prefer-stable \
|
||||
--no-update --no-interaction \
|
||||
--optimize-autoloader --apcu-autoloader \
|
||||
require \
|
||||
roundcube/carddav \
|
||||
; \
|
||||
/usr/local/bin/composer.phar \
|
||||
--working-dir=/usr/src/roundcubemail/ \
|
||||
--prefer-dist --no-dev \
|
||||
--no-interaction \
|
||||
--optimize-autoloader --apcu-autoloader \
|
||||
update;
|
||||
|
40
roundcubemail/apache2-foreground
Normal file
40
roundcubemail/apache2-foreground
Normal file
@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Note: we don't just use "apache2ctl" here because it itself is just a shell-script wrapper around apache2 which provides extra functionality like "apache2ctl start" for launching apache2 in the background.
|
||||
# (also, when run as "apache2ctl <apache args>", it does not use "exec", which leaves an undesirable resident shell process)
|
||||
|
||||
: "${APACHE_CONFDIR:=/etc/apache2}"
|
||||
: "${APACHE_ENVVARS:=$APACHE_CONFDIR/envvars}"
|
||||
if test -f "$APACHE_ENVVARS"; then
|
||||
. "$APACHE_ENVVARS"
|
||||
fi
|
||||
|
||||
# Apache gets grumpy about PID files pre-existing
|
||||
: "${APACHE_RUN_DIR:=/var/run/apache2}"
|
||||
: "${APACHE_PID_FILE:=$APACHE_RUN_DIR/apache2.pid}"
|
||||
rm -f "$APACHE_PID_FILE"
|
||||
|
||||
# create missing directories
|
||||
# (especially APACHE_RUN_DIR, APACHE_LOCK_DIR, and APACHE_LOG_DIR)
|
||||
for e in "${!APACHE_@}"; do
|
||||
if [[ "$e" == *_DIR ]] && [[ "${!e}" == /* ]]; then
|
||||
# handle "/var/lock" being a symlink to "/run/lock", but "/run/lock" not existing beforehand, so "/var/lock/something" fails to mkdir
|
||||
# mkdir: cannot create directory '/var/lock': File exists
|
||||
dir="${!e}"
|
||||
while [ "$dir" != "$(dirname "$dir")" ]; do
|
||||
dir="$(dirname "$dir")"
|
||||
if [ -d "$dir" ]; then
|
||||
break
|
||||
fi
|
||||
absDir="$(readlink -f "$dir" 2>/dev/null || :)"
|
||||
if [ -n "$absDir" ]; then
|
||||
mkdir -p "$absDir"
|
||||
fi
|
||||
done
|
||||
|
||||
mkdir -p "${!e}"
|
||||
fi
|
||||
done
|
||||
|
||||
exec apache2 -DFOREGROUND "$@"
|
@ -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=1.4.11
|
||||
VERSION=1.5-beta
|
||||
|
18
shields/Dockerfile
Normal file
18
shields/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM node:12-alpine
|
||||
|
||||
RUN mkdir -p /usr/src/app/private
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . /usr/src/app
|
||||
# We need dev deps to build the front end. We don't need Cypress, though.
|
||||
RUN NODE_ENV=development CYPRESS_INSTALL_BINARY=0 npm ci && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
npm cache clean --force
|
||||
|
||||
# Run the server using production configs.
|
||||
ENV NODE_ENV production
|
||||
|
||||
CMD node server
|
||||
|
||||
EXPOSE 80
|
20
shields/Makefile
Normal file
20
shields/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
NAMESPACE=alemairebe
|
||||
include version
|
||||
|
||||
IMAGE=shields
|
||||
|
||||
push: get decompress build
|
||||
|
||||
get:
|
||||
wget https://github.com/badges/shields/archive/$(VERSION).tar.gz
|
||||
|
||||
decompress:
|
||||
tar -xf $(VERSION).tar.gz
|
||||
|
||||
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) \
|
||||
--file Dockerfile shields-$(VERSION)
|
1
shields/version
Normal file
1
shields/version
Normal file
@ -0,0 +1 @@
|
||||
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,11 +1,13 @@
|
||||
FROM ubuntu:focal-20201106
|
||||
FROM ubuntu:focal-20210416
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
COPY entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
ARG TARGETARCH
|
||||
ARG UNIFI_VERSION
|
||||
ARG VERSION
|
||||
ENV VERSION $VERSION
|
||||
ENV JAVA_OPTS -Xmx512M
|
||||
|
||||
WORKDIR /tmp
|
||||
RUN mkdir -p /usr/share/man/man1 && \
|
||||
@ -15,16 +17,13 @@ RUN mkdir -p /usr/share/man/man1 && \
|
||||
apt install -qqy --no-install-recommends /tmp/unifi_sysvinit_all.deb procps tini openjdk-8-jre-headless && \
|
||||
apt remove -qqy wget && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
rm /tmp/unifi_sysvinit_all.deb
|
||||
rm /tmp/unifi_sysvinit_all.deb && \
|
||||
ln -s /var/lib/unifi /usr/lib/unifi/data
|
||||
|
||||
|
||||
RUN ln -s /var/lib/unifi /usr/lib/unifi/data
|
||||
EXPOSE 8080/tcp 8443/tcp 8843/tcp 8880/tcp 3478/udp
|
||||
|
||||
WORKDIR /var/lib/unifi
|
||||
ENV JAVA_OPTS -Xmx512M
|
||||
|
||||
COPY entrypoint.sh /docker-entrypoint.sh
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--", "/docker-entrypoint.sh"]
|
||||
|
||||
CMD ["start"]
|
||||
|
@ -1,2 +1,2 @@
|
||||
VERSION=6.1.54
|
||||
UNIFI_VERSION=6.1.54-f60db383e8
|
||||
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