Merge branch 'fix/move-expert-app-into-package' into 'master'
Move the expert app into the cara package See merge request cara/cara!231
This commit is contained in:
commit
67d0281c98
4 changed files with 5 additions and 6 deletions
|
|
@ -108,11 +108,10 @@ python -m cara.apps.calculator --prefix=/mycalc
|
|||
|
||||
```
|
||||
pip install -e . # At the root of the repository
|
||||
voila ./app/cara.ipynb
|
||||
voila cara/apps/expert/cara.ipynb --port=8080
|
||||
```
|
||||
|
||||
|
||||
Then visit http://localhost:8080/calculator.
|
||||
Then visit http://localhost:8080.
|
||||
|
||||
|
||||
### Running the tests
|
||||
|
|
@ -128,8 +127,8 @@ pytest ./cara
|
|||
|
||||
```
|
||||
s2i build file://$(pwd) --copy --keep-symlinks --context-dir ./app-config/nginx/ centos/nginx-112-centos7 cara-nginx-app
|
||||
s2i build file://$(pwd) --copy --keep-symlinks --context-dir ./ centos/python-36-centos7 cara-webservice
|
||||
s2i build file://$(pwd) --copy --keep-symlinks --context-dir ./app-config/auth-service centos/python-36-centos7 auth-service
|
||||
docker build . -f ./app-config/cara-webservice/Dockerfile -t cara-webservice
|
||||
docker build ./app-config/auth-service -t auth-service
|
||||
```
|
||||
|
||||
Get the client secret from the CERN Application portal for the `cara-test` app. See [CERN-SSO-integration](#CERN-SSO-integration) for more info.
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ if [[ "$APP_NAME" == "cara-webservice" ]]; then
|
|||
python -m cara.apps.calculator "${args[@]}"
|
||||
elif [[ "$APP_NAME" == "cara-voila" ]]; then
|
||||
echo "Starting the voila service"
|
||||
voila app/ --port=8080 --no-browser --base_url=/voila-server/ --Voila.tornado_settings="{'allow_origin': '*'}"
|
||||
voila cara/apps/expert/ --port=8080 --no-browser --base_url=/voila-server/ --tornado_settings 'allow_origin=*'
|
||||
else
|
||||
echo "No APP_NAME specified"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue