mirror of
https://github.com/quay/quay.git
synced 2026-01-27 18:42:52 +03:00
* Add sqlite db support on quay start up * Add batchmode to migration scripts to support sqlite db * Add sqlite db to config-tool validator + alembic migration * Fix migration script to prevent db row locking Added commit statement to ensure previous transaction is completed before the next one within the same table * Clean up unused sqlite volume * Apply black formatting to migration scripts * Address review comments * Ensure py39-unit test runs the alembic migration on Sqlite * Add static type checking for alembic config file name * alembic remove commit and invalidate during migration When disconnecting from db, alembic tries to rollback causing PendingRollbackError * Bump go version in config-tool Dockerfile * Explicitly commit transaction to prevent db table locking * Clean up + remove debug statements * Undo database secret key change * Add TEST_DATABASE_URI to py39-unit to run unit test with sqlite db * Drop index before dropping column to prevent sqlite error * Add test coverage + address last set of reviews --------- Signed-off-by: harishsurf <hgovinda@redhat.com>
21 lines
589 B
Docker
21 lines
589 B
Docker
FROM registry.access.redhat.com/ubi8/ubi:latest as jsbuild
|
|
|
|
WORKDIR /jssrc
|
|
COPY pkg/lib/editor .
|
|
RUN yum install -y nodejs && \
|
|
npm install --ignore-engines && \
|
|
npm run build
|
|
|
|
FROM golang:1.22-alpine
|
|
|
|
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/* && mkdir /usr/local/share/ca-certificates/extra
|
|
WORKDIR /go/src/config-tool
|
|
COPY . .
|
|
RUN rm -rf /go/src/config-tool/pkg/lib/editor/static/build
|
|
COPY --from=jsbuild /jssrc/static/build /go/src/config-tool/pkg/lib/editor/static/build
|
|
|
|
RUN go get -d -v ./...
|
|
RUN go install -v ./...
|
|
|
|
ENTRYPOINT [ "config-tool" ]
|