Skip to content

Commit

Permalink
Revert "Revert "chore: synchronize workspaces""
Browse files Browse the repository at this point in the history
This reverts commit 512ba18.
  • Loading branch information
aeneasr authored Jan 11, 2025
1 parent fea1f7e commit 9b2d65a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .docker/Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM alpine:3.20
RUN <<HEREDOC
apk add --no-cache --upgrade ca-certificates

# Add a user/group for Ory with a stable UID + GID:
# NOTE: This only appears relevant for supporting hydra as non-root, otherwise unnecessary.
# Add a user/group for Ory with a stable UID + GID. Values are from nonroot from distroless
# for interoperability with other containers.
addgroup --system --gid 65532 ory
adduser --system --uid 65532 \
--gecos "Ory User" \
Expand Down
2 changes: 1 addition & 1 deletion .docker/Dockerfile-test-hsm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV CGO_ENABLED 1
RUN go mod download
COPY . .

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

ENV HSM_ENABLED=true
ENV HSM_LIBRARY=/usr/lib/softhsm/libsofthsm2.so
Expand Down
22 changes: 12 additions & 10 deletions quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
# #
###########################################################################
services:
sqlite:
image: busybox
volumes:
- hydra-sqlite:/mnt/sqlite
command: "chmod -R 777 /mnt/sqlite"
hydra:
image: oryd/hydra:v2.2.0
build:
Expand All @@ -21,19 +26,17 @@ services:
- "5555:5555" # Port for hydra token user
command: serve -c /etc/config/hydra/hydra.yml all --dev
volumes:
- type: volume
source: hydra-sqlite
target: /mount/sqlite
read_only: false
- hydra-sqlite:/mnt/sqlite:rw
- type: bind
source: ./contrib/quickstart/5-min
target: /etc/config/hydra
pull_policy: missing
environment:
- DSN=sqlite:///mount/sqlite/db.sqlite?_fk=true
- DSN=sqlite:///mnt/sqlite/db.sqlite?_fk=true&mode=rwc
restart: unless-stopped
depends_on:
- hydra-migrate
- sqlite
networks:
- intranet
hydra-migrate:
Expand All @@ -42,20 +45,19 @@ services:
context: .
dockerfile: .docker/Dockerfile-local-build
environment:
- DSN=sqlite:///mount/sqlite/db.sqlite?_fk=true
- DSN=sqlite:///mnt/sqlite/db.sqlite?_fk=true&mode=rwc
command: migrate -c /etc/config/hydra/hydra.yml sql up -e --yes
pull_policy: missing
volumes:
- type: volume
source: hydra-sqlite
target: /mount/sqlite
read_only: false
- hydra-sqlite:/mnt/sqlite:rw
- type: bind
source: ./contrib/quickstart/5-min
target: /etc/config/hydra
restart: on-failure
networks:
- intranet
depends_on:
- sqlite
consent:
environment:
- HYDRA_ADMIN_URL=http://hydra:4445
Expand Down
2 changes: 1 addition & 1 deletion test/conformance/hydra/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ COPY . .

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

VOLUME /var/lib/sqlite
VOLUME /mnt/sqlite

# Exposing the ory home directory
VOLUME /home/ory
Expand Down

0 comments on commit 9b2d65a

Please sign in to comment.