Skip to content

Commit 79a834d

Browse files
committed
chore: synchronize workspaces
1 parent 9378b07 commit 79a834d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.docker/Dockerfile-build

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ 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 &&\
76
mkdir -p ./internal/httpclient
87

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

2120
FROM gcr.io/distroless/static-debian12:nonroot AS runner
2221

23-
COPY --from=builder --chown=nonroot:nonroot /var/lib/sqlite /var/lib/sqlite
2422
COPY --from=builder /usr/bin/hydra /usr/bin/hydra
2523

2624
# 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: /var/lib/sqlite
26+
target: /etc/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:///var/lib/sqlite/db.sqlite?_fk=true
33+
- DSN=sqlite:///etc/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:///var/lib/sqlite/db.sqlite?_fk=true
47-
command: migrate -c /etc/config/hydra/hydra.yml sql -e --yes
46+
- DSN=sqlite:///etc/sqlite/db.sqlite?_fk=true
47+
command: migrate -c /etc/config/hydra/hydra.yml sql up -e --yes
4848
user: 500:500
4949
pull_policy: missing
5050
volumes:
5151
- type: volume
5252
source: hydra-sqlite
53-
target: /var/lib/sqlite
53+
target: /etc/sqlite
5454
read_only: false
5555
- type: bind
5656
source: ./contrib/quickstart/5-min

0 commit comments

Comments
 (0)