Skip to content

Commit 70211a1

Browse files
committed
fix: make hydra consistently localhost
1 parent 4d323d0 commit 70211a1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/ci.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
env:
4545
TEST_MAILHOG_SMTP: "smtp://test:[email protected]:1025/?disable_starttls=true"
4646
TEST_MAILHOG_API: http://127.0.0.1:8025
47-
TEST_SELFSERVICE_OIDC_HYDRA_ADMIN: http://127.0.0.1:4445
48-
TEST_SELFSERVICE_OIDC_HYDRA_PUBLIC: http://127.0.0.1:4444
47+
TEST_SELFSERVICE_OIDC_HYDRA_ADMIN: http://localhost:4445
48+
TEST_SELFSERVICE_OIDC_HYDRA_PUBLIC: http://localhost:4444
4949
TEST_SELFSERVICE_OIDC_HYDRA_INTEGRATION_ADDR: http://127.0.0.1:4499
5050
TEST_DATABASE_POSTGRESQL: "postgres://test:test@localhost:5432/postgres?sslmode=disable"
5151
TEST_DATABASE_MYSQL: "mysql://root:test@(localhost:3306)/mysql?parseTime=true&multiStatements=true"
@@ -65,7 +65,7 @@ jobs:
6565
- run: |
6666
docker create --name hydra -p 4445:4445 -p 4444:4444 \
6767
-e DSN=memory \
68-
-e URLS_SELF_ISSUER=http://127.0.0.1:4444/ \
68+
-e URLS_SELF_ISSUER=http://localhost:4444/ \
6969
-e URLS_LOGIN=http://127.0.0.1:4499/login \
7070
-e URLS_CONSENT=http://127.0.0.1:4499/consent \
7171
oryd/hydra:v1.4.10 serve all --dangerous-force-http

script/test-envs.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
export TEST_DATABASE_MYSQL="mysql://root:secret@(127.0.0.1:3444)/mysql?parseTime=true&multiStatements=true"
44
export TEST_DATABASE_POSTGRESQL="postgres://postgres:[email protected]:3445/postgres?sslmode=disable"
55
export TEST_DATABASE_COCKROACHDB="cockroach://[email protected]:3446/defaultdb?sslmode=disable"
6-
export TEST_SELFSERVICE_OIDC_HYDRA_ADMIN=http://127.0.0.1:4445
7-
export TEST_SELFSERVICE_OIDC_HYDRA_PUBLIC=http://127.0.0.1:4444
8-
export TEST_SELFSERVICE_OIDC_HYDRA_INTEGRATION_ADDR=http://127.0.0.1:4446
6+
export TEST_SELFSERVICE_OIDC_HYDRA_ADMIN=http://localhost:4445
7+
export TEST_SELFSERVICE_OIDC_HYDRA_PUBLIC=http://localhost:4444
8+
export TEST_SELFSERVICE_OIDC_HYDRA_INTEGRATION_ADDR=http://localhost:4446

script/testenv.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ docker rm -f kratos_test_database_mysql kratos_test_database_postgres kratos_tes
44
docker run --platform linux/amd64 --name kratos_test_database_mysql -p 3444:3306 -e MYSQL_ROOT_PASSWORD=secret -d mysql:8.0.23
55
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
66
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
7-
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
7+
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
88

99
source script/test-envs.sh

0 commit comments

Comments
 (0)