mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
ce7b6b8167
* Build docker image upfront in CI and use it in integration tests. Previously, the development workflow was broken because the container generated from Dockerfile.CI was used in dev environments but the binary was not pre-built as it is on buildkite. I propose to just remove that image and use the "to be published" image instead in integration tests. This will have several advantages: - Fix the dev workflow. - Remove CI arch from authelia-scripts build command - Optimize CI time in buildkite since we'll cache a way small artifact - We don't build authelia more than once for earch arch. * Fix suites and only build ARM images on master or tagged commits * Optimise pipeline dependencies and Kubernetes suite to utilise cache * Run unit tests and docker image build in parallel. * Fix suite trying to write on read only fs. Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
17 lines
412 B
Docker
17 lines
412 B
Docker
FROM golang:1.13-alpine
|
|
|
|
ARG USER_ID
|
|
ARG GROUP_ID
|
|
|
|
# gcc and musl-dev are required for building go-sqlite3
|
|
RUN addgroup --gid ${GROUP_ID} dev && \
|
|
adduser --uid ${USER_ID} -G dev -D dev && \
|
|
apk --no-cache add gcc musl-dev
|
|
|
|
RUN mkdir -p /etc/authelia && chown dev:dev /etc/authelia
|
|
RUN mkdir -p /var/lib/authelia && chown dev:dev /var/lib/authelia
|
|
|
|
USER dev
|
|
|
|
VOLUME /etc/authelia
|
|
VOLUME /var/lib/authelia |