Skip to content

Commit

Permalink
Merge pull request #28 from sileht/ci-fix
Browse files Browse the repository at this point in the history
fix: jupiter don't need to be rewritten
  • Loading branch information
sileht authored Sep 18, 2020
2 parents b544462 + 29d80fa commit 7367e74
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ci/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

set -e
set -x
set -o pipefail

export MODE=$1
Expand All @@ -18,5 +19,7 @@ CURRENT_UID=$(id -u):$(id -g) MUID=$(id -u) docker-compose -p $PROJECT up -d

PORT=$(docker port "${PROJECT}_platform_ui_1" 80/tcp | awk -F: '{print $2}')

timeout 22 sh -c "until nc -z localhost $PORT; do sleep 1; done"

curl -s --head --request GET localhost:$PORT | head -1 | grep 'HTTP/1.1 200'
curl -s --head --request GET http://localhost:$PORT/filebrowser/sw.js | head -1 | grep 'HTTP/1.1 200'
Binary file modified code/cpu/config/filebrowser/database.db
Binary file not shown.
1 change: 0 additions & 1 deletion code/cpu/config/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ http {
}

location ~* /code/(api/kernels/[^/]+/(channels|iopub|shell|stdin)|terminals/websocket)/? {
rewrite ^/code/(.*) /$1 break;

proxy_pass $jupyter;

Expand Down
1 change: 0 additions & 1 deletion code/gpu/config/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ http {
}

location ~* /code/(api/kernels/[^/]+/(channels|iopub|shell|stdin)|terminals/websocket)/? {
rewrite ^/code/(.*) /$1 break;
proxy_pass $jupyter;

proxy_set_header X-Real-IP $remote_addr;
Expand Down

0 comments on commit 7367e74

Please sign in to comment.