Skip to content

Instantly share code, notes, and snippets.

@martenson
Forked from natefoo/installers.md
Last active June 15, 2016 20:30
Show Gist options
  • Save martenson/de09e211d4f5cadf9d9f0c86715b2114 to your computer and use it in GitHub Desktop.
Save martenson/de09e211d4f5cadf9d9f0c86715b2114 to your computer and use it in GitHub Desktop.
How to install tools on Test and Main

Run the installer

Make sure nobody is running a docker container before restarting the service...

MAIN

$ ssh g2main@cvmfs0-tacc0.galaxyproject.org
$ cvmfs_server transaction main.galaxyproject.org
$ systemctl restart docker.service
$ docker run --rm -v /cvmfs:/cvmfs -p 127.0.0.1:8818:8888 galaxy/main_installer

TEST

$ ssh g2test@cvmfs0-tacc0.galaxyproject.org
$ cvmfs_server transaction test.galaxyproject.org
$ systemctl restart docker.service
$ docker run --rm -v /cvmfs:/cvmfs -p 127.0.0.1:8808:8888 galaxy/test_installer

Install Tools

Go to https://main-installer.galaxyproject.org/ and install tools as normal. Note until I add Apache redirects for http (Apache listens on port 80 for CVMFS), you will have to go directly to https.

Finalize CVMFS transaction

Get the latest tag and append .N to the tag name, e.g. if latest tag is galaxy_16.04.04863c8, the new tag should be galaxy_16.04.04863c8.1, followed by galaxy_16.04.04863c8.2, etc.

^C (to stop Galaxy)
$ cvmfs_server tag main.galaxyproject.org
$ cvmfs_server publish -a galaxy_16.04.04863c8.1 -m 'Installed/Updated Foo Tool' main.galaxyproject.org
$ logout

Update CVMFS stratum 1 servers, local caches, and restart Galaxy

$ pass ansible/vault/usegalaxy | ansible-playbook -i production/inventory galaxy.yml --vault-password-file=/bin/cat --tags=no-update

alternatively

$ ansible-playbook -i production/inventory galaxy.yml --ask-vault-pass --tags=no-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment