Skip to content

Commit de3b3ec

Browse files
committed
Try fix docker jupyter lab run by passing token
Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com>
1 parent 8d7bd97 commit de3b3ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kedro-docker/features/docker.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ Feature: Docker commands in new projects
6161

6262
Scenario: Execute docker jupyter lab target
6363
Given I have executed the kedro command "docker build"
64-
When I execute the kedro command "docker jupyter lab"
64+
When I execute the kedro command "docker jupyter lab --IdentityProvider.token=test-token-abc123"
6565
Then Jupyter Server should run on port 8888
6666

6767
Scenario: Execute docker jupyter lab target on custom port
6868
Given I have executed the kedro command "docker build"
69-
When I execute the kedro command "docker jupyter lab --port 8899"
69+
When I execute the kedro command "docker jupyter lab --IdentityProvider.token=test-token-abc123 --port 8899"
7070
Then Jupyter Server should run on port 8899
7171

7272
Scenario: Jupyter port already used

kedro-docker/features/steps/cli_steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def check_jupyter_nb_proc_on_port(
340340
command: Jupyter command message to check
341341
port: Port to check
342342
"""
343-
url = f"http://localhost:{int(port)}"
343+
url = f"http://localhost:{int(port)}?token=test-token-abc123"
344344
wait_for(
345345
func=_check_service_up,
346346
expected_result=None,

0 commit comments

Comments
 (0)