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

add medienhaus-cms and medienhaus-api options to composition #5

Merged
merged 110 commits into from
Oct 13, 2023

Conversation

andirueckel
Copy link
Member

@andirueckel andirueckel commented Sep 14, 2023

This adds medienhaus-api and medienhaus-cms to the medienhaus/ docker composition.

As medienhaus-api depends on a valid matrix-synapse account to manage spaces and rooms, we need to register such an account with matrix-synapse before starting up; this splits the .env variable substitution as well as the start-up of the docker composition in two phases; this pull-request adds the init.sh helper script to aid with the second phase.

The init.sh script is non-repeatable, only executed once for registering the medienhaus-admin account with matrix-synapse and retrieving an access_token and writing it to the .env file. The init.sh script could be re-run after changing MEDIENHAUS_ADMIN_USER_ID in .env, and thereby registering a new account with matrix-synapse.

The envsubst.sh script is repeatable; every time changes are made to .env or the template/* files, re-run the script and re-create the configuration files and docker compose up -d --force-recreate --build --no-deps

Please consult both scripts’ help/information regarding the different command line arguments in case you’re interested in including medienhaus-api and/or medienhaus-cms via the following commands:

sh ./scripts/init.sh --help
sh ./scripts/envsubst.sh --help

Note: The etherpad-lite submodule is pinned at tags/v1.9.1 because of a newly introduced bug in the ether/ueberDB dependency, which was fixed by @robertschnuell in ether/ueberDB#464.

@andirueckel andirueckel force-pushed the add-medienhaus-cms-and-medienhaus-api branch 2 times, most recently from fb05bea to c81bec1 Compare October 11, 2023 08:24
@andirueckel andirueckel force-pushed the add-medienhaus-cms-and-medienhaus-api branch from 1987e02 to 4cd0019 Compare October 11, 2023 08:27
@andirueckel andirueckel changed the title draft: add medienhaus-cms and medienhaus-api to composition add medienhaus-cms and medienhaus-api options to composition Oct 13, 2023
@andirueckel andirueckel merged commit 708da01 into main Oct 13, 2023
@andirueckel andirueckel deleted the add-medienhaus-cms-and-medienhaus-api branch October 13, 2023 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants