Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jan 10, 2025
1 parent 1cd550e commit bd6f69d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .docker/Dockerfile-build → .docker/Dockerfile-local-build
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ RUN go build -ldflags="-extldflags=-static" -tags sqlite,sqlite_omit_load_extens

#########################

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

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

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

USER nonroot

ENTRYPOINT ["hydra"]
CMD ["serve", "all"]
2 changes: 1 addition & 1 deletion .github/workflows/cve-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
id: hadolint
if: ${{ always() }}
with:
dockerfile: .docker/Dockerfile-build
dockerfile: .docker/Dockerfile-local-build
verbose: true
format: "json"
failure-threshold: "error"
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ test-resetdb: node_modules
# Build local docker images
.PHONY: docker
docker:
DOCKER_BUILDKIT=1 DOCKER_CONTENT_TRUST=1 docker build --progress=plain -f .docker/Dockerfile-build -t oryd/hydra:${IMAGE_TAG} .
DOCKER_BUILDKIT=1 DOCKER_CONTENT_TRUST=1 docker build --progress=plain -f .docker/Dockerfile-local-build -t oryd/hydra:${IMAGE_TAG} .
echo "Local development image has been built."

.PHONY: e2e
e2e: node_modules test-resetdb
Expand Down
14 changes: 6 additions & 8 deletions quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
image: oryd/hydra:v2.2.0
build:
context: .
dockerfile: .docker/Dockerfile-build
dockerfile: .docker/Dockerfile-local-build
ports:
- "4444:4444" # Public port
- "4445:4445" # Admin port
Expand All @@ -23,16 +23,15 @@ services:
volumes:
- type: volume
source: hydra-sqlite
target: /etc/sqlite
target: /mount/sqlite
read_only: false
- type: bind
source: ./contrib/quickstart/5-min
target: /etc/config/hydra
pull_policy: missing
environment:
- DSN=sqlite:///etc/sqlite/db.sqlite?_fk=true
- DSN=sqlite:///mount/sqlite/db.sqlite?_fk=true
restart: unless-stopped
user: 500:500
depends_on:
- hydra-migrate
networks:
Expand All @@ -41,16 +40,15 @@ services:
image: oryd/hydra:v2.2.0
build:
context: .
dockerfile: .docker/Dockerfile-build
dockerfile: .docker/Dockerfile-local-build
environment:
- DSN=sqlite:///etc/sqlite/db.sqlite?_fk=true
- DSN=sqlite:///mount/sqlite/db.sqlite?_fk=true
command: migrate -c /etc/config/hydra/hydra.yml sql up -e --yes
user: 500:500
pull_policy: missing
volumes:
- type: volume
source: hydra-sqlite
target: /etc/sqlite
target: /mount/sqlite
read_only: false
- type: bind
source: ./contrib/quickstart/5-min
Expand Down

0 comments on commit bd6f69d

Please sign in to comment.