A Docker image with tools to build and update Qgis Web Client 2.
USER=container_user_name
SSH_PORT=exposed_ssh_port
QWC2_GIT_BRANCH=git_branch_to_clone
QWC2_GIT_REPOSITORY=git_repository_to_clone
/run/secrets:
- /run/secrets/id_rsa contains private ssh key to use when cloning from Github (optional).
- /run/secrets/user-pw contains encrypted password for USER. If user-pw is set then it is used for ssh authentication.
- /run/secrets/authorized_keys is used for ssh private key authentication. Is copied to ~/.ssh/authorized_keys.
- /run/secrets/ssh-themeupdate-key contains a public key used for ssh connection with theme update permission only.
/qwc2conf is where to put QWC2 configuration files.
/qwc2 will contain QWC2. Share it with a httpd server.
/usr/local/bin/entrypoint.sh: Is run at container start.
/usr/local/bin/clone-qwc2: Clones QWC2 from Github.
/usr/local/bin/build-qwc2: Builds QWC2 from cloned source. The result is saved to /qwc2.
/usr/local/bin/upd-qwc2-themes: Updates /qwc2 to latest configuration read from /qwc2conf.
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p SSH_PORT USER@containerAddress
perl -e "print crypt('myUnencryptedPassword','Q4')"