mirror of
https://github.com/claunia/cross-docks.git
synced 2025-12-16 19:24:49 +00:00
Add environments with Retro68 toolchain.
This commit is contained in:
43
Retro68/universal/all/Dockerfile
Normal file
43
Retro68/universal/all/Dockerfile
Normal file
@@ -0,0 +1,43 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
LABEL description="Retro68 cross compiler environment for m68k, PowerPC and Carbon 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 --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
|
||||
|
||||
CMD ["/usr/sbin/sshd" "-D" "-e" "-f" "/etc/ssh/sshd_config_remote_dev"]
|
||||
Reference in New Issue
Block a user