1 | FROM oilshell/soil-common
|
2 |
|
3 | # Copy again to prevent unsound caching
|
4 | COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
|
5 |
|
6 | # layer-locales also has to install packages
|
7 | RUN --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 |
|
13 | RUN deps/from-apt.sh layer-python-symlink
|
14 |
|
15 | USER uke
|
16 |
|
17 | # Copy pre-built wedges
|
18 |
|
19 | COPY --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 |
|
23 | COPY --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 | # TODO: Could make a wedges out of Python 2.7, and all shells in spec-bin
|
28 |
|
29 | # Copy into current directory
|
30 | COPY --chown=uke \
|
31 | Python-2.7.13/ \
|
32 | /home/uke/tmp/Python-2.7.13/
|
33 |
|
34 | COPY build/common.sh /home/uke/tmp/build/common.sh
|
35 | COPY deps/from-tar.sh /home/uke/tmp/deps/from-tar.sh
|
36 |
|
37 | # For bootstrapping the OVM build
|
38 | RUN deps/from-tar.sh layer-cpython
|
39 |
|
40 | COPY devtools/run-task.sh /home/uke/tmp/devtools/run-task.sh
|
41 | COPY test/spec-common.sh /home/uke/tmp/test/spec-common.sh
|
42 | COPY test/spec-bin.sh /home/uke/tmp/test/spec-bin.sh
|
43 |
|
44 | RUN test/spec-bin.sh all-steps
|
45 |
|
46 | CMD ["sh", "-c", "echo 'hello from oilshell/ovm-tarball'"]
|