From 2fed03f7fb6699902fc761bad813e323cff711a1 Mon Sep 17 00:00:00 2001 From: chunghh Date: Fri, 8 Sep 2023 11:12:28 +0900 Subject: [PATCH] added docker files for go development images --- docker-images/Dockerfile.go-centos7 | 2 +- docker-images/Dockerfile.go-centos7-big | 4 ++++ docker-images/Makefile | 11 +++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 docker-images/Dockerfile.go-centos7-big diff --git a/docker-images/Dockerfile.go-centos7 b/docker-images/Dockerfile.go-centos7 index d873d94..1c53b81 100644 --- a/docker-images/Dockerfile.go-centos7 +++ b/docker-images/Dockerfile.go-centos7 @@ -1,5 +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 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 diff --git a/docker-images/Dockerfile.go-centos7-big b/docker-images/Dockerfile.go-centos7-big new file mode 100644 index 0000000..b730db3 --- /dev/null +++ b/docker-images/Dockerfile.go-centos7-big @@ -0,0 +1,4 @@ +FROM go:centos7 + + +RUN ulimit -n 1024 && yum -y install libpcap-devel diff --git a/docker-images/Makefile b/docker-images/Makefile index 638cb9a..47cec7d 100644 --- a/docker-images/Makefile +++ b/docker-images/Makefile @@ -1,3 +1,8 @@ +build: go-centos7 go-centos7-big + +publish: publish-go-centos7 publish-go-centos7-big + + go-centos7: docker build -t go:centos7 -f Dockerfile.$@ . @@ -6,3 +11,9 @@ publish-go-centos7: docker push docker.io/hyunghwan/go:centos7 +go-centos7-big: + docker build -t go:centos7-big -f Dockerfile.$@ . + +publish-go-centos7-big: + docker tag go:centos7-big docker.io/hyunghwan/go:centos7-big + docker push docker.io/hyunghwan/go:centos7-big