diff --git a/Dockerfile b/Dockerfile index 371e321..3cafd9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,10 @@ -FROM golang:1.16-alpine +FROM golang:1.21-alpine RUN apk add --no-cache git wget -RUN go get github.com/jstemmer/go-junit-report COPY . /go/src/github.com/cyverse-de/condor-launcher -ENV CGO_ENABLED=0 WORKDIR /go/src/github.com/cyverse-de/condor-launcher -RUN wget https://github.com/upx/upx/releases/download/v3.95/upx-3.95-amd64_linux.tar.xz \ - && tar -xJvf upx-3.95-amd64_linux.tar.xz upx-3.95-amd64_linux/upx \ - && go install github.com/cyverse-de/condor-launcher \ - && ./upx-3.95-amd64_linux/upx --ultra-brute /go/bin/condor-launcher \ - && rm -rf upx-3.95-amd64_linux* +RUN go install github.com/cyverse-de/condor-launcher ENTRYPOINT ["condor-launcher"] CMD ["--help"] diff --git a/go.mod b/go.mod index 8c3d289..3e343aa 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,21 @@ module github.com/cyverse-de/condor-launcher -go 1.16 +go 1.21 require ( github.com/cyverse-de/configurate v0.0.0-20180510193728-31a2137ff467 - github.com/cyverse-de/model v0.0.0-20170711180048-bf8453314372 // indirect github.com/cyverse-de/version v0.0.0-20160721234331-5119d6500655 + github.com/pkg/errors v0.8.0 + github.com/sirupsen/logrus v0.11.6-0.20170315151320-547e984ad93a + github.com/spf13/viper v0.0.0-20160830143246-16990631d4aa + github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8 + gopkg.in/cyverse-de/job-templates.v6 v6.0.0-20191010224106-1855b61f1b48 + gopkg.in/cyverse-de/messaging.v6 v6.0.0 + gopkg.in/cyverse-de/model.v4 v4.0.0-20191009005545-deb84d06e56c +) + +require ( + github.com/cyverse-de/model v0.0.0-20170711180048-bf8453314372 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/fsnotify/fsnotify v1.3.2-0.20160816051541-f12c6236fe7b // indirect github.com/hashicorp/hcl v0.0.0-20160822214145-baeb59c71071 // indirect @@ -14,20 +24,15 @@ require ( github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee // indirect github.com/pelletier/go-buffruneio v0.1.0 // indirect github.com/pelletier/go-toml v0.3.6-0.20160823074707-5a62685873ef // indirect - github.com/pkg/errors v0.8.0 github.com/pkg/sftp v0.0.0-20160721231453-a71e8f580e3b // indirect - github.com/sirupsen/logrus v0.11.6-0.20170315151320-547e984ad93a github.com/spf13/afero v0.0.0-20160821083612-20500e2abd0d // indirect github.com/spf13/cast v0.0.0-20160730092037-e31f36ffc91a // indirect github.com/spf13/jwalterweatherman v0.0.0-20160311093646-33c24e77fb80 // indirect github.com/spf13/pflag v0.0.0-20160820154156-103ce5cd2042 // indirect - github.com/spf13/viper v0.0.0-20160830143246-16990631d4aa - github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8 github.com/stretchr/testify v1.7.0 // indirect - golang.org/x/crypto v0.1.0 // indirect + golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 // indirect + golang.org/x/sys v0.0.0-20190412213103-97732733099d // indirect + golang.org/x/text v0.3.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect - gopkg.in/cyverse-de/job-templates.v6 v6.0.0-20191010224106-1855b61f1b48 - gopkg.in/cyverse-de/messaging.v6 v6.0.0 - gopkg.in/cyverse-de/model.v4 v4.0.0-20191009005545-deb84d06e56c gopkg.in/yaml.v2 v2.0.0-20160715033755-e4d366fc3c79 // indirect )