Compare commits

..

No commits in common. "679f43468d9bcddc126c48aa9d30451c0212e701" and "38b8ee075fab55b91186920ab3017c59c92c4b0e" have entirely different histories.

2 changed files with 6 additions and 9 deletions

View file

@ -1,12 +1,14 @@
FROM golang:1.17-alpine3.14
FROM golang:alpine
# add ca-certificates package
RUN apk add --no-cache ca-certificates git && \
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest && \
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 && \
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 mod init && go get && go build main.go && \
go get && go build main.go && \
mv /go/bin/* /usr/local/bin/ && \
rm -rf /go/src && \
apk del git

View file

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