-
Notifications
You must be signed in to change notification settings - Fork 43
/
Dockerfile
45 lines (36 loc) · 1.04 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
# cvs2svn has some dependencies that are no longer widely available
# (e.g., Python 2.x and an oldish version of the Subversion library).
# This Dockerfile builds images that can be used to run or test
# cvs2svn. Note that it is based on debian:jessie, which is pretty
# old. But this is the most recent version of Debian where the
# required dependencies are easily available. One way to use this is
# to run
#
# make docker-image
#
# to make an image for running cvs2svn, or
#
# make docker-test
#
# to make an image for testing cvs2svn and to run those tests using
# the image.
FROM debian:jessie AS run
RUN apt-get update && \
apt-get install -y \
python \
python-bsddb3 \
subversion \
rcs \
cvs
RUN mkdir /src
WORKDIR /src
COPY . .
RUN ${PYTHON} ./setup.py install
# The CVS repository can be mounted here:
VOLUME ["/cvs"]
# A volume for storing temporary files can be mounted here:
VOLUME ["/tmp"]
ENTRYPOINT ["cvs2svn"]
FROM run AS test
RUN ln -s /tmp cvs2svn-tmp
ENTRYPOINT ["./run-tests.py"]