Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-meta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
app
holi-meta
Commits
8b6f485f
Commit
8b6f485f
authored
2 years ago
by
Ole Langbehn
Browse files
Options
Downloads
Patches
Plain Diff
add missing declaration of host.docker.internal for linux
and use cwd option for mprocs for shorter command lines
parent
f8c2f345
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mprocs-local-backend.json
+10
-5
10 additions, 5 deletions
mprocs-local-backend.json
with
10 additions
and
5 deletions
mprocs-local-backend.json
+
10
−
5
View file @
8b6f485f
{
"procs"
:
{
"web"
:
{
"shell"
:
"cd holi-frontends; HOLI_API_URL=http://localhost:4455/graphql yarn web:dev"
"shell"
:
"HOLI_API_URL=http://localhost:4455/graphql yarn web:dev"
,
"cwd"
:
"<CONFIG_DIR>/holi-frontends"
},
"mobile"
:
{
"shell"
:
"cd holi-frontends; HOLI_API_URL=http://localhost:4455/graphql yarn mobile:dev"
"shell"
:
"HOLI_API_URL=http://localhost:4455/graphql yarn mobile:dev"
,
"cwd"
:
"<CONFIG_DIR>/holi-frontends"
},
"continuous-tests"
:
{
"shell"
:
"while true; do sleep 1; done # needs work, we don't have unit test yet cd holi-frontends; jest -w"
,
...
...
@@ -13,17 +15,20 @@
}
},
"oathkeeper"
:
{
"shell"
:
"cd holi-unified-api/oathkeeper; docker run --rm --name ory-oathkeeper-unified-api -p 4455:4455 -p 4456:4456 --env-file=.env.local --mount type=bind,source=$PWD,target=/opt/oathkeeper/ oryd/oathkeeper --config /opt/oathkeeper/config.yaml serve"
"shell"
:
"docker run --rm --name ory-oathkeeper-unified-api -p 4455:4455 -p 4456:4456 --env-file=.env.local --mount type=bind,source=$PWD,target=/opt/oathkeeper/ --add-host=host.docker.internal:host-gateway --network=host oryd/oathkeeper --config /opt/oathkeeper/config.yaml serve"
,
"cwd"
:
"<CONFIG_DIR>/holi-unified-api/oathkeeper"
},
"unified-api"
:
{
"shell"
:
"./wait-for-port.sh 8000; cd holi-unified-api; yarn dev"
},
"okuna-services"
:
{
"shell"
:
"cd holi-okuna; pip3 install -r requirements-cli-only.txt; python3 okuna-cli.py up-services-only"
"shell"
:
"pip3 install -r requirements-cli-only.txt; python3 okuna-cli.py up-services-only"
,
"cwd"
:
"<CONFIG_DIR>/holi-okuna"
},
"okuna-server"
:
{
"comment"
:
"Before starting the server process, the services need to be up. Therefore, we wait until the services are up via a small until loop."
,
"shell"
:
"cd holi-okuna; until docker ps|grep okuna-worker; do sleep 1; done; source .venv/bin/activate; pip3 install -r requirements.txt; python3 manage.py runserver localhost:8000 || echo 'maybe you need to execute
\"
python manage.py migrate
\"
again?'"
"shell"
:
"until docker ps|grep okuna-worker; do sleep 1; done; source .venv/bin/activate; pip3 install -r requirements.txt; python3 manage.py runserver localhost:8000 || echo 'maybe you need to execute
\"
python manage.py migrate
\"
again?'"
,
"cwd"
:
"<CONFIG_DIR>/holi-okuna"
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment