mirror of
https://github.com/claunia/cross-docks.git
synced 2025-12-16 11:14:44 +00:00
46 lines
1.8 KiB
Docker
46 lines
1.8 KiB
Docker
FROM ubuntu:latest
|
|
|
|
LABEL description="Retro68 cross compiler environment with cmake alias for m68k development with the Apple Universal libraries."
|
|
|
|
LABEL maintainer="claunia@claunia.com"
|
|
|
|
RUN apt-get update; DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gcc \
|
|
make libc6-dev build-essential libssl-dev libldap2-dev cmake libgmp-dev libmpfr-dev libmpc-dev \
|
|
libboost-all-dev bison flex texinfo ruby rsync tar python ssh git wget unzip adduser; \
|
|
apt-get autoremove -y; \
|
|
apt-get clean; \
|
|
rm /var/lib/apt/lists/* -r; \
|
|
rm -rf /usr/share/man/*
|
|
|
|
RUN cd /tmp; \
|
|
git clone --recursive https://github.com/autc04/Retro68; \
|
|
cd /tmp/Retro68; \
|
|
wget https://macintoshgarden.org/sites/macintoshgarden.org/files/apps/InterfacesAndLibraries.zip; \
|
|
unzip InterfacesAndLibraries.zip; \
|
|
mv "Interfaces&Libraries"/* InterfacesAndLibraries/; \
|
|
mkdir -p /opt/Retro68; \
|
|
cd /opt/Retro68; \
|
|
/tmp/Retro68/build-toolchain.bash --clean-after-build --no-carbon --no-ppc --universal
|
|
|
|
RUN adduser retro68 --disabled-password --gecos ""; \
|
|
sed -i "s|^#force_color_prompt=.*|force_color_prompt=yes|" /home/retro68/.bashrc; \
|
|
apt-get purge -y adduser passwd; \
|
|
apt-get autoremove -y; \
|
|
apt-get clean; \
|
|
rm /var/lib/apt/lists/* -r; \
|
|
rm -rf /usr/share/man/*
|
|
|
|
RUN ( \
|
|
echo 'LogLevel DEBUG2'; \
|
|
echo 'PermitRootLogin yes'; \
|
|
echo 'PasswordAuthentication yes'; \
|
|
echo 'Subsystem sftp /usr/lib/openssh/sftp-server'; \
|
|
) > /etc/ssh/sshd_config_remote_dev \
|
|
&& mkdir /run/sshd
|
|
|
|
RUN echo 'export TERM="xterm"' >> /home/retro68/.bashrc; \
|
|
echo 'alias cmake="cmake -DCMAKE_TOOLCHAIN_FILE=/opt/Retro68/toolchain/m68k-apple-macos/cmake/retro68.toolchain.cmake"' >> /home/retro68/.bashrc;
|
|
|
|
USER retro68
|
|
|
|
CMD ["/usr/sbin/sshd" "-D" "-e" "-f" "/etc/ssh/sshd_config_remote_dev"] |