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:
39
Retro68/multiversal/all/Dockerfile
Normal file
39
Retro68/multiversal/all/Dockerfile
Normal file
@@ -0,0 +1,39 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
LABEL description="Retro68 cross compiler environment for m68k, PowerPC and Carbon development."
|
||||
|
||||
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 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; \
|
||||
mkdir -p /opt/Retro68; \
|
||||
cd /opt/Retro68; \
|
||||
/tmp/Retro68/build-toolchain.bash --clean-after-build
|
||||
|
||||
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