Public | Automated Build

Last pushed: a year ago
Short Description
Images for 32-bit CentOS containers
Full Description

CentOS 6 i386 Build

Docker hub doesn't publish 32-bit CentOS builds, so this sets up a Docker Automated Build to create our own.

Docker

To build the image, merely invoke docker as follows:

docker build .

Refreshing the tarball

To build the tarball that is referenced in the Dockerfile we use Vagrant to build up a CentOS VM that can run through docker's mkimage-yum steps. Here's how that's done:

vagrant up
vagrant ssh
cd /vagrant
sudo ./make-docker-image.sh
exit
vagrant -f destroy

This will dump the tarball back in this directory where it can then be used to build the docker image as described above.

Docker Pull Command
Owner
toopher
Source Repository

Comments (3)
nitinrawat21
a year ago

add this to install 32 bit packages:

RUN sed -i 's/\$arch/i686/g' /etc/yum.repos.d/
RUN sed -i 's/\$basearch/i386/g' /etc/yum.repos.d/

frolvlad
2 years ago

@zx1986 You have two options here:

  1. Add RUN echo "i686" > /etc/yum/vars/arch && echo "i386" > /etc/yum/vars/basearch before the first yum install (I have pushed a pull-request with this fix: https://github.com/toopher/toopher-docker/pull/1)

  2. Prefix all your platform-dependent commands with linux32, i.e. linux32 yum install ...

zx1986
2 years ago

when I build whit this image,
I RUN yum install, and there will be install x86_64 package,
why ...