1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-23 14:22:54 +00:00

Prepare usage of build secrets (#303)

* sort .gitignore and add apt_auth.conf to it
* add helper to setup.sh to create apt_auth.conf (user still needs to enter their own credentials)
   * only create apt_auth.conf in make if it doesn't already exist
* add tooling to core dockerfile and makefile to use build secrets
* add ignore for hadolint as mounting syntax is currently not supported so far
* update to latest docker on travis for buildkit support
* documentation
* sort gitignore
* add dockerfile syntax definition for build args
This commit is contained in:
Felix Bartels
2020-05-22 10:23:09 +02:00
committed by GitHub
parent 2974903dc5
commit 7a04c93219
17 changed files with 119 additions and 63 deletions
+4 -1
View File
@@ -1,3 +1,4 @@
# syntax = docker/dockerfile:1.0-experimental
ARG docker_repo=zokradonh
FROM composer:1.9 as builder
@@ -31,7 +32,9 @@ LABEL maintainer=az@zok.xyz \
org.label-schema.schema-version="1.0"
# install Kopano kDAV
RUN \
# hadolint ignore=SC2215
RUN --mount=type=secret,id=repocred,dst=/etc/apt/apt_auth.conf \
# apt key for this repo has already been installed in base
echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_CORE_REPOSITORY_URL} ./" > /etc/apt/sources.list.d/kopano.list; \
set -x && \
apt-get update && apt-get install -y --no-install-recommends \