[SSO] Convert arvados-sso-server-upgrade.sh to fpm after-install/before-remove scripts
The after-install script should, in the usual case, perform all the same actions that arvados-sso-server-upgrade.sh currently performs. However, there are some expected implementation differences:
- Be prepared to be called with dpkg's calling arguments or rpm's calling arguments. If some actions don't make sense in some calling scenarios, make sure they're skipped.
- Instead of introspecting the system to determine whether we're on Debian or Red Hat, use the calling arguments so we get that information directly from the packaging system, which should be more reliable.
- Instead of copying
/var/www/arvados-sso/current/config, we should make symlinks in
/varto files in
/etc, so the copies don't get out of sync with the canonical versions. If there's a way to do this directly with fpm, feel free to do that, since it will probably be more reliable. But if nothing else, you can make the symlinks in the after-install script, and add a before-remove script to remove them when the last version of the package is being removed (so they don't interfere with removing all of
- Update our install guide to remove references to running
The sso server package has a package dependency on either nginx or
Update the SSO installation documentation to reflect the new and
Another tweak for the SSO server installation guide: the PostgreSQL
service needs to be started manually if it was pulled in as a dependency
7330: curl isnt available by default in ubuntu 14.04. added the apt-get
7330: making sso install guide similar to workbench and api server
7330: 'edit' should be replaced by 'editor' that will go to the default editor of the ditro
#9 Updated by Ward Vandewege over 5 years ago
Branches to review:
arvados repository: 7330-improved-sso-package
arvados-dev repository: 7330-postinst-for-sso-server
Notes for review of 7330-postinst-for-sso-server:
Build package for one target:
WORKSPACE=path/to/sso-provider ./run-build-packages-one-target.sh --target ubuntu1204 --command run-build-packages-sso.sh
I've also created a 'run-test-packages-sso.sh' script, which runs a few basic tests. It makes sure the generated package can actually be installed and uninstalled without errors (and without leaving stray files behind):
WORKSPACE=path/to/sso-provider ./run-build-packages-one-target.sh --target ubuntu1204 --command run-test-packages-sso.sh
WORKSPACE=path/to/sso-provider ./run-build-packages-all-targets.sh --command run-build-packages-sso.sh
Test all targets:
WORKSPACE=path/to/sso-provider ./run-build-packages-all-targets.sh --command run-test-packages-sso.sh
Notes for review of 7330-improved-sso-package:
This is a documentation branch. It updates the SSO server installation instructions. I encourage you to pick one of our supported distributions and do a manual installation according to the instructions (for example, in a Docker container).
#10 Updated by Nico César over 5 years ago
I reviewed both branches.
I created my own deb for the installation and followed all the instructions from the documentation.
pull 'arvados' up to d084c7b404fa0cb597fbba4dcb007c087da49ba5 there are minor changes