-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
59 lines (48 loc) · 2.38 KB
/
Copy pathContainerfile
File metadata and controls
59 lines (48 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM debian:13-slim
ARG DEBIAN_FRONTEND=noninteractive
ARG BASE_URL=https://tho-otto.de/download/mint
ARG BINUTILS=binutils-2.45-mintelf-20250812-bin-linux64.tar.xz
ARG GCC=gcc-15.2.0-mintelf-20250810-bin-linux64.tar.xz
ARG MINTLIB_URL=https://atari.joska.no/snapshots/mintlib/mintlib-mintelf-latest.tar.bz2
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl file make xz-utils tar \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
# FreeMiNT Linux m68k-atari-mintelf toolchain. The dated binutils/GCC
# archive names are the published Linux artifacts used by Atari ST tooling.
RUN set -eux; \
for pkg in "$BINUTILS" "$GCC"; do \
echo "Fetching $pkg"; \
curl --fail --location --show-error --silent -o "$pkg" "$BASE_URL/$pkg"; \
tar -C / -xJf "$pkg"; \
rm -f "$pkg"; \
done
# MiNTBin's published page confirms the Linux artifact name, but its
# historical direct archive route is not stable. Build this small
# supplementary tool set from the official FreeMiNT source instead.
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends git build-essential autoconf automake texinfo gettext; \
git clone https://github.com/freemint/mintbin.git /tmp/mintbin; \
git -C /tmp/mintbin checkout 536a0419562ffe9352715fe8e6bbea842b593735; \
mkdir -p /tmp/mintbin-build; \
cd /tmp/mintbin-build; \
/tmp/mintbin/configure --prefix=/usr/m68k-atari-mintelf; \
make; \
make install; \
rm -rf /tmp/mintbin /tmp/mintbin-build /var/lib/apt/lists/*
# MiNTLib is the standard libc for FreeMiNT. Upstream publishes a dedicated
# mintelf snapshot; install it into the cross-toolchain prefix.
RUN set -eux; \
curl --fail --location --show-error --silent -o /tmp/mintlib.tar.bz2 "$MINTLIB_URL"; \
mkdir -p /usr/m68k-atari-mintelf/sys-root; \
tar -C /usr/m68k-atari-mintelf/sys-root -xjf /tmp/mintlib.tar.bz2; \
test -f /usr/m68k-atari-mintelf/sys-root/usr/include/stdio.h; \
rm -f /tmp/mintlib.tar.bz2
ENV PATH="/usr/m68k-atari-mintelf/bin:/usr/m68k-atari-mintelf/usr/bin:${PATH}"
WORKDIR /work
COPY tools/toolchain-info.sh /usr/local/bin/atari-toolchain-info
RUN chmod +x /usr/local/bin/atari-toolchain-info
LABEL org.opencontainers.image.source="https://github.com/Ploos-AS/atari-dev" \
org.opencontainers.image.description="Ploos-AS standard Debian Atari 68k development environment"
CMD ["/bin/sh"]