Skip to content

Commit

Permalink
Merge pull request #467 from bgruening/dev
Browse files Browse the repository at this point in the history
18.09 release
  • Loading branch information
bgruening authored Dec 21, 2018
2 parents 3a6d877 + 4e63fdf commit 3143550
Show file tree
Hide file tree
Showing 31 changed files with 518 additions and 126 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[submodule "galaxy/roles/galaxyproject.galaxyextras"]
path = galaxy/roles/galaxyprojectdotorg.galaxyextras
url = https://github.com/galaxyproject/ansible-galaxy-extras
branch = 18.01
branch = 18.09
[submodule "galaxy/roles/galaxy-postgresql"]
path = galaxy/roles/galaxy-postgresql
url = https://github.com/galaxyproject/ansible-postgresql
40 changes: 28 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ before_install:
if [ "${KUBE}" ]
then
# setup k8s, we will do this before building Galaxy because it takes some time and hopefully we can do both in prallel
gimme 1.8
source ~/.gimme/envs/go1.8.env
sudo ln -s /home/travis/.gimme/versions/go1.7.linux.amd64/bin/gofmt /usr/bin/gofmt
sudo ln -s /home/travis/.gimme/versions/go1.7.linux.amd64/bin/go /usr/bin/go
gimme 1.11.1
source ~/.gimme/envs/go1.11.1.env
sudo ln -s /home/travis/.gimme/versions/go1.11.1.linux.amd64/bin/gofmt /usr/bin/gofmt
sudo ln -s /home/travis/.gimme/versions/go1.11.1.linux.amd64/bin/go /usr/bin/go
go version
mkdir ../kubernetes
wget -q -O - https://github.com/kubernetes/kubernetes/archive/master.tar.gz | tar xzf - --strip-components=1 -C ../kubernetes
Expand All @@ -59,7 +59,7 @@ before_install:
sudo ln -s `pwd`/third_party/etcd/etcd /usr/bin/etcd
sudo ln -s `pwd`/third_party/etcd/etcdctl /usr/bin/etcdctl
# this needs to run in backgroud later, for now try to see the output
sudo ./hack/local-up-cluster.sh &
./hack/local-up-cluster.sh &
cd ../docker-galaxy-stable
fi
Expand Down Expand Up @@ -103,7 +103,11 @@ before_install:
- |
if [ "${KUBE}" ]
then
curl -L https://github.com/kubernetes-incubator/kompose/releases/download/v0.5.0/kompose-linux-amd64 -o kompose
# The compose file recognises ENV vars to change the defaul behavior
cd ${COMPOSE_DIR}
ln -sf .env_k8_native .env
curl -L https://github.com/kubernetes-incubator/kompose/releases/download/v1.17.1/kompose-linux-amd64 -o kompose
chmod +x kompose
sudo mv ./kompose /usr/bin/kompose
fi
Expand All @@ -120,7 +124,11 @@ before_install:
INSTALL_REPO_ARG="--galaxy-url http://localhost:80"
SAMPLE_TOOLS=/export/config/sample_tool_list.yaml
cd "$WORKING_DIR"
./buildlocal.sh
# For build script
export CONTAINER_REGISTRY=quay.io/
export CONTAINER_USER=bgruening
./build-orchestration-images.sh --no-push --condor --grafana --slurm --k8s
source ./tags-for-compose-to-source.sh
export COMPOSE_PROJECT_NAME=galaxy_compose
docker-compose up -d
Expand All @@ -138,7 +146,7 @@ before_install:
docker-compose stop galaxy-slurm
sleep 30
fi
if [ "${COMPOSE_SLURM}" ] || [ "${COMPOSE_SLURM_SINGULARITY}" ]
then
# turn down the htcondor services
Expand All @@ -150,7 +158,7 @@ before_install:
if [ "${COMPOSE_SLURM_SINGULARITY}" ]
then
# docker-compose is already started and has pre-populated the /export dir
# we now turn it down again and copy in an example tool with tool_conf.xml and
# we now turn it down again and copy in an example tool with tool_conf.xml and
# a test singularity image. If we copy this from the beginning, the magic Docker Galax startup
# script will not work as it detects something in /export/
docker-compose down
Expand All @@ -161,6 +169,9 @@ before_install:
sudo curl -L -o /export/cat_tool_conf.xml https://github.com/bgruening/singularity-galaxy-tests/raw/master/cat_tool_conf.xml
sudo curl -L -o /export/cat.xml https://github.com/bgruening/singularity-galaxy-tests/raw/master/cat.xml
rm .env
ln -sf .env_slurm_singularity2 .env
docker-compose up -d
sleep 60
Expand All @@ -171,10 +182,10 @@ before_install:
sleep 15
# we are lucky that the out test image has a small bug and always prints a warning. We use this to grep if the tool was running with SINGULARITY
# WARNING Bind file destination does not exist in container /usr/local/var/singularity/mnt/overlay/final/etc/...
parsec datasets show_dataset $OUTPUT_ID | jq .misc_info | grep singularity
parsec jobs show_job --full_details $OUTPUT_ID | jq .stderr | grep singularity
fi
docker-compose logs --tail 50
# Define start functions
docker_exec() {
Expand Down Expand Up @@ -243,6 +254,11 @@ script:
cd $TRAVIS_BUILD_DIR/test/gridengine/ && bash test.sh && cd $WORKING_DIR
fi
# Test Web api
- |
if [ "${COMPOSE_CONDOR_DOCKER}" ]
then
docker-compose logs --tail 50
fi
- curl -v --fail $BIOBLEND_GALAXY_URL/api/version

# Test self-signed HTTPS
Expand All @@ -255,7 +271,7 @@ script:
- date > time.txt && curl -v --fail -T time.txt ftp://localhost:8021 --user $GALAXY_USER:$GALAXY_USER_PASSWD || true
# Test FTP Server get
- curl -v --fail ftp://localhost:8021 --user $GALAXY_USER:$GALAXY_USER_PASSWD

# Test CVMFS
- docker_exec bash -c "service autofs start"
- docker_exec bash -c "cvmfs_config chksetup"
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@
![docker pulls](https://img.shields.io/docker/pulls/bgruening/galaxy-stable.svg) ![docker stars](https://img.shields.io/docker/stars/bgruening/galaxy-stable.svg)
[![docker image stats](https://images.microbadger.com/badges/image/bgruening/galaxy-stable.svg)](https://microbadger.com/images/bgruening/galaxy-stable "Get your own image badge on microbadger.com")


:information_source: `19.01` will be the last release which is based on `ubuntu:14.04` and
PostgreSQL 9.3. We will migrate to `ubuntu:18.04` and a newer PostgreSQL version in `19.05`. Furthermore, we will not
support old Galaxy tool dependencies. These are deprecated since a few years and we think its time to remove support
for this in the default installation. You can install all needed packages manually to enable support again, though.

In short, with 19.05:
* Galaxy tool dependencies will not be supported by default
* `ubuntu:18.04` will be the new base image
* a new PostgreSQL version means you need to migrate any old database to the new version


Galaxy Docker Image
===================

Expand Down Expand Up @@ -815,6 +827,9 @@ If you simply want to change the Galaxy repository and/or the Galaxy branch, fro
- Singularity support and tests (compose only)
- more work on K8s support and testing (@jmchilton)
- using .env files to configure the compose setup for SLURM, Condor, K8s, SLURM-Singularity, Condor-Docker
- 18.09:
- new and more powerful orchestration build script (build-orchestration-images.sh) by @pcm32
- a lot of bug-fixes to the compose setup by @abretaud
# Support & Bug Reports <a name="Support-Bug-Reports" /> [[toc]](#toc)
Expand Down
2 changes: 1 addition & 1 deletion compose/.env_htcondor_docker
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Galaxy deployments.
# ln -sf .env_htcondor_docker .env

TAG=18.01
TAG=18.09

GALAXY_DESTINATIONS_DEFAULT=condor_cluster

Expand Down
2 changes: 1 addition & 1 deletion compose/.env_k8_native
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ GALAXY_DESTINATIONS_DOCKER_DEFAULT=k8s_default
GALAXY_DESTINATIONS_NO_DOCKER_DEFAULT=local_no_container
GALAXY_CONFIG_CONTAINERS_RESOLVERS_CONFIG_FILE=/export/config/container_resolvers_conf.xml

TAG=18.01
TAG=18.09
2 changes: 1 addition & 1 deletion compose/.env_slurm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Galaxy deployments.
# ln -sf .env_slurm .env

TAG=18.01
TAG=18.09

# default destination is our SLURM cluster
GALAXY_DESTINATIONS_DEFAULT=slurm_cluster
Expand Down
4 changes: 2 additions & 2 deletions compose/.env_slurm_singularity
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Galaxy deployments.
# ln -sf .env_slurm .env

TAG=18.01
TAG=18.09

# default destination is our SLURM cluster with Singularity enabled
GALAXY_DESTINATIONS_DEFAULT=slurm_cluster_singularity
Expand All @@ -15,7 +15,7 @@ GALAXY_RUNNERS_ENABLE_SLURM=True
# With this Galaxy will search for mulled based images (in /export/database/container_images/singularity/mulled/)
GALAXY_CONFIG_ENABLE_BETA_MULLED_CONTAINERS=True

GALAXY_CONFIG_TOOL_CONFIG_FILE=config/tool_conf.xml.sample,config/shed_tool_conf.xml,/export/cat_tool_conf.xml
GALAXY_CONFIG_TOOL_CONFIG_FILE=config/tool_conf.xml.sample,config/shed_tool_conf.xml

GALAXY_SINGULARITY_VOLUMES=$tool_directory:rw,$working_directory:rw,$default_file_path:rw

Expand Down
23 changes: 23 additions & 0 deletions compose/.env_slurm_singularity2
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file is setting up a composed Galaxy instance with support
# for submitting SLURM.
# Docker compose will use parameters specified in an `.env` file
# next to the docker-compose.yml file.
# We recommend to symlink this file and play around with different
# Galaxy deployments.
# ln -sf .env_slurm .env

TAG=18.09

# default destination is our SLURM cluster with Singularity enabled
GALAXY_DESTINATIONS_DEFAULT=slurm_cluster_singularity
GALAXY_RUNNERS_ENABLE_SLURM=True

# With this Galaxy will search for mulled based images (in /export/database/container_images/singularity/mulled/)
GALAXY_CONFIG_ENABLE_BETA_MULLED_CONTAINERS=True

GALAXY_CONFIG_TOOL_CONFIG_FILE=config/tool_conf.xml.sample,config/shed_tool_conf.xml,/export/cat_tool_conf.xml

GALAXY_SINGULARITY_VOLUMES=$tool_directory:rw,$working_directory:rw,$default_file_path:rw

GALAXY_CONFIG_CLEANUP_JOB=onsuccess
GALAXY_PORT=8080
Loading

0 comments on commit 3143550

Please sign in to comment.