Skip to content

Commit

Permalink
Merge pull request #156 from rhpvorderman/enable_ie_images
Browse files Browse the repository at this point in the history
Preloading IE docker images in startup.sh
  • Loading branch information
bgruening committed Jun 27, 2017
2 parents 6c00dc5 + d8cec4d commit 03e894f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,10 @@ galaxy_extras_install_packages: false
# be 'present' or 'latest'.
galaxy_extras_apt_package_state: present

galaxy_extras_ie_fetch_ipython: false
galaxy_extras_ie_ipython_image: bgruening/docker-ipython-notebook:dev
galaxy_extras_ie_fetch_jupyter: false
galaxy_extras_ie_jupyter_image: bgruening/docker-jupyter-notebook:16.01
galaxy_extras_ie_jupyter_image: quay.io/bgruening/docker-jupyter-notebook:17.05
galaxy_extras_ie_fetch_rstudio: false
galaxy_extras_ie_rstudio_image: erasche/docker-rstudio-notebook:15.10
galaxy_extras_ie_rstudio_image: erasche/docker-rstudio-notebook:17.01

# The storage backend to use for docker-in-docker.
# aufs on parent docker cannot be combined with aufs in child docker
Expand Down
5 changes: 0 additions & 5 deletions tasks/ie_proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
become: True
become_user: "{{ galaxy_user_name }}"

- name: "Install IPython container."
shell: "docker pull {{ galaxy_extras_ie_ipython_image }}"
become: True
when: galaxy_extras_ie_fetch_ipython

- name: "Install Juypter container."
shell: "docker pull {{ galaxy_extras_ie_juypter_image }}"
become: True
Expand Down
5 changes: 5 additions & 0 deletions templates/startup.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ if $PRIVILEGED; then
echo "{{ galaxy_user_name }} ALL = NOPASSWD : ALL" >> /etc/sudoers
start_supervisor
fi
if [ "x$PULL_IE_IMAGES" != "x" ]; then
echo "Pull images for interactive environments. Caveat : Depending on the side of the images, this migth be an intensive task in terms of disc space, running time, network brandwith and CPU usage. "
docker pull {{ galaxy_extras_ie_jupyter_image }}
docker pull {{ galaxy_extras_ie_rstudio_image }}
fi
else
echo "Disable Galaxy Interactive Environments. Start with --privileged to enable IE's."
export GALAXY_CONFIG_INTERACTIVE_ENVIRONMENT_PLUGINS_DIRECTORY=""
Expand Down

0 comments on commit 03e894f

Please sign in to comment.