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