1 | # This image is only for TESTING
|
2 |
|
3 | FROM oilshell/soil-debian-12
|
4 |
|
5 | # Copy again to prevent unsound caching
|
6 | COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
|
7 |
|
8 | RUN --mount=type=cache,id=var-cache-apt-debian-12,target=/var/cache/apt,sharing=locked \
|
9 | --mount=type=cache,id=var-lib-apt-debian-12,target=/var/lib/apt,sharing=locked \
|
10 | du --si -s /var/cache/apt /var/lib/apt && \
|
11 | deps/from-apt.sh test-image
|
12 |
|
13 | USER uke
|
14 |
|
15 | # 2025-04-30 - TESTING Python with SSL - COPIED from soil-benchmarks image
|
16 |
|
17 | COPY --chown=uke \
|
18 | _build/wedge/binary/oils-for-unix.org/pkg/python3/3.10.4 \
|
19 | /wedge/oils-for-unix.org/pkg/python3/3.10.4
|
20 |
|
21 | # Copy _build/deps-source -> /home/uke/wedge for now.
|
22 | COPY --chown=uke \
|
23 | _build/deps-source/mypy/mypy-0.780/ \
|
24 | /home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/
|
25 |
|
26 | # 2025-04 update: we should automate copying the OSH stdlib to the container
|
27 | COPY stdlib/osh/bash-strict.sh /home/uke/tmp/stdlib/osh/bash-strict.sh
|
28 | COPY stdlib/osh/task-five.sh /home/uke/tmp/stdlib/osh/task-five.sh
|
29 | COPY stdlib/osh/byo-server.sh /home/uke/tmp/stdlib/osh/byo-server.sh
|
30 | COPY stdlib/osh/two.sh /home/uke/tmp/stdlib/osh/two.sh
|
31 |
|
32 | # build/deps.sh install-py3-libs depends on this - need tree shaking
|
33 | COPY test/tsv-lib.sh /home/uke/tmp/test/tsv-lib.sh
|
34 | COPY web/table/html.sh /home/uke/tmp/web/table/html.sh
|
35 |
|
36 | COPY build/deps.sh /home/uke/tmp/build/deps.sh
|
37 | COPY build/dev-shell.sh /home/uke/tmp/build/dev-shell.sh
|
38 |
|
39 | # Hack for now: pass a different MyPy dir
|
40 | # Ideally py3-libs would be created a BUILD TIME with wedge-builder, not at
|
41 | # RUNTIME with uke!
|
42 | RUN build/deps.sh install-py3-libs /home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/
|
43 |
|
44 | CMD ["sh", "-c", "echo 'hello from oilshell/soil-test-image'"]
|