From 28445fac2b17e198fd444ed2dc76c3ada5a5733c Mon Sep 17 00:00:00 2001 From: Neil McPhail Date: Sat, 19 Apr 2025 16:52:11 +0100 Subject: [PATCH] Initial commit --- Dockerfile | 29 +++++++++++++++++++++++++++++ README.md | 1 + hooks/post_checkout | 3 +++ 3 files changed, 33 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md create mode 100755 hooks/post_checkout diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2dcaa13 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,29 @@ +# syntax=docker/dockerfile:1 + +FROM ubuntu:24.04 AS build +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + build-essential \ + make \ + && rm -rf /var/lib/apt/lists/* + +ADD https://github.com/z00m128/sjasmplus.git#v1.21.0 /sjasmplus +RUN cd /sjasmplus && make && make install +ADD https://boarstone.mcphail.uk/mcphail/spectrum_remload.git /ttttt +RUN cd /ttttt && make ttttt +ADD https://github.com/einar-saukas/ZX0.git /zx0 +RUN cd /zx0/src/ \ + && gcc -O2 -o zx0 zx0.c optimize.c compress.c memory.c \ + && gcc -O2 -o dzx0 dzx0.c + +FROM ubuntu:24.04 +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + fuse-emulator-utils\ + make \ + pasmo \ + && rm -rf /var/lib/apt/lists/* +COPY --from=build /usr/local/bin/sjasmplus /bin/sjasmplus +COPY --from=build /ttttt/ttttt /bin/ttttt +COPY --from=build /zx0/src/zx0 /bin/zx0 +COPY --from=build /zx0/src/dzx0 /bin/dzx0 diff --git a/README.md b/README.md new file mode 100644 index 0000000..d57453a --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Development tools for the ZX Spectrum diff --git a/hooks/post_checkout b/hooks/post_checkout new file mode 100755 index 0000000..59044a2 --- /dev/null +++ b/hooks/post_checkout @@ -0,0 +1,3 @@ +#! /bin/bash +# From https://stackoverflow.com/questions/54055666/docker-hub-and-git-submodules/59640438#59640438 +git submodule update --init