This gist has been superceded by https://github.com/galaxyproject/usegalaxy-playbook/wiki
Make sure nobody is running a docker container before restarting the service...
$ ssh [email protected]
$ 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
Go to https://test-installer.galaxyproject.org/ and install tools as normal.
Conda can install things with less-than-world-readable permissions, which will cause the Galaxy user to be unable to read them, since the CVMFS client mounts everything as the cvmfs
user. You can fix this with:
$ find /cvmfs/test.galaxyproject.org/deps/_conda/pkgs /cvmfs/test.galaxyproject.org/deps/_conda/envs -perm -u+r -not -perm -o+r -not -type l -print0 | xargs -0 chmod o+r
$ find /cvmfs/test.galaxyproject.org/deps/_conda/pkgs /cvmfs/test.galaxyproject.org/deps/_conda/envs -perm -u+rx -not -perm -o+rx -not -type l -print0 | xargs -0 chmod o+rx
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 test.galaxyproject.org
$ cvmfs_server publish -a galaxy_16.04.04863c8.1 -m 'Installed/Updated Foo Tool' test.galaxyproject.org
$ logout
$ pass ansible/vault/usegalaxy | ansible-playbook -i stage/inventory galaxy.yml --vault-password-file=/bin/cat --tags=no-update
Make sure nobody is running a docker container before restarting the service...
$ ssh [email protected]
$ 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
Go to https://main-installer.galaxyproject.org/ and install tools as normal.
Conda can install things with less-than-world-readable permissions, which will cause the Galaxy user to be unable to read them, since the CVMFS client mounts everything as the cvmfs
user. You can fix this with:
$ find /cvmfs/main.galaxyproject.org/deps/_conda/pkgs /cvmfs/main.galaxyproject.org/deps/_conda/envs -perm -u+r -not -perm -o+r -not -type l -print0 | xargs -0 chmod o+r
$ find /cvmfs/main.galaxyproject.org/deps/_conda/pkgs /cvmfs/main.galaxyproject.org/deps/_conda/envs -perm -u+rx -not -perm -o+rx -not -type l -print0 | xargs -0 chmod o+rx
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
$ pass ansible/vault/usegalaxy | ansible-playbook -i production/inventory galaxy.yml --vault-password-file=/bin/cat --tags=no-update
How to run the ansible
Log in with your TACC account to
galaxy04.tacc.utexas.edu
. Create virtualenv. Install Ansible. Clone usegalaxy-playbook. Run withansible-playbook -i production/inventory galaxy.yml --ask-vault-pass
.