added docker files for go development images

This commit is contained in:
chunghh 2023-09-08 11:12:28 +09:00
parent 6d3b2350cd
commit 2fed03f7fb
3 changed files with 16 additions and 1 deletions

View File

@ -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

View File

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

View File

@ -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