diff --git a/docker-images/Dockerfile.dev-gcc-centos6 b/docker-images/Dockerfile.dev-gcc-centos6 new file mode 100644 index 0000000..7dcd7f6 --- /dev/null +++ b/docker-images/Dockerfile.dev-gcc-centos6 @@ -0,0 +1,11 @@ +## centos6 image to use for building hawk + +FROM docker.io/centos:6 + +COPY vault-centos6.repo /etc/yum.repos.d/CentOS-Base.repo + +RUN groupadd -g 1000 rockstar && useradd -u 1000 -g 1000 -m rockstar && groupmems -g wheel -a rockstar + +RUN ulimit -n 1024 && yum -y install mysql-devel libffi-devel rpm-build gcc gcc-c++ sudo readline-devel ncurses-devel + +RUN echo -e '%wheel ALL=(ALL) NOPASSWD: ALL\nrockstar ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/99-wheel diff --git a/docker-images/Makefile b/docker-images/Makefile index 1c2ca18..96549be 100644 --- a/docker-images/Makefile +++ b/docker-images/Makefile @@ -2,7 +2,6 @@ build: dev-go-centos7 publish: publish-dev-go-centos7 - dev-go-centos7: docker build -t dev:go1.20.6.centos7 -f Dockerfile.$@ . @@ -30,3 +29,7 @@ dev-gcc-rocky9: publish-dev-gcc-rocky9: docker tag dev:gcc.rocky9 docker.io/hyunghwan/dev:gcc.rocky9 docker push docker.io/hyunghwan/dev:gcc.rocky9 + +dev-gcc-centos6: + docker build -t dev:gcc.centos6 -f Dockerfile.$@ . + diff --git a/docker-images/vault-centos6.repo b/docker-images/vault-centos6.repo new file mode 100644 index 0000000..7d14e2a --- /dev/null +++ b/docker-images/vault-centos6.repo @@ -0,0 +1,19 @@ +[base] +name=CentOS-$releasever - Base +baseurl=http://vault.centos.org/$releasever.10/os/$basearch/ +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 + +#released updates +[updates] +name=CentOS-$releasever - Updates +baseurl=http://vault.centos.org/$releasever.10/updates/$basearch/ +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 + +#additional packages that may be useful +[extras] +name=CentOS-$releasever - Extras +baseurl=http://vault.centos.org/$releasever.10/extras/$basearch/ +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6