updated some dockerfiles

This commit is contained in:
hyung-hwan 2023-10-20 23:44:27 +09:00
parent b477d12b38
commit 1d2d7f96cd
6 changed files with 32 additions and 26 deletions

View File

@ -0,0 +1,4 @@
## rocky linux 9 image to use for building hawk
FROM docker.io/rockylinux:9
RUN ulimit -n 1024 && dnf -y install --enablerepo=devel mysql-devel libffi-devel rpm-build gcc gcc-c++

View File

@ -0,0 +1,5 @@
FROM centos:centos7.9.2009
RUN ulimit -n 1024 && yum -y install wget curl make gcc rpm-build git libcap-devel && cd /opt && wget https://go.dev/dl/go1.20.6.linux-amd64.tar.gz && tar -zxvf go1.20.6.linux-amd64.tar.gz && rm -f go1.20.6.linux-amd64.tar.gz
RUN echo 'PATH=$PATH:/opt/go/bin' > /etc/profile.d/go.sh

View File

@ -1,5 +0,0 @@
FROM centos:centos7.9.2009
RUN ulimit -n 1024 && yum -y install wget curl make gcc rpm-build git && cd /opt && wget https://go.dev/dl/go1.20.6.linux-amd64.tar.gz && tar -zxvf go1.20.6.linux-amd64.tar.gz && rm -f go1.20.6.linux-amd64.tar.gz
RUN echo 'PATH=$PATH:/opt/go/bin' > /etc/profile.d/go.sh

View File

@ -1,4 +0,0 @@
FROM go:centos7
RUN ulimit -n 1024 && yum -y install libpcap-devel

View File

@ -1,26 +1,32 @@
build: go-centos7 go-centos7-big
build: dev-go-centos7
publish: publish-go-centos7 publish-go-centos7-big
publish: publish-dev-go-centos7
go-centos7:
docker build -t go:centos7 -f Dockerfile.$@ .
dev-go-centos7:
docker build -t dev:go1.20.6.centos7 -f Dockerfile.$@ .
publish-go-centos7:
docker tag go:centos7 docker.io/hyunghwan/go:centos7
docker push docker.io/hyunghwan/go:centos7
publish-dev-go-centos7:
docker tag dev:go1.20.6.centos7 docker.io/hyunghwan/dev:go1.20.6.centos7
docker push docker.io/hyunghwan/dev:go1.20.6.centos7
dev-go-centos7-big:
docker build -t dev:go1.20.6.centos7.big -f Dockerfile.$@ .
go-centos7-big:
docker build -t go:centos7-big -f Dockerfile.$@ .
publish-dev-go-centos7-big:
docker tag dev:go1.20.6.centos7.big docker.io/hyunghwan/dev:go1.20.6.centos7.big
docker push docker.io/hyunghwan/dev:go1.20.6.centos7.big
publish-go-centos7-big:
docker tag go:centos7-big docker.io/hyunghwan/go:centos7-big
docker push docker.io/hyunghwan/go:centos7-big
dev-gm2-fedora38:
docker build -t dev:gm2.fedora38 -f Dockerfile.$@ .
gm2-fedora38:
docker build -t gm2:fedora38 -f Dockerfile.$@ .
publish-dev-gm2-fedora38:
docker tag dev:gm2.fedora38 docker.io/hyunghwan/dev:gm2.fedora38
docker push docker.io/hyunghwan/dev:gm2.fedora38
publish-gm2-fedora38:
docker tag gm2:fedora38 docker.io/hyunghwan/gm2:fedora38
docker push docker.io/hyunghwan/gm2:fedora38
dev-gcc-rocky9:
docker build -t dev:gcc.rocky9 -f Dockerfile.$@ .
publish-dev-gcc-rocky9:
docker tag dev:gcc.rocky9 docker.io/hyunghwan/dev:gcc.rocky9
docker push docker.io/hyunghwan/dev:gcc.rocky9