-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.template
58 lines (42 loc) · 1.38 KB
/
Dockerfile.template
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
############################################################
# Dockerfile to build XXXXX tool container image
# Based on debian Jessie/8
############################################################
# Set the base image to debian
FROM sletort/semantic_programs:latest
################## DEPENDENCIES INSTALLATION ######################
ENV PACKAGES
RUN apt-get install -y ${PACKAGES}
#### Already defined directories ####
#### please use and do not modify. ####
# ENV DIR /opt
# ENV DESCR_DIR /opt/descr
################## XXXXX INSTALLATION ######################
WORKDIR ${DIR}
## get code source
#--- from tar file
ENV TAR ...
RUN wget ${TAR} -O - | tar xvzf -
#--- /from tar file
#--- from git repo
ENV GIT ...
RUN git clone ${GIT}
#--- /from git repo
# directory containing source code
# should be under $DIR
ENV SOURCE_DIR ...
## installation commands
WORKDIR ${SOURCE_DIR}
RUN ...
## test commands
################## Dockerfile usage ######################
## the command launched by default when running the container
ENTRYPOINT ["..."]
CMD ["-help"]
################## METADATA ######################
MAINTAINER "sletort"
LABEL ANNOT.Version="VVVVV"
# After the build, run the following command :
# docker run --rm -it --entrypoint=parse_description.py gatb_pipeline --mode docker /opt/descr/gatb_pipeline.json \
# >> Dockerfile
# I recommand then to edit again the Docker file to comment