Skip to content

Commit

Permalink
fix: make hydra consistently localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jul 21, 2022
1 parent 4d323d0 commit 70211a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
env:
TEST_MAILHOG_SMTP: "smtp://test:test@127.0.0.1:1025/?disable_starttls=true"
TEST_MAILHOG_API: http://127.0.0.1:8025
TEST_SELFSERVICE_OIDC_HYDRA_ADMIN: http://127.0.0.1:4445
TEST_SELFSERVICE_OIDC_HYDRA_PUBLIC: http://127.0.0.1:4444
TEST_SELFSERVICE_OIDC_HYDRA_ADMIN: http://localhost:4445
TEST_SELFSERVICE_OIDC_HYDRA_PUBLIC: http://localhost:4444
TEST_SELFSERVICE_OIDC_HYDRA_INTEGRATION_ADDR: http://127.0.0.1:4499
TEST_DATABASE_POSTGRESQL: "postgres://test:test@localhost:5432/postgres?sslmode=disable"
TEST_DATABASE_MYSQL: "mysql://root:test@(localhost:3306)/mysql?parseTime=true&multiStatements=true"
Expand All @@ -65,7 +65,7 @@ jobs:
- run: |
docker create --name hydra -p 4445:4445 -p 4444:4444 \
-e DSN=memory \
-e URLS_SELF_ISSUER=http://127.0.0.1:4444/ \
-e URLS_SELF_ISSUER=http://localhost:4444/ \
-e URLS_LOGIN=http://127.0.0.1:4499/login \
-e URLS_CONSENT=http://127.0.0.1:4499/consent \
oryd/hydra:v1.4.10 serve all --dangerous-force-http
Expand Down
6 changes: 3 additions & 3 deletions script/test-envs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
export TEST_DATABASE_MYSQL="mysql://root:secret@(127.0.0.1:3444)/mysql?parseTime=true&multiStatements=true"
export TEST_DATABASE_POSTGRESQL="postgres://postgres:secret@127.0.0.1:3445/postgres?sslmode=disable"
export TEST_DATABASE_COCKROACHDB="cockroach://root@127.0.0.1:3446/defaultdb?sslmode=disable"
export TEST_SELFSERVICE_OIDC_HYDRA_ADMIN=http://127.0.0.1:4445
export TEST_SELFSERVICE_OIDC_HYDRA_PUBLIC=http://127.0.0.1:4444
export TEST_SELFSERVICE_OIDC_HYDRA_INTEGRATION_ADDR=http://127.0.0.1:4446
export TEST_SELFSERVICE_OIDC_HYDRA_ADMIN=http://localhost:4445
export TEST_SELFSERVICE_OIDC_HYDRA_PUBLIC=http://localhost:4444
export TEST_SELFSERVICE_OIDC_HYDRA_INTEGRATION_ADDR=http://localhost:4446
2 changes: 1 addition & 1 deletion script/testenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ docker rm -f kratos_test_database_mysql kratos_test_database_postgres kratos_tes
docker run --platform linux/amd64 --name kratos_test_database_mysql -p 3444:3306 -e MYSQL_ROOT_PASSWORD=secret -d mysql:8.0.23
docker run --platform linux/amd64 --name kratos_test_database_postgres -p 3445:5432 -e POSTGRES_PASSWORD=secret -e POSTGRES_DB=postgres -d postgres:11.8 postgres -c log_statement=all
docker run --platform linux/amd64 --name kratos_test_database_cockroach -p 3446:26257 -p 3447:8080 -d cockroachdb/cockroach:v21.2.6 start-single-node --insecure
docker run --platform linux/amd64 --name kratos_test_hydra -p 4444:4444 -p 4445:4445 -d -e DSN=memory -e URLS_SELF_ISSUER=http://127.0.0.1:4444 -e URLS_LOGIN=http://127.0.0.1:4446/login -e URLS_CONSENT=http://127.0.0.1:4446/consent oryd/hydra:v1.9.2-sqlite serve all --dangerous-force-http
docker run --platform linux/amd64 --name kratos_test_hydra -p 4444:4444 -p 4445:4445 -d -e DSN=memory -e URLS_SELF_ISSUER=http://localhost:4444 -e URLS_LOGIN=http://localhost:4446/login -e URLS_CONSENT=http://localhost:4446/consent oryd/hydra:v1.9.2-sqlite serve all --dangerous-force-http

source script/test-envs.sh

0 comments on commit 70211a1

Please sign in to comment.