1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-11 16:32:59 +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 ${docker_repo}/kopano_core
@@ -9,7 +10,9 @@ LABEL maintainer=az@zok.xyz \
org.label-schema.version=$KOPANO_CORE_VERSION \
org.label-schema.schema-version="1.0"
RUN apt-get update && apt-get install --no-install-recommends -y \
# hadolint ignore=SC2215
RUN --mount=type=secret,id=repocred,dst=/etc/apt/apt_auth.conf \
apt-get update && apt-get install --no-install-recommends -y \
git \
iputils-ping \
kopano-backup \