Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: rework Container image, Compose manifest and CI #64

Open
wants to merge 83 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
153d5be
Remove Ansible 🏵
almereyda May 6, 2024
de68785
Remove Submodule 🏵
almereyda May 6, 2024
6480799
Rename build workflow
almereyda May 6, 2024
add6812
Remove reverse proxy examples 🏵
almereyda May 6, 2024
4642939
Remove Supervisor configuration 🏵
almereyda May 9, 2024
5dd26a1
Fix(CI): rename container image
almereyda May 9, 2024
12996d3
Chore: update gitignore
almereyda May 9, 2024
a0e5449
Feat: Add LICENSE
almereyda May 9, 2024
8e50e02
Feat: Build container from release version, add cron, update entrypoint
almereyda May 9, 2024
5904427
Feat: Rework Compose manifest, add dotenv and nginx configuration
almereyda May 9, 2024
efc7f81
Feat: Add plugins compose + context to build image with plugins
almereyda May 9, 2024
a273bd5
Feat: Add compose for local development and Traefik deployment
almereyda May 9, 2024
8991235
Chore: relocate pretalx.cfg example
almereyda May 9, 2024
cdb9bc4
Docs(README): adapt to build + compose changes
almereyda May 9, 2024
5c53801
Feat: parametrise Dockerfile with build arguments
almereyda May 9, 2024
1f2ac77
Feat: split local into an independent build overlay
almereyda May 9, 2024
a00895e
Docs(README): adapt + simplify explanations, wording and typos
almereyda May 9, 2024
62ed514
Fix: crontab
almereyda May 9, 2024
2be5f93
Fix(typing): reintroduce libmemcached-dev dependency
almereyda May 9, 2024
703579f
Chore: set Python version to 3.12
almereyda May 9, 2024
81f4bf9
Chore: reduce compose.yml fragments syntax
almereyda May 9, 2024
ae6b659
Docs(README): typos
almereyda May 9, 2024
76188b1
Docs(README): corrections
almereyda May 10, 2024
2ab316b
Docs(README): add contents and management commands
almereyda May 10, 2024
97c99b6
Chore(compose): remove volumes from plugins
almereyda May 10, 2024
2b1a01c
Docs(README): Contents listing simplified
almereyda May 10, 2024
b4754ce
Docs(README): update Python version in init output
almereyda May 10, 2024
95dac5b
Fix(CI): more useful workflow triggers
almereyda May 10, 2024
3887700
Chore(cosmetics): syntactical and semantical ergonomy
almereyda May 10, 2024
dee0464
Feat: add legacy docker-compose example
May 10, 2024
92a2d72
Feat: add legacy docker-compose example
May 10, 2024
95b90d9
Revert "Fix(CI): more useful workflow triggers"
almereyda May 10, 2024
e66a861
Feat(CI): add triggers for more usage scenarios
almereyda May 10, 2024
b74f132
Fix(CI): build pretalx/pretalx image from default context
almereyda May 10, 2024
cae6d31
Fix(CI): disable slow arm64 build (for now)
almereyda May 10, 2024
60a6c75
Merge pull request #1 from allmende/feat/ci
almereyda May 10, 2024
c2acb9a
Feat(CI): Build default context by calling generic Build/Push workflow
almereyda May 10, 2024
d69b00e
Fix(CI): Update metadata-action tags syntax
almereyda May 10, 2024
93d6646
Fix(CI): hard-code image build args
almereyda May 10, 2024
5a4faa3
Merge pull request #2 from allmende/feat/ci
almereyda May 10, 2024
913e921
Fix(CI): apply explicit permissions to caller workflow
almereyda May 10, 2024
411813f
Feat(CI): build pretalx-extended image from plugins context
almereyda May 10, 2024
50d3ec8
Feat(CI): only build pretalx image when workflow or context changes
almereyda May 10, 2024
b32c2f2
Fix(CI): adapt plugins workflow and image
almereyda May 10, 2024
6ecd0ae
Merge pull request #3 from allmende/feat/ci-plugins
almereyda May 10, 2024
71083be
Merge pull request #4 from allmende/next
almereyda May 10, 2024
67038c7
Fix(CI): differentiate workflow names
almereyda May 10, 2024
9e2347f
Merge pull request #5 from allmende/fix/ci-plugins
almereyda May 10, 2024
c5b1f77
Fix(CI): use expected name of secret token for Docker Hub
almereyda May 10, 2024
91e6335
Merge pull request #6 from allmende/fix/ci-plugins
almereyda May 10, 2024
b61cd65
Merge pull request #7 from allmende/next
almereyda May 10, 2024
5d3600e
Feat(CI): build plugins context from latest release and omit release …
almereyda May 10, 2024
388b878
Fix(compose/plugins): use updated image build args
almereyda May 10, 2024
d1229cf
Docs(CI): workflows, artifacts, context, dockerfiles, pull from registry
almereyda May 10, 2024
dc94e02
Feat(CI): choose GHCR repository according to current user/repository
almereyda May 11, 2024
13dcbf6
Feat(CI): parametrise Compose image builds
almereyda May 12, 2024
b1eda1a
Feat(CI): parametrise legacy Docker Compose image builds
almereyda May 12, 2024
dd8ac52
Chore(gitignore): ignore eventual legacy environment
almereyda May 12, 2024
cd06a80
Merge branch 'main' of https://github.com/allmende/pretalx-docker int…
May 12, 2024
68537d4
Merge branch 'main' of https://github.com/allmende/pretalx-docker int…
May 12, 2024
f5cba1e
Chore: synchronise branches
almereyda May 12, 2024
155f73c
Docs(README): add helpful hint about legacy setup
almereyda May 12, 2024
dbe5b04
Feat: Separate build stages, contexts and add bulk scripts
almereyda May 22, 2024
0747a63
Chore(CI): Remove automatic pipeline triggers
almereyda May 22, 2024
146518d
Feat(CI): add pipeline to build all images
almereyda May 22, 2024
f0d2f73
Fix(CI): reduce number of inputs on workflow_dispatch
almereyda May 22, 2024
87bc5e8
Fix(CI): file input default value
almereyda May 22, 2024
8e1e016
Fix(CI): Provide actual job names
almereyda May 22, 2024
f84ac9e
Fix(CI): build dependent images from digest
almereyda May 22, 2024
0bce9b1
Fix(CI), build dependent images from digest, take II
almereyda May 22, 2024
df65a0f
Fix(CI), build dependent images from digest, take III
almereyda May 22, 2024
aee0664
Fix(CI): separate base and default manifests
almereyda May 22, 2024
ec5aa56
Chore: default to PIP user installation
almereyda May 22, 2024
f6123c1
Chore: remove unused build stage names in single-stage image manifests
almereyda May 22, 2024
eca13c0
Fix(CI): scope BASE_* build arguments to pretalx, where semantically …
almereyda May 22, 2024
a5ce709
Fix(CI): do not scope BASE_* build arguments to pretalx, if not insta…
almereyda May 22, 2024
273140c
Fix(CI): Use expected artifact names
almereyda May 23, 2024
2f88e9f
Chore: remove further unused build stage names
almereyda May 23, 2024
8b24175
Fix(CI): hard-code build contexts to remove ambiguity
almereyda May 23, 2024
0d2630c
Fix(CI): add missing meta data of imported image to job environment
almereyda May 23, 2024
796a7a9
Feat(CI): introduce release trigger for building all images, prepare …
almereyda May 23, 2024
8bea177
Feat(CI): Compatibility with triggers without inputs
almereyda May 23, 2024
12a2d63
Docs(README): add base context
almereyda May 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
PRETALX_IMAGE=docker.io/library/pretalx/pretalx
PRETALX_TAG=latest

