diff options
| author | Amir Zarrinkafsh <nightah@me.com> | 2020-06-17 16:25:35 +1000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-17 16:25:35 +1000 | 
| commit | ff7f9a50ab39b6e7932f216732001562a567dece (patch) | |
| tree | 2b939bd6cf14c3542ed6cba98663bb778c715c0f /.buildkite/hooks/pre-artifact | |
| parent | 53ea5a067a4bd4435cd43a2365c09401f17f3b89 (diff) | |
[FEATURE] Docker simplification and configuration generation (#1113)
* [FEATURE] Docker simplification and configuration generation
The Authelia binary now will attempt to generate configuration based on the latest template assuming that the config location specified on startup does not exist. If a file based backend is selected and the backend cannot be found similarly it will generate a `user_database.yml` based a template.
This will allow more seamless bootstrapping of an environment no matter the deployment method.
We have also squashed the Docker volume requirement down to just `/config` thus removing the requirement for `/var/lib/authelia` this is primarily in attempts to simplify the Docker deployment.
Users with the old volume mappings have two options:
1. Change their mappings to conform to `/config`
2. Change the container entrypoint from `authelia --config /config/configuration.yml` to their old mapping
* Adjust paths relative to `/etc/authelia` and simplify to single volume for compose
* Add generation for file backend based user database
* Refactor Docker volumes and paths to /config
* Refactor Docker WORKDIR to /app
* Fix integration tests
* Update BREAKING.md for v4.20.0
* Run go mod tidy
* Fix log_file_path in miscellaneous.md docs
* Generate config and userdb with 0600 permissions
* Fix log_file_path in config.template.yml
Diffstat (limited to '.buildkite/hooks/pre-artifact')
| -rwxr-xr-x | .buildkite/hooks/pre-artifact | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/.buildkite/hooks/pre-artifact b/.buildkite/hooks/pre-artifact index fc2a67197..a9f62a4da 100755 --- a/.buildkite/hooks/pre-artifact +++ b/.buildkite/hooks/pre-artifact @@ -14,7 +14,7 @@ if [[ $BUILDKITE_LABEL =~ ":docker: Build Image" ]]; then    # Save binary for buildkite and github artifacts    if [[ "${ARCH}" != "coverage" ]]; then      docker create --name authelia-binary ${DOCKER_IMAGE}:latest -    docker cp authelia-binary:/usr/app/authelia ./authelia-"${OS}"-"${ARCH}" +    docker cp authelia-binary:/app/authelia ./authelia-"${OS}"-"${ARCH}"      docker rm -f authelia-binary      tar -czf authelia-"${OS}"-"${ARCH}".tar.gz authelia-"${OS}"-"${ARCH}" authelia.service config.template.yml      sha256sum authelia-"${OS}"-"${ARCH}".tar.gz > authelia-"${OS}"-"${ARCH}".tar.gz.sha256  | 
