intkn-api-migrations-prod (sha256:45eb0703fc40237befbc0946d01cae360eb223aafd3d2bc3b22c22e0f4ee1d59)
Published 2025-10-15 15:02:28 +00:00 by ws-bot
Installation
docker pull git2.workstreams.ch/workstreams/intkn-api-migrations-prod@sha256:45eb0703fc40237befbc0946d01cae360eb223aafd3d2bc3b22c22e0f4ee1d59sha256:45eb0703fc40237befbc0946d01cae360eb223aafd3d2bc3b22c22e0f4ee1d59Image Layers
| ADD alpine-minirootfs-3.22.2-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit |
| ENV GOLANG_VERSION=1.24.9 |
| ENV GOTOOLCHAIN=local |
| ENV GOPATH=/go |
| ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| COPY /target/ / # buildkit |
| RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit |
| WORKDIR /go |
| RUN /bin/sh -c go install github.com/rubenv/sql-migrate/...@v1.7.1 # buildkit |
| COPY ./migrations /app/migrations # buildkit |
| COPY ./dbconfig.yml /app/dbconfig.yml # buildkit |
| WORKDIR /app |
| CMD ["sql-migrate" "up" "-env" "prod-server"] |