Compare commits
No commits in common. "679f43468d9bcddc126c48aa9d30451c0212e701" and "38b8ee075fab55b91186920ab3017c59c92c4b0e" have entirely different histories.
679f43468d
...
38b8ee075f
2 changed files with 6 additions and 9 deletions
|
@ -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 && \
|
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 && \
|
mkdir -p ${GOPATH}/src/git.minhas.io/asara && \
|
||||||
cd ${GOPATH}/src/git.minhas.io/asara && \
|
cd ${GOPATH}/src/git.minhas.io/asara && \
|
||||||
git clone https://git.minhas.io/asara/sudoscientist-go-backend && \
|
git clone https://git.minhas.io/asara/sudoscientist-go-backend && \
|
||||||
cd ${GOPATH}/src/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/ && \
|
mv /go/bin/* /usr/local/bin/ && \
|
||||||
rm -rf /go/src && \
|
rm -rf /go/src && \
|
||||||
apk del git
|
apk del git
|
||||||
|
|
|
@ -3,11 +3,6 @@ job "sudoscientist-go-backend" {
|
||||||
region = "global"
|
region = "global"
|
||||||
type = "service"
|
type = "service"
|
||||||
|
|
||||||
constraint {
|
|
||||||
attribute = "${attr.cpu.arch}"
|
|
||||||
value = "arm64"
|
|
||||||
}
|
|
||||||
|
|
||||||
update {
|
update {
|
||||||
stagger = "30s"
|
stagger = "30s"
|
||||||
max_parallel = 1
|
max_parallel = 1
|
||||||
|
@ -84,7 +79,7 @@ UI_PROTO = https://
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
cpu = 2000
|
cpu = 2000
|
||||||
memory = 256
|
memory = 2560
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue