Skip to content

Commit c3e4d59

Browse files
committed
Revert "chore: synchronize workspaces"
This reverts commit 79a834d.
1 parent ef5b536 commit c3e4d59

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.docker/Dockerfile-build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM golang:1.22 AS builder
33
WORKDIR /go/src/github.com/ory/hydra
44

55
RUN apt-get update && apt-get upgrade -y &&\
6+
mkdir -p /var/lib/sqlite &&\
67
mkdir -p ./internal/httpclient
78

89
COPY go.mod go.sum ./
@@ -19,6 +20,7 @@ RUN go build -ldflags="-extldflags=-static" -tags sqlite,sqlite_omit_load_extens
1920

2021
FROM gcr.io/distroless/static-debian12:nonroot AS runner
2122

23+
COPY --from=builder --chown=nonroot:nonroot /var/lib/sqlite /var/lib/sqlite
2224
COPY --from=builder /usr/bin/hydra /usr/bin/hydra
2325

2426
# Declare the standard ports used by hydra (4444 for public service endpoint, 4445 for admin service endpoint)

quickstart.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ services:
2323
volumes:
2424
- type: volume
2525
source: hydra-sqlite
26-
target: /etc/sqlite
26+
target: /var/lib/sqlite
2727
read_only: false
2828
- type: bind
2929
source: ./contrib/quickstart/5-min
3030
target: /etc/config/hydra
3131
pull_policy: missing
3232
environment:
33-
- DSN=sqlite:///etc/sqlite/db.sqlite?_fk=true
33+
- DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true
3434
restart: unless-stopped
3535
user: 500:500
3636
depends_on:
@@ -43,14 +43,14 @@ services:
4343
context: .
4444
dockerfile: .docker/Dockerfile-build
4545
environment:
46-
- DSN=sqlite:///etc/sqlite/db.sqlite?_fk=true
47-
command: migrate -c /etc/config/hydra/hydra.yml sql up -e --yes
46+
- DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true
47+
command: migrate -c /etc/config/hydra/hydra.yml sql -e --yes
4848
user: 500:500
4949
pull_policy: missing
5050
volumes:
5151
- type: volume
5252
source: hydra-sqlite
53-
target: /etc/sqlite
53+
target: /var/lib/sqlite
5454
read_only: false
5555
- type: bind
5656
source: ./contrib/quickstart/5-min

0 commit comments

Comments
 (0)