Commit Graph
65 Commits
Author SHA1 Message Date
Martin Lablans 5e31da5139 Unfortunately, we cannot support docker snap installations, cf. https://askubuntu.com/questions/1374480/docker-compose-installed-with-snap-gives-error-on-yml-file
This reverts commit 292d71b6c2.
2022-10-28 15:25:06 +02:00
Martin Lablans 292d71b6c2 Support docker installation via snap, e.g. Ubuntu 22.04 2022-10-28 15:14:34 +02:00
Martin Lablans cfdcb8af86 Don't expose bridgehead http(s) services by default. 2022-10-28 11:53:50 +02:00
Martin Lablans 0dae36c9d9 Reconcile BBMRI/CCP traefik configs. 2022-10-28 11:41:15 +02:00
Martin Lablans ef2965f72f Make traefik use certificates at /etc/bridgehead/traefik-tls 2022-10-28 11:37:49 +02:00
Martin Lablans 0cba5d315a Sign, not encrypt, to avoid openssl salt 2022-10-28 10:37:51 +02:00
Martin Lablans 3a668a1cce Generate consistent nNGM Connector password 2022-10-28 10:26:17 +02:00
Martin Lablans 6293dc65f0 Fail in prereqs if compose does not exist 2022-10-28 10:17:14 +02:00
Martin Lablans 2aef5f29c3 Move to functions.sh 2022-10-28 10:12:21 +02:00
Martin Lablans 5755baaf00 Support docker compose as well as docker-compose 2022-10-28 10:06:43 +02:00
Martin Lablans 404e5440b8 Support nngm within CCP bridgehead 2022-10-26 11:50:21 +02:00
Martin Lablans 3351e696af Don't pull ubuntu image on every startup. Use server's full hostname. 2022-10-26 10:44:32 +02:00
Martin Lablans aa595d2ea2 Remove landing page for BBMRI 2022-10-25 12:07:07 +02:00
Martin Lablans 07c0c4534e Make this work for BBMRI-ERIC 2022-10-25 11:45:01 +02:00
Martin Lablans 2b78835872 Add housekeeping task (docker image cleanup) 2022-10-20 16:55:05 +02:00
Martin Lablans 17c6a2b0e0 Fix git update detection 2022-10-17 16:13:29 +02:00
Martin Lablans f72a185dbb Be more specific about what changed on an update 2022-10-17 16:07:25 +02:00
Martin Lablans a8a33291a7 Rename traefik certificate/key 2022-10-17 15:30:43 +02:00
Martin Lablans 9658f6ed2e Fix traefik cert 2022-10-17 15:21:12 +02:00
Martin Lablans f8b9aed7f5 Cleaning 2022-10-17 15:09:18 +02:00
Martin Lablans 7ecb39d6ce Use new forward proxy 2022-10-11 18:29:08 +02:00
Martin Lablans e439510920 Rename spot container so it shows up in monitoring 2022-10-11 13:29:09 +02:00
Martin Lablans f7742f2a2b Make traefik volumes read-only 2022-10-11 13:28:51 +02:00
Martin Lablans ca45a3dbe9 Support /etc/bridgehead/PROJECT.local.conf 2022-10-11 11:06:52 +02:00
Martin Lablans 67ec348f74 Support docker-compose.override.yml 2022-10-06 16:27:52 +02:00
Martin Lablans 7b15e02bec Use HTTPS proxy (not http proxy) for git pull 2022-10-06 12:49:48 +02:00
Martin Lablans f7c4bf6ac5 Consider stopped docker containers for reports, updates 2022-10-06 12:49:31 +02:00
Martin Lablans 0f44934419 Clarified log message 2022-10-06 12:05:36 +02:00
Martin Lablans 2fb57980ee Format docker status table 2022-10-06 12:04:24 +02:00
Martin Lablans b41e5b2315 Fix permissions on startup. Requires re-install of systemd units. 2022-10-05 19:58:07 +02:00
Martin Lablans 69b33941c4 Derive spot variables 2022-09-30 16:05:36 +02:00
Martin Lablans d89c08702c Update deployment 2022-09-30 15:35:37 +02:00
Martin Lablans 7692c4e889 Update install scripts and prereqs (sudo) 2022-09-30 15:25:09 +02:00
Martin Lablans 2c50d357a9 Disable debug output. 2022-05-31 14:03:07 +02:00
Martin Lablans 2168e6299d Variable renamed to GIT_PASSWORD 2022-05-31 14:02:09 +02:00
Martin Lablans 519f4785cb Make git update use new credential helper that fetches git creds from vault. 2022-05-31 13:56:44 +02:00
Martin Lablans 37d954e304 New function assertVarsNotEmpty() 2022-05-31 13:56:12 +02:00
Martin Lablans 57483e78d4 Move checkOwner() to functions.sh 2022-05-31 13:55:40 +02:00
Martin Lablans ff3d6fb4fe Bugfix in fetchVarsFromVaultByFile: Detect variables with values à la "<VAULT>" 2022-05-31 13:40:25 +02:00
Martin Lablans 9f76b0c739 Refactor fetchVarsFromVault 2022-05-31 09:37:31 +02:00
Martin Lablans e3e83dd886 Make sure both /etc/bridgehead and /srv/docker/bridgehead are owned by the correct user. 2022-05-16 09:46:03 +02:00
Martin Lablans 8352965d66 Don't use TTY for systemd job. 2022-05-13 15:59:05 +02:00
Martin Lablans a6a7a3aa99 Make Share use proxy server. 2022-05-13 14:48:26 +02:00
Martin Lablans f510b1d0cb Use http proxy set in $http_proxy. 2022-05-13 14:19:52 +02:00
Martin Lablans 1692395ffc Support retrieving credentials for vault from /etc/bridgehead/vault.conf 2022-05-13 14:11:14 +02:00
Martin Lablans 4b5af787e5 Use correct image name. 2022-05-12 18:27:34 +02:00
Martin Lablans d428f08d8a Whenever a variable has the value <VAULT>, auto-fetch value from vault. 2022-05-12 18:24:31 +02:00
Martin Lablans 5ddca3d9f4 Make TLS certificate generation non-interactively, and make certificates valid for a longer time. 2022-05-12 18:21:31 +02:00
Martin Lablans 821eebe8c6 Ask for correct SITE_NAME variable in error message. 2022-05-12 18:20:43 +02:00
Martin Lablans 66120a4ae7 Fix for other projects, too. 2022-05-10 11:56:50 +02:00
Martin Lablans edc3085dca New landingpage. 2022-05-10 11:52:38 +02:00
Martin Lablans 4d305e4e2f Updated README.md with new bridgehead command 2022-05-09 15:28:09 +02:00
Martin Lablans 334f82661b Housekeeping and script hardening in /srv/docker/bridgehead. Existing installations need to run bridgehead uninstall, bridgehead install. 2022-05-09 15:13:38 +02:00
Martin Lablans 43bdb23849 Rename "convenience" systemd units 2022-01-10 16:42:13 +01:00
Martin Lablans bcf1ba2ce1 Make systemctl disable more robust 2022-01-10 16:39:46 +01:00
Martin Lablans 31ab3ddef2 Fix uninstall-bridgehead.sh 2022-01-10 16:36:54 +01:00
Martin Lablans 0d7769fa7f Several fixes to shell scripts 2022-01-10 16:31:48 +01:00
Martin Lablans 0ecf38cabb Correct typo 2022-01-10 15:41:38 +01:00
Martin Lablans 99a8b5038e Make sure docker-compose is found 2022-01-10 15:41:07 +01:00
Martin Lablans 123ce65c82 Don't do sudo 2022-01-10 15:31:07 +01:00
Martin Lablans 75b33690f6 Remove BRIDGEHEAD_PATH env variable 2022-01-10 15:17:27 +01:00
Martin Lablans 3bab2f6dfd Correctly ignore site-specific config 2022-01-10 15:12:29 +01:00
Martin Lablans 28fad0fa90 Fix prereq exit 2022-01-10 15:11:57 +01:00
Martin Lablans 1658e7357b Correctly ignore git submodules 2022-01-10 15:11:35 +01:00
Martin Lablans 44398c5088 Move prerequisites.sh to lib folder 2022-01-10 14:45:52 +01:00