From 4c69f5ec5e168e5abb29ffedb249218ef52a92b6 Mon Sep 17 00:00:00 2001 From: chunghh Date: Sat, 15 Jul 2023 01:52:45 +0900 Subject: [PATCH] added the docker-images directory and files --- docker-images/Dockerfile.go-centos7 | 5 +++++ docker-images/Makefile | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 docker-images/Dockerfile.go-centos7 create mode 100644 docker-images/Makefile diff --git a/docker-images/Dockerfile.go-centos7 b/docker-images/Dockerfile.go-centos7 new file mode 100644 index 0000000..d873d94 --- /dev/null +++ b/docker-images/Dockerfile.go-centos7 @@ -0,0 +1,5 @@ +FROM centos:centos7.9.2009 + + +RUN ulimit -n 1024 && yum -y install wget make gcc && 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 diff --git a/docker-images/Makefile b/docker-images/Makefile new file mode 100644 index 0000000..638cb9a --- /dev/null +++ b/docker-images/Makefile @@ -0,0 +1,8 @@ +go-centos7: + docker build -t go:centos7 -f Dockerfile.$@ . + +publish-go-centos7: + docker tag go:centos7 docker.io/hyunghwan/go:centos7 + docker push docker.io/hyunghwan/go:centos7 + +