Compare commits

...

2 commits

2 changed files with 9 additions and 6 deletions

View file

@ -1,14 +1,12 @@
FROM golang:alpine
FROM golang:1.17-alpine3.14
# add ca-certificates package
RUN apk add --no-cache ca-certificates git && \
go get -u -d github.com/mattes/migrate/cli github.com/lib/pq && \
go build -tags 'postgres' -o ${GOPATH}/bin/migrate github.com/mattes/migrate/cli && \
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest && \
mkdir -p ${GOPATH}/src/git.minhas.io/asara && \
cd ${GOPATH}/src/git.minhas.io/asara && \
git clone https://git.minhas.io/asara/sudoscientist-go-backend && \
cd ${GOPATH}/src/git.minhas.io/asara/sudoscientist-go-backend && \
go get && go build main.go && \
go mod init && go get && go build main.go && \
mv /go/bin/* /usr/local/bin/ && \
rm -rf /go/src && \
apk del git

View file

@ -3,6 +3,11 @@ job "sudoscientist-go-backend" {
region = "global"
type = "service"
constraint {
attribute = "${attr.cpu.arch}"
value = "arm64"
}
update {
stagger = "30s"
max_parallel = 1
@ -79,7 +84,7 @@ UI_PROTO = https://
resources {
cpu = 2000
memory = 2560
memory = 256
}
}