Skip to content

Commit ef5b536

Browse files
committed
Revert "chore: synchronize workspaces"
This reverts commit 80c92d4.
1 parent b86f58e commit ef5b536

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ RUN go build -ldflags="-extldflags=-static" -tags sqlite,sqlite_omit_load_extens
1717

1818
#########################
1919

20-
FROM gcr.io/distroless/static-debian12:debug-nonroot AS runner
20+
FROM gcr.io/distroless/static-debian12:nonroot AS runner
2121

2222
COPY --from=builder /usr/bin/hydra /usr/bin/hydra
2323

2424
# Declare the standard ports used by hydra (4444 for public service endpoint, 4445 for admin service endpoint)
2525
EXPOSE 4444 4445
2626

27-
USER nonroot
28-
2927
ENTRYPOINT ["hydra"]
3028
CMD ["serve", "all"]

.github/workflows/cve-scan.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
id: hadolint
122122
if: ${{ always() }}
123123
with:
124-
dockerfile: .docker/Dockerfile-local-build
124+
dockerfile: .docker/Dockerfile-build
125125
verbose: true
126126
format: "json"
127127
failure-threshold: "error"

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ test-resetdb: node_modules
7171
# Build local docker images
7272
.PHONY: docker
7373
docker:
74-
DOCKER_BUILDKIT=1 DOCKER_CONTENT_TRUST=1 docker build --progress=plain -f .docker/Dockerfile-local-build -t oryd/hydra:${IMAGE_TAG} .
75-
echo "Local development image has been built."
74+
DOCKER_BUILDKIT=1 DOCKER_CONTENT_TRUST=1 docker build --progress=plain -f .docker/Dockerfile-build -t oryd/hydra:${IMAGE_TAG} .
7675

7776
.PHONY: e2e
7877
e2e: node_modules test-resetdb

quickstart.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
image: oryd/hydra:v2.2.0
1515
build:
1616
context: .
17-
dockerfile: .docker/Dockerfile-local-build
17+
dockerfile: .docker/Dockerfile-build
1818
ports:
1919
- "4444:4444" # Public port
2020
- "4445:4445" # Admin port
@@ -23,15 +23,16 @@ services:
2323
volumes:
2424
- type: volume
2525
source: hydra-sqlite
26-
target: /mount/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:///mount/sqlite/db.sqlite?_fk=true
33+
- DSN=sqlite:///etc/sqlite/db.sqlite?_fk=true
3434
restart: unless-stopped
35+
user: 500:500
3536
depends_on:
3637
- hydra-migrate
3738
networks:
@@ -40,15 +41,16 @@ services:
4041
image: oryd/hydra:v2.2.0
4142
build:
4243
context: .
43-
dockerfile: .docker/Dockerfile-local-build
44+
dockerfile: .docker/Dockerfile-build
4445
environment:
45-
- DSN=sqlite:///mount/sqlite/db.sqlite?_fk=true
46+
- DSN=sqlite:///etc/sqlite/db.sqlite?_fk=true
4647
command: migrate -c /etc/config/hydra/hydra.yml sql up -e --yes
48+
user: 500:500
4749
pull_policy: missing
4850
volumes:
4951
- type: volume
5052
source: hydra-sqlite
51-
target: /mount/sqlite
53+
target: /etc/sqlite
5254
read_only: false
5355
- type: bind
5456
source: ./contrib/quickstart/5-min

0 commit comments

Comments
 (0)