Skip to content

Commit 9b2d65a

Browse files
authored
Revert "Revert "chore: synchronize workspaces""
This reverts commit 512ba18.
1 parent fea1f7e commit 9b2d65a

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

.docker/Dockerfile-alpine

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM alpine:3.20
33
RUN <<HEREDOC
44
apk add --no-cache --upgrade ca-certificates
55

6-
# Add a user/group for Ory with a stable UID + GID:
7-
# NOTE: This only appears relevant for supporting hydra as non-root, otherwise unnecessary.
6+
# Add a user/group for Ory with a stable UID + GID. Values are from nonroot from distroless
7+
# for interoperability with other containers.
88
addgroup --system --gid 65532 ory
99
adduser --system --uid 65532 \
1010
--gecos "Ory User" \

.docker/Dockerfile-test-hsm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV CGO_ENABLED 1
1313
RUN go mod download
1414
COPY . .
1515

16-
RUN go build -tags sqlite,json1,hsm -o /usr/bin/hydra
16+
RUN go build -tags sqlite,hsm -o /usr/bin/hydra
1717

1818
ENV HSM_ENABLED=true
1919
ENV HSM_LIBRARY=/usr/lib/softhsm/libsofthsm2.so

quickstart.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
# #
1111
###########################################################################
1212
services:
13+
sqlite:
14+
image: busybox
15+
volumes:
16+
- hydra-sqlite:/mnt/sqlite
17+
command: "chmod -R 777 /mnt/sqlite"
1318
hydra:
1419
image: oryd/hydra:v2.2.0
1520
build:
@@ -21,19 +26,17 @@ services:
2126
- "5555:5555" # Port for hydra token user
2227
command: serve -c /etc/config/hydra/hydra.yml all --dev
2328
volumes:
24-
- type: volume
25-
source: hydra-sqlite
26-
target: /mount/sqlite
27-
read_only: false
29+
- hydra-sqlite:/mnt/sqlite:rw
2830
- type: bind
2931
source: ./contrib/quickstart/5-min
3032
target: /etc/config/hydra
3133
pull_policy: missing
3234
environment:
33-
- DSN=sqlite:///mount/sqlite/db.sqlite?_fk=true
35+
- DSN=sqlite:///mnt/sqlite/db.sqlite?_fk=true&mode=rwc
3436
restart: unless-stopped
3537
depends_on:
3638
- hydra-migrate
39+
- sqlite
3740
networks:
3841
- intranet
3942
hydra-migrate:
@@ -42,20 +45,19 @@ services:
4245
context: .
4346
dockerfile: .docker/Dockerfile-local-build
4447
environment:
45-
- DSN=sqlite:///mount/sqlite/db.sqlite?_fk=true
48+
- DSN=sqlite:///mnt/sqlite/db.sqlite?_fk=true&mode=rwc
4649
command: migrate -c /etc/config/hydra/hydra.yml sql up -e --yes
4750
pull_policy: missing
4851
volumes:
49-
- type: volume
50-
source: hydra-sqlite
51-
target: /mount/sqlite
52-
read_only: false
52+
- hydra-sqlite:/mnt/sqlite:rw
5353
- type: bind
5454
source: ./contrib/quickstart/5-min
5555
target: /etc/config/hydra
5656
restart: on-failure
5757
networks:
5858
- intranet
59+
depends_on:
60+
- sqlite
5961
consent:
6062
environment:
6163
- HYDRA_ADMIN_URL=http://hydra:4445

test/conformance/hydra/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ COPY . .
2020

2121
RUN go build -tags sqlite -o /usr/bin/hydra
2222

23-
VOLUME /var/lib/sqlite
23+
VOLUME /mnt/sqlite
2424

2525
# Exposing the ory home directory
2626
VOLUME /home/ory

0 commit comments

Comments
 (0)