source: trunk/abcl/Dockerfile @ 14923

Last change on this file since 14923 was 14923, checked in by Mark Evenson, 5 years ago

Dockerification of ABCL for fun and profit

With Docker Enginer installed, one may now run a version of ABCL
within a Linux container via

docker run --name abcl --tty abcl easye/abcl

Once the initial container 'abcl' is running, addiitonal ABCL
processes may be invoked as follows.

docker exec -it abcl /home/abcl/work/abcl/abcl

The Docker images downloaded from the network by Docker Engine can be rebuilt locally
if something in the ABCL sources changes via:

docker build .

File size: 677 bytes
Line 
1# TODO optimize me for space
2FROM easye/openjdk8
3
4RUN export DEBIAN_FRONTEND='noninteractive' && \
5    apt-get update  && \
6    apt-get upgrade -y && \
7    apt-get install -y \
8      libffi-dev
9
10USER root
11RUN useradd -ms /bin/bash abcl
12USER abcl
13
14ENV work        /home/abcl/work
15RUN mkdir -p  ${work}
16
17WORKDIR ${work}
18COPY . ${work}/abcl
19USER root
20RUN chown -R abcl:abcl ${work}
21USER abcl
22
23# Diagnostics for debugging ABCL construction
24RUN ls -lR ${work}/abcl
25
26RUN JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 cd ${work}/abcl && ant clean && ant abcl
27
28ENV abcl.exec.path  "${work}/abcl/abcl"
29
30USER abcl
31CMD [ "/home/abcl/work/abcl/abcl", "--eval", "(loop :doing (sleep 1))" ]
32
33
Note: See TracBrowser for help on using the repository browser.