Upgraded go & alpine, fix db checkpointing.

* Go version set to 1.19 in go.mod.
* Alpine upgraded to 3.16 in Dockerfile.
* DB restart checkpoint is forced manually after 15 mins of inactivity.
* DB truncate checkpoint is forced manually at exit.
This commit is contained in:
zegkljan
2022-08-09 10:45:10 +02:00
parent 4234c29ae2
commit e6fef137e7
5 changed files with 108 additions and 12 deletions
+4 -3
View File
@@ -1,14 +1,15 @@
FROM alpine:3.15.0 AS build
FROM alpine:3.16 AS build
ARG CAPROVER_GIT_COMMIT_SHA=""
VOLUME ["/data"]
COPY . /oko-server/git
RUN apk add --no-cache go && \
RUN apk update && \
apk add go && \
cd /oko-server/git && \
go build -ldflags "-X \"main.sha1ver=${CAPROVER_GIT_COMMIT_SHA:-$(cat .git/$(cat .git/HEAD | sed 's|ref: ||g'))}\" -X \"main.buildTime=$(date -Iseconds)\""
FROM alpine:3.15.0
FROM alpine:3.16
WORKDIR /oko-server
VOLUME [ "/data" ]