FQDN=localhost.local

POSTGRES_PASSWORD=veryunsecureplschange
POSTGRES_USER=pretalx
POSTGRES_DB=pretalx

PRETALX_LOG_LEVEL=info

PRETALX_DB_NAME=${POSTGRES_DB}
PRETALX_DB_USER=${POSTGRES_USER}
PRETALX_DB_PASS=${POSTGRES_PASSWORD}

PRETALX_DATA_DIR=/data
PRETALX_FILESYSTEM_LOGS=/data/logs

PRETALX_FILESYSTEM_MEDIA=/public/media
PRETALX_FILESYSTEM_STATIC=/public/static

PRETALX_DEBUG=False
PRETALX_SITE_URL=http://localhost:8080

PRETALX_SITE_CSP=
PRETALX_SITE_CSP_STYLE=
PRETALX_SITE_CSP_SCRIPT=
PRETALX_SITE_CSP_IMG=
PRETALX_SITE_CSP_FORM=

PRETALX_DB_TYPE=postgresql
PRETALX_DB_HOST=postgres
PRETALX_DB_PORT=5432

PRETALX_MAIL_FROM=admin@localhost
PRETALX_MAIL_HOST=localhost
PRETALX_MAIL_PORT=25
PRETALX_MAIL_USER=
PRETALX_MAIL_PASSWORD=
PRETALX_MAIL_TLS=False
PRETALX_MAIL_SSL=False

PRETALX_CELERY_BACKEND=redis://redis/1
PRETALX_CELERY_BROKER=redis://redis/2

PRETALX_REDIS=redis://redis/0
PRETALX_REDIS_SESSIONS=true

PRETALX_LOGGING_EMAIL=
PRETALX_LOGGING_EMAIL_LEVEL=ERROR

PRETALX_LANGUAGE_CODE=en
PRETALX_TIME_ZONE=UTC
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Docker

on:
workflow_dispatch: # allows to be run manually
workflow_dispatch: # Allow manual run
push:
tags:
- '*'
Expand All @@ -25,7 +25,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.push_to_docker_hub == 'true' && 'pretalx/standalone' || format('ghcr.io/{0}', github.repository) }}
images: ${{ env.push_to_docker_hub == 'true' && 'pretalx/pretalx' || format('ghcr.io/{0}', github.repository) }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
volumes/
.env
pretalx.cfg
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

54 changes: 0 additions & 54 deletions Dockerfile

This file was deleted.

1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CC0
Loading