Created
March 3, 2014 03:02
-
-
Save dlintw/9317756 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker pull dlin/ubuntu-stlinux24 | |
Pulling repository dlin/ubuntu-stlinux24 | |
ef65d4a793f1: Download complete | |
44cc672dabd9: Download complete | |
b9517450bc25: Download complete | |
e42c9771721a: Download complete | |
8cb44cb871bd: Download complete | |
908d2c0a0004: Download complete | |
7ef93fc8f058: Download complete | |
dae76a8363a3: Download complete | |
b3e3b635bb54: Download complete | |
af388b9df5c4: Download complete | |
1151838177c0: Download complete | |
2753bf490cb1: Download complete | |
7d12e471d0ec: Download complete | |
d14701159be1: Download complete | |
e0b72439b6a7: Download complete | |
ead5ca7beb42: Download complete | |
f4891727ddda: Download complete | |
44e90459b5de: Download complete | |
d7285665f29d: Download complete | |
$ docker history dlin/ubuntu-stlinux24 | |
IMAGE CREATED CREATED BY SIZE | |
ef65d4a793f1 11 hours ago /bin/sh -c /opt/STM/STLinux-2.4/host/bin/stmy 88.84 MB | |
d7285665f29d 11 hours ago /bin/sh -c /opt/STM/STLinux-2.4/host/bin/stmy 247.8 MB | |
44e90459b5de 12 hours ago /bin/sh -c bash /tmp/install -u all-sh4-glibc 3.885 GB | |
ead5ca7beb42 12 hours ago /bin/sh -c wget -O /tmp/dep.rpm http://downlo 7.37 kB | |
f4891727ddda 12 hours ago /bin/sh -c rpm -ivh --force-debian /tmp/dep.r 88.98 MB | |
e0b72439b6a7 12 hours ago /bin/sh -c wget -O /tmp/install http://ftp.st 19.22 kB | |
d14701159be1 12 hours ago /bin/sh -c unzip -d /usr/bin /tmp/fossil.zip 2.347 MB | |
7d12e471d0ec 12 hours ago /bin/sh -c wget -O /tmp/fossil.zip http://www 1.07 MB | |
2753bf490cb1 12 hours ago /bin/sh -c sh /tmp/inst_pkg.sh 205.9 MB | |
1151838177c0 12 hours ago /bin/sh -c #(nop) ADD file:0e80a0679f3c372b4e 248 B | |
af388b9df5c4 12 hours ago /bin/sh -c ln -sf bash /bin/sh 11 B | |
b3e3b635bb54 12 hours ago /bin/sh -c #(nop) EXPOSE [22] 0 B | |
dae76a8363a3 12 hours ago /bin/sh -c echo 'root:root' | chpasswd 662 B | |
7ef93fc8f058 12 hours ago /bin/sh -c mkdir /var/run/sshd && chmod 755 / 7 B | |
908d2c0a0004 12 hours ago /bin/sh -c apt-get install -y zip unzip opens 52.19 MB | |
8cb44cb871bd 12 hours ago /bin/sh -c ln -sf /usr/share/zoneinfo/Asia/Ta 38 B | |
e42c9771721a 12 hours ago /bin/sh -c apt-get update && apt-get -y upgra 194.4 MB | |
b9517450bc25 12 hours ago /bin/sh -c #(nop) MAINTAINER Daniel YC Lin <d 0 B | |
44cc672dabd9 20 hours ago 118.2 MB | |
$ more Dockerfile | |
# References | |
# ========== | |
# http://stlinux.com/install/ubuntu | |
# Usage | |
# ===== | |
# ref: https://github.com/dlintw/mydocker/blob/master/ubuntu/stlinux24/run.sh | |
FROM dlin/ubuntu-ssh | |
# let bash be sh | |
#RUN echo "dash dash/sh boolean false" | debconf-set-selections | |
#RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash | |
RUN ln -sf bash /bin/sh | |
ADD inst_pkg.sh /tmp/inst_pkg.sh | |
RUN sh /tmp/inst_pkg.sh | |
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 wget -O /tmp/install http://ftp.stlinux.com/pub/stlinux/2.4/install | |
RUN wget -O /tmp/dep.rpm http://download.stlinux.com/pub/stlinux/2.4/misc/stlinux24-host-STLinux_deps-20140120-1.i386.rpm | |
RUN rpm -ivh --force-debian /tmp/dep.rpm | |
RUN bash /tmp/install -u all-sh4-glibc | |
# cache file puts in /var/cache/yum/x86_64/6/STLinux_Distribution_Updates/packages/ | |
RUN /opt/STM/STLinux-2.4/host/bin/stmyum update | |
RUN /opt/STM/STLinux-2.4/host/bin/stmyum clean dbcache packages | |
#RUN apt-get clean | |
#RUN rm -R /tmp/* | |
$ docker build -t test-stlinux . | |
Uploading context 6.144 kB | |
Uploading context | |
Step 0 : FROM dlin/ubuntu-ssh | |
---> b3e3b635bb54 | |
Step 1 : RUN ln -sf bash /bin/sh | |
---> Using cache | |
---> af388b9df5c4 | |
Step 2 : ADD inst_pkg.sh /tmp/inst_pkg.sh | |
---> d2d339bf81c6 | |
Step 3 : RUN sh /tmp/inst_pkg.sh | |
---> Running in 103a04c072a6 | |
The following extra packages will be installed: | |
binutils cpp cpp-4.6 gcc gcc-4.6 gcc-4.6-multilib lib32gcc1 lib32gomp1 | |
lib32quadmath0 libc-dev-bin libc6-dev libc6-dev-i386 libc6-i386 libgmp10 | |
libgomp1 libmpc2 libmpfr4 libquadmath0 linux-libc-dev manpages manpages-dev | |
Suggested packages: | |
binutils-doc cpp-doc gcc-4.6-locales make autoconf automake1.9 libtool flex | |
bison gdb gcc-doc libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg libgomp1-dbg | |
libquadmath0-dbg libmudflap0-dbg binutils-gold lib32mudflap0 glibc-doc | |
man-browser | |
The following NEW packages will be installed: | |
binutils cpp cpp-4.6 gcc gcc-4.6 gcc-4.6-multilib gcc-multilib lib32gcc1 | |
lib32gomp1 lib32quadmath0 libc-dev-bin libc6-dev libc6-dev-i386 libc6-i386 | |
libgmp10 libgomp1 libmpc2 libmpfr4 libquadmath0 linux-libc-dev manpages | |
manpages-dev | |
0 upgraded, 22 newly installed, 0 to remove and 0 not upgraded. | |
Need to get 30.2 MB of archives. | |
After this operation, 76.8 MB of additional disk space will be used. | |
Get:1 http://mirror.rackspace.com/ubuntu/ precise-updates/main linux-libc-dev amd64 3.2.0-59.90 [863 kB] | |
$ docker version | |
Client version: 0.8.1-dev | |
Go version (client): go1.2 | |
Git commit (client): ed8466c | |
Server version: 0.8.1-dev | |
Git commit (server): ed8466c | |
Go version (server): go1.2 | |
Last stable version: 0.8.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment