Skip to content

Commit

Permalink
Add Dockerfiles for galaxy-update and galaxy-installer. Note galaxy.i…
Browse files Browse the repository at this point in the history
…ni not included.
  • Loading branch information
natefoo committed Mar 20, 2017
1 parent 5f63e39 commit d37d808
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 0 deletions.
26 changes: 26 additions & 0 deletions common/docker/galaxy-installer/Dockerfile.main
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# For updating Galaxy

FROM galaxy/update

RUN yum install -y mercurial
RUN yum clean all

VOLUME /cvmfs

ENV GALAXY_INSTANCE main

RUN mkdir -p /galaxy-repl/${GALAXY_INSTANCE}
RUN ln -s /cvmfs/${GALAXY_INSTANCE}.galaxyproject.org/migrated_tools /galaxy-repl/${GALAXY_INSTANCE}/migrated_tools
RUN ln -s /cvmfs/${GALAXY_INSTANCE}.galaxyproject.org/shed_tools /galaxy-repl/${GALAXY_INSTANCE}/shed_tools
RUN ln -s /cvmfs/${GALAXY_INSTANCE}.galaxyproject.org/deps /galaxy-repl/${GALAXY_INSTANCE}/deps
RUN ln -s /galaxy-repl /galaxy

RUN mkdir -p /srv/galaxy/${GALAXY_INSTANCE}/var
RUN chown g2${GALAXY_INSTANCE}:803372 /srv/galaxy/${GALAXY_INSTANCE}/var

EXPOSE 8888

COPY run_main.sh /run.sh
COPY galaxy_main.ini /srv/galaxy/main/config/galaxy.ini

ENTRYPOINT ["su", "-", "g2main", "-c", "/bin/sh /run.sh"]
26 changes: 26 additions & 0 deletions common/docker/galaxy-installer/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# For updating Galaxy

FROM galaxy/update

RUN yum install -y mercurial
RUN yum clean all

VOLUME /cvmfs

ENV GALAXY_INSTANCE test

RUN mkdir -p /galaxy-repl/${GALAXY_INSTANCE}
RUN ln -s /cvmfs/${GALAXY_INSTANCE}.galaxyproject.org/migrated_tools /galaxy-repl/${GALAXY_INSTANCE}/migrated_tools
RUN ln -s /cvmfs/${GALAXY_INSTANCE}.galaxyproject.org/shed_tools /galaxy-repl/${GALAXY_INSTANCE}/shed_tools
RUN ln -s /cvmfs/${GALAXY_INSTANCE}.galaxyproject.org/deps /galaxy-repl/${GALAXY_INSTANCE}/deps
RUN ln -s /galaxy-repl /galaxy

RUN mkdir -p /srv/galaxy/${GALAXY_INSTANCE}/var
RUN chown g2${GALAXY_INSTANCE}:803372 /srv/galaxy/${GALAXY_INSTANCE}/var

EXPOSE 8888

COPY run_test.sh /run.sh
COPY galaxy_test.ini /srv/galaxy/test/config/galaxy.ini

ENTRYPOINT ["su", "-", "g2test", "-c", "/bin/sh /run.sh"]
7 changes: 7 additions & 0 deletions common/docker/galaxy-installer/run_main.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

GALAXY_INSTANCE=main

. /cvmfs/${GALAXY_INSTANCE}.galaxyproject.org/venv/bin/activate
cd /cvmfs/${GALAXY_INSTANCE}.galaxyproject.org/galaxy
python ./scripts/paster.py serve /srv/galaxy/${GALAXY_INSTANCE}/config/galaxy.ini --server-name=${GALAXY_INSTANCE}_installer
7 changes: 7 additions & 0 deletions common/docker/galaxy-installer/run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

GALAXY_INSTANCE=test

. /cvmfs/${GALAXY_INSTANCE}.galaxyproject.org/venv/bin/activate
cd /cvmfs/${GALAXY_INSTANCE}.galaxyproject.org/galaxy
python ./scripts/paster.py serve /srv/galaxy/${GALAXY_INSTANCE}/config/galaxy.ini --server-name=${GALAXY_INSTANCE}_installer
17 changes: 17 additions & 0 deletions common/docker/galaxy-update/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# For updating Galaxy

FROM centos:6

MAINTAINER The Galaxy Project http://galaxyproject.org/

RUN yum groupinstall -y 'development tools'
RUN yum install -y git
RUN yum clean all
RUN groupadd -g 803372 G-803372
RUN useradd -u 819456 -c 'Galaxy Test' -g 803372 -d /home/g2test -s /bin/bash -m g2test
RUN useradd -u 819800 -c 'Galaxy Main' -g 803372 -d /home/g2main -s /bin/bash -m g2main

COPY condarc /home/g2test/.condarc
RUN chown g2test:803372 /home/g2test/.condarc
COPY condarc /home/g2main/.condarc
RUN chown g2main:803372 /home/g2main/.condarc
1 change: 1 addition & 0 deletions common/docker/galaxy-update/condarc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
always_softlink: True

0 comments on commit d37d808

Please sign in to comment.