-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #425 from bgruening/18.01
Galaxy Docker 18.01 release
- Loading branch information
Showing
37 changed files
with
3,205 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[submodule "galaxy/roles/galaxyproject.galaxyextras"] | ||
path = galaxy/roles/galaxyprojectdotorg.galaxyextras | ||
url = https://github.com/galaxyproject/ansible-galaxy-extras | ||
branch = 18.01 | ||
[submodule "galaxy/roles/galaxy-postgresql"] | ||
path = galaxy/roles/galaxy-postgresql | ||
url = https://github.com/galaxyproject/ansible-postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ services: | |
replicas: 1 | ||
placement: | ||
constraints: [node.role == manager] | ||
labels: | ||
labels: | ||
kompose.service.type: nodeport | ||
|
||
galaxy-postgres: | ||
|
@@ -75,10 +75,12 @@ services: | |
restart: unless-stopped | ||
networks: | ||
- galaxy | ||
depends_on: | ||
- galaxy-postgres | ||
deploy: | ||
placement: | ||
constraints: [node.role == manager] | ||
labels: | ||
labels: | ||
kompose.service.type: nodeport | ||
|
||
# SLURM container - this is your compute cluster :) | ||
|
@@ -157,7 +159,7 @@ services: | |
|
||
|
||
galaxy-htcondor-executor-big: | ||
image: quay.io/bgruening/galaxy-htcondor-executor | ||
image: quay.io/bgruening/galaxy-htcondor-executor:${TAG:-latest} | ||
# privileged is needed to run Docker jobs, moreover HTCondor wants | ||
# a RW cgroups mount. A RO cgroups mount throws an error in ProcD for running jobs. | ||
privileged: True | ||
|
@@ -199,14 +201,46 @@ services: | |
constraints: [node.role == worker] | ||
|
||
|
||
# Grafana and InfluxDB for statistics | ||
influxdb: | ||
image: influxdb:1.4-alpine | ||
environment: | ||
- RABBITMQ_DEFAULT_USER=galaxy | ||
- RABBITMQ_DEFAULT_PASS=vaiJa3ieghai2ief0jao | ||
- RABBITMQ_DEFAULT_VHOST=galaxy | ||
volumes: | ||
- ${EXPORT_DIR:-/export}/influxdb:/var/lib/influxdb | ||
networks: | ||
- galaxy | ||
deploy: | ||
mode: replicated | ||
replicas: 1 | ||
placement: | ||
constraints: [node.role == worker] | ||
|
||
grafana: | ||
image: quay.io/bgruening/galaxy-grafana:${TAG:-latest} | ||
volumes: | ||
- ${EXPORT_DIR:-/export}/grafana:/var/lib/grafana | ||
networks: | ||
- galaxy | ||
ports: | ||
- "3000:3000" | ||
deploy: | ||
mode: replicated | ||
replicas: 1 | ||
placement: | ||
constraints: [node.role == worker] | ||
|
||
# This container provides the galaxy uwsgi webhandlers, job handlers, nginx | ||
galaxy-web: | ||
# build: galaxy-web | ||
image: quay.io/bgruening/galaxy-web:${TAG:-latest} | ||
environment: | ||
# In case the galaxy-init container is not used, you need to include "sleeplock" to NONUSE | ||
- NONUSE=proftpd,postgres,slurmd,slurmctld | ||
- [email protected] | ||
- GALAXY_DEFAULT_ADMIN_USER=admin | ||
- [email protected] | ||
- GALAXY_DEFAULT_ADMIN_PASSWORD=admin | ||
- GALAXY_DEFAULT_ADMIN_KEY=admin | ||
- GALAXY_HANDLER_NUMPROCS=2 | ||
|
@@ -217,11 +251,11 @@ services: | |
- GALAXY_CONFIG_ENABLE_BETA_WORKFLOW_MODULES=True | ||
- GALAXY_CONFIG_DATABASE_CONNECTION=postgresql://galaxy:chaopagoosaequuashie@galaxy-postgres/galaxy?client_encoding=utf8 | ||
- GALAXY_CONFIG_TOOL_DATA_TABLE_CONFIG_PATH=/etc/galaxy/tool_data_table_conf.xml | ||
# Configurate admin and master api key. Can be overridden in galaxy.ini | ||
# Configurate admin and master api key. Can be overridden in galaxy.yml | ||
- [email protected] | ||
- GALAXY_CONFIG_MASTER_API_KEY=HSNiugRFvgT574F43jZ7N9F3 | ||
- GALAXY_CONFIG_DATABASE_AUTO_MIGRATE=${GALAXY_CONFIG_DATABASE_AUTO_MIGRATE:-false} | ||
- GALAXY_CONFIG_AMQP_INTERNAL_CONNECTION=amqp://galaxy:vaiJa3ieghai2ief0jao@rabbitmq/galaxy | ||
- GALAXY_CONFIG_AMQP_INTERNAL_CONNECTION=amqp://galaxy:vaiJa3ieghai2ief0jao@rabbitmq/galaxy | ||
# Condor | ||
- GALAXY_DESTINATIONS_DEFAULT=${GALAXY_DESTINATIONS_DEFAULT:-slurm_cluster} | ||
- GALAXY_RUNNERS_ENABLE_CONDOR=${GALAXY_RUNNERS_ENABLE_CONDOR:-False} | ||
|
@@ -259,6 +293,7 @@ services: | |
volumes: | ||
# This is the directory where all your files from Galaxy will be stored | ||
# on your host system | ||
- ${EXPORT_DIR:-/export}/galaxy-central/config/galaxy.yml.sample:/etc/galaxy/galaxy.yml | ||
- ${EXPORT_DIR:-/export}/:/export/ | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
depends_on: | ||
|
@@ -268,10 +303,8 @@ services: | |
deploy: | ||
placement: | ||
constraints: [node.role == manager] | ||
labels: | ||
labels: | ||
kompose.service.type: nodeport | ||
|
||
networks: | ||
galaxy: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ FROM ubuntu:14.04 | |
MAINTAINER Björn A. Grüning, [email protected] | ||
|
||
ARG ANSIBLE_REPO=galaxyproject/ansible-galaxy-extras | ||
ARG ANSIBLE_RELEASE=1d90fdc073d8a94278366290d20f17caae059fbb | ||
ARG ANSIBLE_RELEASE=18.01 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
GALAXY_USER=galaxy \ | ||
|
@@ -17,18 +17,20 @@ GALAXY_HOME=/home/galaxy \ | |
GALAXY_LOGS_DIR=/home/galaxy/logs \ | ||
GALAXY_ROOT=/export/galaxy-central \ | ||
GALAXY_VIRTUAL_ENV=/export/venv \ | ||
GALAXY_CONFIG_DIR=/etc/galaxy \ | ||
EXPORT_DIR=/export \ | ||
# Setting a standard encoding. This can get important for things like the unix sort tool. | ||
LC_ALL=en_US.UTF-8 \ | ||
LANG=en_US.UTF-8 | ||
|
||
ENV \ | ||
GALAXY_CONFIG_FILE=/export/config/galaxy.ini \ | ||
GALAXY_CONFIG_FILE=$GALAXY_CONFIG_DIR/galaxy.yml \ | ||
GALAXY_CONFIG_STATIC_ENABLED=False \ | ||
GALAXY_CONFIG_DATABASE_CONNECTION=postgresql://localhost/galaxy?client_encoding=utf8 \ | ||
GALAXY_CONFIG_TEMPLATE_CACHE_PATH=/export/galaxy-central/database/compiled_templates \ | ||
GALAXY_CONFIG_CITATION_CACHE_DATA_DIR=/export/galaxy-central/database/citations/data \ | ||
GALAXY_CONFIG_CLUSTER_FILES_DIRECTORY=/export/galaxy-central/database/pbs \ | ||
GALAXY_CONFIG_WATCH_TOOL_DATA_DIR=True \ | ||
GALAXY_CONFIG_FTP_UPLOAD_DIR=/export/ftp \ | ||
GALAXY_CONFIG_FTP_UPLOAD_SITE=galaxy.docker.org \ | ||
GALAXY_CONFIG_USE_PBKDF2=False \ | ||
|
@@ -72,14 +74,14 @@ RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup && \ | |
apt-get update -qq && apt-get upgrade -y && \ | ||
apt-get install --no-install-recommends -y sudo python-virtualenv \ | ||
supervisor linux-image-extra-virtual munge \ | ||
nodejs-legacy npm ansible nano python-pip \ | ||
ansible nano python-pip \ | ||
unattended-upgrades \ | ||
gridengine-drmaa1.0 && \ | ||
wget -q --no-check-certificate https://depot.galaxyproject.org/software/condor/condor_8.6.3_linux_all.deb && \ | ||
dpkg -i condor_8.6.3_linux_all.deb ; apt-get install -f -y && \ | ||
rm condor_8.6.3_linux_all.deb && \ | ||
pip install --upgrade pip && \ | ||
pip install "ephemeris<0.8" && \ | ||
pip install ephemeris && \ | ||
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ | ||
mkdir -p /tmp/download && \ | ||
wget -qO - https://get.docker.com/builds/Linux/x86_64/docker-17.05.0-ce.tgz | tar -xz -C /tmp/download && \ | ||
|
@@ -121,5 +123,17 @@ RUN ln -s -f /export/shed_tools /shed_tools && \ | |
ln -s -f /export/venv /galaxy_venv && \ | ||
mkdir /etc/galaxy && ln -s -f /export/welcome /etc/galaxy/web | ||
|
||
RUN wget https://dl.influxdata.com/telegraf/releases/telegraf-1.5.0_linux_amd64.tar.gz && \ | ||
cd / && tar xvfz telegraf-1.5.0_linux_amd64.tar.gz && \ | ||
cp -Rv telegraf/* / && \ | ||
rm -rf telegraf && \ | ||
rm telegraf-1.5.0_linux_amd64.tar.gz | ||
|
||
ADD telegraf.conf /etc/telegraf/telegraf.conf | ||
|
||
ENV GALAXY_CONFIG_STATSD_HOST=localhost \ | ||
GALAXY_CONFIG_STATSD_PORT=8125 \ | ||
GALAXY_CONFIG_STATSD_PREFIX=galaxy | ||
|
||
# Autostart script that is invoked during container start | ||
CMD ["/usr/bin/startup"] |
Oops, something went wrong.