From 59020ca444d7e5fc34554a817c2504bddced155b Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 4 Jan 2024 10:42:39 +0900 Subject: [PATCH] added docker files for rocky9 dev images --- docker-images/Dockerfile.dev-go-rocky9 | 4 ++++ docker-images/Dockerfile.dev-go120-rocky9 | 3 +++ docker-images/Makefile | 14 ++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 docker-images/Dockerfile.dev-go-rocky9 create mode 100644 docker-images/Dockerfile.dev-go120-rocky9 diff --git a/docker-images/Dockerfile.dev-go-rocky9 b/docker-images/Dockerfile.dev-go-rocky9 new file mode 100644 index 0000000..6d73572 --- /dev/null +++ b/docker-images/Dockerfile.dev-go-rocky9 @@ -0,0 +1,4 @@ +## rocky linux 9 image to use for building hawk + +FROM docker.io/hyunghwan/dev:gcc.rocky9 +RUN ulimit -n 1024 && dnf -y install --enablerepo=devel golang diff --git a/docker-images/Dockerfile.dev-go120-rocky9 b/docker-images/Dockerfile.dev-go120-rocky9 new file mode 100644 index 0000000..30d88ae --- /dev/null +++ b/docker-images/Dockerfile.dev-go120-rocky9 @@ -0,0 +1,3 @@ +FROM docker.io/hyunghwan/dev:gcc.rocky9 +RUN ulimit -n 1024 && dnf -y install wget && 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 diff --git a/docker-images/Makefile b/docker-images/Makefile index 96549be..2b227bc 100644 --- a/docker-images/Makefile +++ b/docker-images/Makefile @@ -30,6 +30,20 @@ publish-dev-gcc-rocky9: docker tag dev:gcc.rocky9 docker.io/hyunghwan/dev:gcc.rocky9 docker push docker.io/hyunghwan/dev:gcc.rocky9 +dev-go-rocky9: + docker build -t dev:go.rocky9 -f Dockerfile.$@ . + +publish-dev-go-rocky9: + docker tag dev:go.rocky9 docker.io/hyunghwan/dev:go.rocky9 + docker push docker.io/hyunghwan/dev:go.rocky9 + +dev-go120-rocky9: + docker build -t dev:go1.20.6.rocky9 -f Dockerfile.$@ . + +publish-dev-go120-rocky9: + docker tag dev:go1.20.6.rocky9 docker.io/hyunghwan/dev:go1.20.6.rocky9 + docker push docker.io/hyunghwan/dev:go1.20.6.rocky9 + dev-gcc-centos6: docker build -t dev:gcc.centos6 -f Dockerfile.$@ .