Skip to content

Instantly share code, notes, and snippets.

@armsp
Last active May 6, 2019 15:49
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 armsp/53f7013cf502dbc790bb57c8885095f1 to your computer and use it in GitHub Desktop.
Save armsp/53f7013cf502dbc790bb57c8885095f1 to your computer and use it in GitHub Desktop.
Steps to run ARM containers on x86
  • Install qemu-arm-static
  • Pull arm32v7/debian:jessie
  • docker run -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static --rm -it arm32v7/debian:jessie --name rpi-test
  • apt-get update
  • apt-get upgrade
  • apt-get install nano
  • apt-get install binutils apt-utils
  • apt-get install build-essential build-essential in turn installs the following- binutils bzip2 cpp cpp-4.9 dpkg-dev fakeroot g++ g++-4.9 gcc gcc-4.9 ifupdown isc-dhcp-client isc-dhcp-common libalgorithm-c3-perl libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libarchive-extract-perl libasan1 libatomic1 libc-dev-bin libc6-dev libcgi-fast-perl libcgi-pm-perl libclass-c3-perl libclass-c3-xs-perl libcloog-isl4 libcpan-meta-perl libdata-optlist-perl libdata-section-perl libdns-export100 libdpkg-perl libfakeroot libfcgi-perl libfile-fcntllock-perl libgcc-4.9-dev libgdbm3 libgomp1 libirs-export91 libisc-export95 libisccfg-export90 libisl10 liblog-message-perl liblog-message-simple-perl libmodule-build-perl libmodule-pluggable-perl libmodule-signature-perl libmpc3 libmpfr4 libmro-compat-perl libpackage-constants-perl libparams-util-perl libpod-latex-perl libpod-readme-perl libregexp-common-perl libsoftware-license-perl libstdc++-4.9-dev libsub-exporter-perl libsub-install-perl libterm-ui-perl libtext-soundex-perl libtext-template-perl libtimedate-perl libubsan0 linux-libc-dev make manpages manpages-dev netbase patch perl perl-modules rename xz-utils Suggested packages: binutils-doc bzip2-doc cpp-doc gcc-4.9-locales debian-keyring gcc-4.9-doc libstdc++6-4.9-dbg gcc-multilib autoconf automake libtool flex bison gdb gcc-doc libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan1-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libquadmath-dbg ppp rdnssd net-tools resolvconf avahi-autoipd glibc-doc libstdc++-4.9-doc make-doc man-browser ed diffutils-doc perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl libb-lint-perl libcpanplus-dist-build-perl libcpanplus-perl libfile-checktree-perl libobject-accessor-perl Recommended packages: libarchive-tar-perl The following NEW packages will be installed: binutils build-essential bzip2 cpp cpp-4.9 dpkg-dev fakeroot g++ g++-4.9 gcc gcc-4.9 ifupdown isc-dhcp-client isc-dhcp-common libalgorithm-c3-perl libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libarchive-extract-perl libasan1 libatomic1 libc-dev-bin libc6-dev libcgi-fast-perl libcgi-pm-perl libclass-c3-perl libclass-c3-xs-perl libcloog-isl4 libcpan-meta-perl libdata-optlist-perl libdata-section-perl libdns-export100 libdpkg-perl libfakeroot libfcgi-perl libfile-fcntllock-perl libgcc-4.9-dev libgdbm3 libgomp1 libirs-export91 libisc-export95 libisccfg-export90 libisl10 liblog-message-perl liblog-message-simple-perl libmodule-build-perl libmodule-pluggable-perl libmodule-signature-perl libmpc3 libmpfr4 libmro-compat-perl libpackage-constants-perl libparams-util-perl libpod-latex-perl libpod-readme-perl libregexp-common-perl libsoftware-license-perl libstdc++-4.9-dev libsub-exporter-perl libsub-install-perl libterm-ui-perl libtext-soundex-perl libtext-template-perl libtimedate-perl libubsan0 linux-libc-dev make manpages manpages-dev netbase patch perl perl-modules rename xz-utils I don't think we need most of what gets installed and ends up bloating the container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment