Skip to content

Instantly share code, notes, and snippets.

@dlintw
Created February 7, 2014 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlintw/8859508 to your computer and use it in GitHub Desktop.
Save dlintw/8859508 to your computer and use it in GitHub Desktop.
Dockerfile for build STLinux sh4 build environment
# dockerfile ref: http://docs.docker.io/en/latest/use/builder/
# command usage ref: http://docs.docker.io/en/latest/commandline/cli/
# http://docs.docker.io/en/latest/use/port_redirection/#port-redirection
# Build image (replace <NAME> to any name)
# docker build -t <NAME>/st24 - < st24.Dockerfile
# Run
# docker run -d -v /opt/tmp:/tmp:rw -p 127.0.0.1:20022:22 <NAME>/sshd
# ssh -p 20022 root@localhost # password: root
FROM centos:6.4
# MAINTAINER
# if want to force use Taiwan mirror
# ref: http://www.phcno1.net/modules/tad_book3/page.php?tbdsn=538
RUN yum update -y
RUN yum install -y git unzip subversion openssh-server gcc-c++ make readline-devel which
RUN wget -O /tmp/fossil.zip http://www.fossil-scm.org/download/fossil-linux-x86-20140127173344.zip
RUN unzip -d /usr/bin /tmp/fossil.zip
RUN /etc/init.d/sshd start
RUN echo 'root:root' | chpasswd
ENTRYPOINT ["/usr/sbin/sshd", "-D"]
EXPOSE 22
RUN wget -O /tmp/install http://ftp.stlinux.com/pub/stlinux/2.4/install
RUN sh /tmp/install || true
RUN sh /tmp/install all-sh4-glibc
# cache file puts in /var/cache/yum/x86_64/6/STLinux_Distribution_Updates/packages/
RUN yum clean packages dbcache
RUN /opt/STM/STLinux-2.4/host/bin/stmyum clean dbcache packages
RUN rm -R /tmp/*
@rndtrash
Copy link

rndtrash commented Nov 9, 2023

Hi! Do you still have that STLinux 2.4 .iso for SH-4? I have looked all over the Internet, and it seems that it was never archived. I'm trying to save a TV box from becoming a landfill, so I would really appreciate your help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment