6 Commits
Author SHA1 Message Date
arjunsalyan 4be3528790 Add basic functions and commands to run livecheck 2020-05-23 13:06:10 +05:30
arjunsalyan d3a7a38f44 Move MacPorts/* to django project root 2020-05-23 13:06:10 +05:30
Arjun SalyanandMojca Miklavec ca96264390 Do not generate migration files inside the container 2019-08-11 22:46:59 +02:00
Clemens LangandArjun Salyan b8e131ba5b docker: Support running as unprivileged user
For our production deployment, I do not want to run the container with
elevated privileges. Instead, allow specifying a user a build argument,
add the required chown statements for paths that should be writable
during production and switch the nginx port to a port from the
unprivileged port range so that non-root users can bind to it.

This allows successfully running the container using the following
command line:

  docker run -d \
    --publish 8080:8080 \
    --user=$uid:$gid \
    --env-file=env \
    -v /postgres/socket/dir:/postgres/socket/dir \
    -v /etc/passwd:/etc/passwd:ro \
    --name=macports-webapp macports-webapp
2019-08-01 21:23:26 +05:30
Arjun Salyan 02a30ebbc3 Add cron for update-portinfo command 2019-07-19 19:40:05 +05:30
arjunsalyanandMojca Miklavec a8b73b7d33 Add docker configuration and documentation
Commands like migrate and collectstatic should always run when the
container is (re)started. Other commands like load and cron
should be started manually.

Closes: https://github.com/macports/macports-webapp/pull/32
2019-07-16 23:30:03 +02:00