-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (29 loc) · 1.64 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
FROM jhpyle/docassemble:latest
USER root
RUN sed -i '/echo "initialize finished"/ a\mkdir -p /usr/share/docassemble/files/playgroundstatic/1 \ncp /tmp/docassemble-l4/docassemble/l4/data/static/r34.pl /usr/share/docassemble/files/playgroundstatic/1/r34.pl && cp /tmp/docassemble-l4/docassemble/l4/data/static/r34.yml /usr/share/docassemble/files/playgroundstatic/1/r34.yml \nchown www-data: \usr/share/docassemble/files/playgroundstatic/1 \nredis-cli set da:api:userid:1:key:RnyeaGLk1ZNsRTfXYYqWMQH1smnxn26s:info \"{\\\"name\\\": \\\"foo\\\", \\\"method\\\": \\\"none\\\", \\\"constraints\\\": []}\"\; echo $? >&2' /usr/share/docassemble/webapp/initialize.sh
RUN echo "\nl4:\n api key: RnyeaGLk1ZNsRTfXYYqWMQH1smnxn26s" >> /usr/share/docassemble/config/config.yml.dist
USER www-data
RUN LC_CTYPE=C.UTF-8 LANG=C.UTF-8 \
bash -c \
"cd /tmp \
&& git clone https:/ciao-lang/ciao \
&& cd ciao; ./ciao-boot.sh local-install "
USER www-data
ENV PATH="/tmp/ciao/build/bin:${PATH}"
RUN LC_CTYPE=C.UTF-8 LANG=C.UTF-8 \
bash -c \
"ciao get gitlab.software.imdea.org/ciao-lang/sCASP"
USER www-data
RUN LC_CTYPE=C.UTF-8 LANG=C.UTF-8 \
bash -c \
"cd /tmp \
&& git clone -b v0.0.1 --single-branch https:/smucclaw/docassemble-datatypes \
&& git clone -b v0.0.1 --single-branch https:/smucclaw/docassemble-scasp \
&& git clone -b v0.0.1 --single-branch https:/smucclaw/docassemble-l4 \
&& source /usr/share/docassemble/local3.8/bin/activate \
&& pip3 install --upgrade \
/tmp/docassemble-datatypes \
/tmp/docassemble-scasp \
/tmp/docassemble-l4"
USER root
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]