| 1 | # For running test/wild.sh
|
| 2 | #
|
| 3 | # Start with build/dev.sh minimal, then later add run with _bin/cxx-opt/osh,
|
| 4 | # including the translator.
|
| 5 |
|
| 6 | # Note: have to push latest tag to see this?
|
| 7 | FROM oilshell/soil-common
|
| 8 |
|
| 9 | # Copy again to prevent unsound caching
|
| 10 | COPY deps/from-apt.sh /home/uke/tmp/deps/from-apt.sh
|
| 11 |
|
| 12 | RUN --mount=type=cache,id=var-cache-apt,target=/var/cache/apt,sharing=locked \
|
| 13 | --mount=type=cache,id=var-lib-apt,target=/var/lib/apt,sharing=locked \
|
| 14 | du --si -s /var/cache/apt /var/lib/apt && \
|
| 15 | deps/from-apt.sh wild
|
| 16 |
|
| 17 | USER uke
|
| 18 |
|
| 19 | # Copy pre-built wedges
|
| 20 |
|
| 21 | COPY --chown=uke \
|
| 22 | _build/wedge/binary/oils-for-unix.org/pkg/cmark/0.29.0 \
|
| 23 | /wedge/oils-for-unix.org/pkg/cmark/0.29.0
|
| 24 |
|
| 25 | COPY --chown=uke \
|
| 26 | _build/wedge/binary/oils-for-unix.org/pkg/re2c/3.0 \
|
| 27 | /wedge/oils-for-unix.org/pkg/re2c/3.0
|
| 28 |
|
| 29 | # TODO:
|
| 30 | # - Try to extract FIRST, and then copy.
|
| 31 | # - Put it in deps/source.medo/wild-source.tree-tar (vs. tree-pack, blob)
|
| 32 |
|
| 33 | COPY --chown=uke _cache/wild-source.tar.gz \
|
| 34 | /home/uke/tmp/_cache/wild-source.tar.gz
|
| 35 |
|
| 36 | COPY build/common.sh /home/uke/tmp/build/common.sh
|
| 37 | COPY deps/from-tar.sh /home/uke/tmp/deps/from-tar.sh
|
| 38 |
|
| 39 | RUN deps/from-tar.sh extract-wild
|
| 40 |
|
| 41 | CMD ["sh", "-c", "echo 'hello from oilshell/soil-wild'"]
|