-
Notifications
You must be signed in to change notification settings - Fork 4
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
Docker #6
base: main
Are you sure you want to change the base?
Docker #6
Commits on Aug 20, 2024
-
Remove -x settings from siikr.conf
siikr.conf should probably be treated as a configuration or env file, so it should not have execute permissions. It should only be invoked by using `source` in your shell.
Configuration menu - View commit details
-
Copy full SHA for 756708b - Browse repository at this point
Copy the full SHA 756708bView commit details -
docker: add Dockerfile and supervisord.conf
The Dockerfile tries to emulate the simple_setup.sh script as closely as possible. A couple of quirks: * php-zmq does not appear to have a Debian package, and the package on PECL is from 2016 and the repo has been abandoned. Instead, we need to compile it from source. Not a huge deal, but still annoying. * Since the msgrouter service can't really run in Docker (since it uses systemd services) I have opted to use supervisord. See here: https://docs.docker.com/config/containers/multi-service_container/ Signed-off-by: Alek Ratzloff <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2ef6883 - Browse repository at this point
Copy the full SHA 2ef6883View commit details -
docker: Rename siikr.conf -> siikr.example.env
Since siikr.conf is more of an environment file, the extension should reflect that. I have also renamed it to siikr.example.env - this is so that if the configuation is changed, it will only go into the example env file, and not cause issues with pulling down into a modified siikr.env file. Additionally, it helps prevent in-dev configuration from accidentally getting committed in the case that someone uses `git commit -a` a bit carelessly. Signed-off-by: Alek Ratzloff <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0065b7d - Browse repository at this point
Copy the full SHA 0065b7dView commit details -
Move Dockerfile -> docker/php-fpm.Dockerfile, and add DB configuratio…
…n step to php-fpm.Dockerfile Signed-off-by: Alek Ratzloff <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8b95507 - Browse repository at this point
Copy the full SHA 8b95507View commit details -
Add docker-compose, postgres.Dockerfile, create_database.sh script, a…
…nd update README + env example * docker-compose.yaml for docker-compose command * postgres.Dockerfile sets up Postgres appropriately * create_database.sh script will create the Postgres database from the SQL in the siikr directory in the Docker container * README includes base instructions for using docker-compose * Update siikr.example.env to include the POSTGRES_* environment variables necessary for Docker deployment Signed-off-by: Alek Ratzloff <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 01bdc9e - Browse repository at this point
Copy the full SHA 01bdc9eView commit details -
Add siikr.env to root .gitignore
Signed-off-by: Alek Ratzloff <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f422ea5 - Browse repository at this point
Copy the full SHA f422ea5View commit details -
docker: Add DB host configuration and get_db() function
* DB host was not previously available in the user configuration, this is now added in case your DB is hosted anywhere besides localhost (as is the case with Docker) * All of the `new PDO` calls were either using a hard-coded database user or getting the currently logged in UNIX user, rather than the configured user. The password was also being set to null. This is resolved with the `get_db()` function in the internal/globals.php file. All calls to `new PDO` are also updated so we don't have to update it in 6 different places, either. Signed-off-by: Alek Ratzloff <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4c666e0 - Browse repository at this point
Copy the full SHA 4c666e0View commit details -
Add postgres_data/ directory to .gitignore
Signed-off-by: Alek Ratzloff <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b5a8309 - Browse repository at this point
Copy the full SHA b5a8309View commit details -
docker: Add nginx to the PHP FPM container
* Forward port 80 -> 8080 * Install nginx in php container * Add a php-fpm-siikr.conf file for Docker * Add an nginx-siikr.conf file Docker Signed-off-by: Alek Ratzloff <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0e2d88e - Browse repository at this point
Copy the full SHA 0e2d88eView commit details -
Add siikr/internal/disks.php file creation to php-fpm.Dockerfile
Signed-off-by: Alek Ratzloff <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3636659 - Browse repository at this point
Copy the full SHA 3636659View commit details -
Fix a couple of small bugs in index.php and show_page.php
* Use `isset` on the $_GET key, instead of checking for implicit membership * Add a catch for `DivisionByZeroError` in the show_page.php - not sure why the `catch (Exception $e)` wasn't catching it. (We can fix it later) Signed-off-by: Alek Ratzloff <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d1a5266 - Browse repository at this point
Copy the full SHA d1a5266View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0d575b - Browse repository at this point
Copy the full SHA c0d575bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 734c0ed - Browse repository at this point
Copy the full SHA 734c0edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 548cab5 - Browse repository at this point
Copy the full SHA 548cab5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7950608 - Browse repository at this point
Copy the full SHA 7950608View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ecd316 - Browse repository at this point
Copy the full SHA 0ecd316View commit details -
Configuration menu - View commit details
-
Copy full SHA for 155aabd - Browse repository at this point
Copy the full SHA 155aabdView commit details -
Configuration menu - View commit details
-
Copy full SHA for bb12812 - Browse repository at this point
Copy the full SHA bb12812View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4919abf - Browse repository at this point
Copy the full SHA 4919abfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c7fb2f - Browse repository at this point
Copy the full SHA 6c7fb2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 598d13c - Browse repository at this point
Copy the full SHA 598d13cView commit details