OILS / deps / Dockerfile.soil-ovm-tarball View on Github | oilshell.org

77 lines, 55 significant
1FROM oilshell/soil-common
2
3# Copy again to prevent unsound caching
4COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
5
6# layer-locales also has to install packages
7RUN --mount=type=cache,id=var-cache-apt,target=/var/cache/apt,sharing=locked \
8 --mount=type=cache,id=var-lib-apt,target=/var/lib/apt,sharing=locked \
9 du --si -s /var/cache/apt /var/lib/apt && \
10 deps/from-apt.sh layer-locales && \
11 deps/from-apt.sh ovm-tarball
12
13RUN deps/from-apt.sh layer-python-symlink
14
15USER uke
16
17# Copy pre-built wedges
18
19COPY --chown=uke \
20 _build/wedge/binary/oils-for-unix.org/pkg/cmark/0.29.0 \
21 /wedge/oils-for-unix.org/pkg/cmark/0.29.0
22
23COPY --chown=uke \
24 _build/wedge/binary/oils-for-unix.org/pkg/re2c/3.0 \
25 /wedge/oils-for-unix.org/pkg/re2c/3.0
26
27# Shells for spec tests
28
29COPY --chown=uke \
30 _build/wedge/relative/oils-for-unix.org/pkg/bash/4.4 \
31 /home/uke/wedge/oils-for-unix.org/pkg/bash/4.4
32
33COPY --chown=uke \
34 _build/wedge/relative/oils-for-unix.org/pkg/bash/5.2.21 \
35 /home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21
36
37COPY --chown=uke \
38 _build/wedge/relative/oils-for-unix.org/pkg/busybox/1.35.0 \
39 /home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0
40
41COPY --chown=uke \
42 _build/wedge/relative/oils-for-unix.org/pkg/dash/0.5.10.2 \
43 /home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2
44
45COPY --chown=uke \
46 _build/wedge/relative/oils-for-unix.org/pkg/mksh/R52c \
47 /home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c
48
49COPY --chown=uke \
50 _build/wedge/relative/oils-for-unix.org/pkg/yash/2.49 \
51 /home/uke/wedge/oils-for-unix.org/pkg/yash/2.49
52
53COPY --chown=uke \
54 _build/wedge/relative/oils-for-unix.org/pkg/zsh/5.1.1 \
55 /home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1
56
57# Should we use the Python 2.7.18 wedge instead of our own dir? Probably not,
58# because it's
59
60# Copy into current directory
61COPY --chown=uke \
62 Python-2.7.13/ \
63 /home/uke/tmp/Python-2.7.13/
64
65COPY build/common.sh /home/uke/tmp/build/common.sh
66COPY deps/from-tar.sh /home/uke/tmp/deps/from-tar.sh
67
68# For bootstrapping the OVM build
69RUN deps/from-tar.sh layer-cpython
70
71#COPY devtools/run-task.sh /home/uke/tmp/devtools/run-task.sh
72#COPY test/spec-common.sh /home/uke/tmp/test/spec-common.sh
73#COPY test/spec-bin.sh /home/uke/tmp/test/spec-bin.sh
74
75#RUN test/spec-bin.sh all-steps
76
77CMD ["sh", "-c", "echo 'hello from oilshell/ovm-tarball'"]