-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
65 lines (50 loc) · 2.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# miRGalaxy image
FROM quay.io/bgruening/galaxy:20.09
MAINTAINER Ilias Glogovitis, ilias@uni-plovdiv.bg
# Enable Conda dependency resolution
ENV GALAXY_CONFIG_BRAND="miRGalaxy" \
GALAXY_CONFIG_CONDA_AUTO_INSTALL=True \
GALAXY_CONFIG_CONDA_ENSURE_CHANNELS=iuc,conda-forge,bioconda,defaults,viascience,travis
# Install libtbb2 package for bowtie
RUN apt-get update && apt-get install libtbb2 -y
# Install tools
COPY MirGalaxy.yaml $GALAXY_ROOT/tools_0.yaml
COPY NGS_1.yaml $GALAXY_ROOT/tools_1.yaml
COPY NGS_2.yaml $GALAXY_ROOT/tools_2.yaml
COPY NGS_3.yaml $GALAXY_ROOT/tools_3.yaml
# Split into multiple layers
RUN df -h && \
install-tools $GALAXY_ROOT/tools_0.yaml && \
/tool_deps/_conda/bin/conda clean --all --yes && \
rm -rf /tool_deps/_conda/pkgs && \
df -h
RUN df -h && \
install-tools $GALAXY_ROOT/tools_1.yaml && \
/tool_deps/_conda/bin/conda clean --all --yes && \
rm -rf /tool_deps/_conda/pkgs && \
df -h
RUN df -h && \
install-tools $GALAXY_ROOT/tools_2.yaml && \
/tool_deps/_conda/bin/conda clean --all --yes && \
rm -rf /tool_deps/_conda/pkgs && \
df -h
RUN df -h && \
install-tools $GALAXY_ROOT/tools_3.yaml && \
/tool_deps/_conda/bin/conda clean --all --yes && \
rm -rf /tool_deps/_conda/pkgs && \
df -h
RUN mkdir -p $GALAXY_ROOT/workflows
COPY mirgalaxy-workflows/* $GALAXY_ROOT/workflows/
COPY create_admin_user.sh $GALAXY_ROOT/create_admin_user.sh
RUN apt-get update && apt-get -y install netcat && apt-get clean
RUN chmod +x $GALAXY_ROOT/create_admin_user.sh
ENV PATH="${PATH}:/tool_deps/_conda/bin"
RUN startup_lite && \
galaxy-wait && \
$GALAXY_ROOT/create_admin_user.sh && \
workflow-install --publish --workflow_path $GALAXY_ROOT/workflows/ -g http://localhost:8080 -u $GALAXY_DEFAULT_ADMIN_EMAIL -p $GALAXY_DEFAULT_ADMIN_PASSWORD
# Add Container Style
ENV GALAXY_CONFIG_DISPLAY_GALAXY_BRAND="mirGalaxy"
ENV GALAXY_CONFIG_WELCOME_URL=$GALAXY_CONFIG_DIR/web/welcome.html
COPY config/welcome.html $GALAXY_CONFIG_DIR/web/welcome.html
COPY config/welcome-mirgalaxy.png $GALAXY_CONFIG_DIR/web/welcome-mirgalaxy.png