Skip to content

Commit

Permalink
Test the github CI to run a local ory kratos instance
Browse files Browse the repository at this point in the history
  • Loading branch information
thesocialdev committed Apr 17, 2024
1 parent 7c13b4b commit dd12a84
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ jobs:
with:
name: aletheia-dist
path: dist
- name: List contents of aletheia-dist
run: ls -lah /home/runner/work/aletheia/aletheia
- name: Start Ory Kratos with docker-compose
- run: git submodule update --init --recursive && cd ./ory_infra && docker compose -f ./kratos/quickstart.yml -f ./quickstart-aletheiafact.yml up -d --build --force-recreate
- run: |
echo '{"CI_ORY_USER_PASSWORD": "${{ env.CI_ORY_USER_PASSWORD }}"}' > ./cypress.env.json
yarn install
Expand Down
9 changes: 6 additions & 3 deletions config.test.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ services:
limit: 1000
authentication_type: ory
ory:
url: {env(ORY_SDK_URL)}
access_token: {env(ORY_ACCESS_TOKEN)}
schema_id: {env(ALETHEIA_SCHEMA_ID)}
url: http://localhost:4433
admin_url: http://localhost:4434
admin_endpoint: admin
# url: {env(ORY_SDK_URL)}
# access_token: {env(ORY_ACCESS_TOKEN)}
# schema_id: {env(ALETHEIA_SCHEMA_ID)}
feature_flag:
url: {env(GITLAB_FEATURE_FLAG_URL)}
appName: Staging
Expand Down
4 changes: 2 additions & 2 deletions ory_infra/quickstart-aletheiafact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
kratos-migrate:
volumes:
- type: bind
source: ./config
source: /home/runner/work/aletheia/aletheia/ory_infra/config
target: /etc/config/kratos

kratos-selfservice-ui-node:
Expand All @@ -22,5 +22,5 @@ services:
target: /var/lib/sqlite
read_only: false
- type: bind
source: ./config
source: /home/runner/work/aletheia/aletheia/ory_infra/config
target: /etc/config/kratos
1 change: 1 addition & 0 deletions server/auth/ory/ory.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Roles } from "../../auth/ability/ability.factory";

@Injectable()
export default class OryService {
private adminUrl: string;
constructor(private configService: ConfigService) {
const { admin_url, admin_endpoint } = this.configService.get("ory");

Expand Down

0 comments on commit dd12a84

Please sign in to comment.