-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerFile.txt
43 lines (34 loc) · 1.82 KB
/
dockerFile.txt
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
######################################################################
# Dockerfile to build a sample tool container for UCSC kent commands #
######################################################################
# Set the base image to Ubuntu
FROM ubuntu:14.04
# File Author / Maintainer
MAINTAINER Null Model <[email protected]>
# installing packages needed here
USER root
RUN apt-get -m update && apt-get install -y wget unzip zip rsync libkrb5-3 mysql-client
# fetch the command binaries into /usr/local/bin
RUN wget -q --timestamping -P /usr/local/bin/ -nd -np \
"ftp://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/featureBits" && \
wget -q --timestamping -P /usr/local/bin/ -nd -np \
"ftp://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/hgsql" && \
wget -q --timestamping -P /usr/local/bin/ -nd -np \
"ftp://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/twoBitInfo" && \
wget -q --timestamping -P /usr/local/bin/ -nd -np \
"ftp://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/faToTwoBit" && \
wget -q --timestamping -P /usr/local/bin/ -nd -np \
"ftp://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/twoBitToFa" && \
wget -q --reject "blat" --reject "gfClient" --reject "gfServer" \
--timestamping -P /usr/local/bin/ -r -nd -np \
"ftp://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/big*" && \
chmod a+x /usr/local/bin/*
RUN groupadd -r -g 1000 ubuntu && useradd -m -r -g ubuntu -u 1000 ubuntu
COPY resources/public.hg.conf /home/ubuntu/.hg.conf
COPY resources/testCommands.sh /home/ubuntu/testCommands.sh
RUN chmod 600 /home/ubuntu/.hg.conf && \
chown ubuntu:ubuntu /home/ubuntu/.hg.conf /home/ubuntu/testCommands.sh
# switch back to the ubuntu user so this tool (and the files written) are not owned by root
USER ubuntu
# by default /bin/bash is executed
CMD ["/bin/bash"]