From f5000882bfb5a687bb8c4f0f20ffbba83529e565 Mon Sep 17 00:00:00 2001 From: xuwenyihust Date: Wed, 3 Jul 2024 21:45:56 +0800 Subject: [PATCH] Refactor Docker options and command in integration-test.yml --- .github/workflows/integration-test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 96beb6f..8400a74 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -21,11 +21,15 @@ jobs: image: wenyixu101/notebook:latest env: JUPYTER_ENABLE_LAB: "no" - JUPYTER_TOKEN: "" - JUPYTER_PASSWORD: "" ports: - "8888:8888" - options: --health-cmd "curl -f http://localhost:8888 || exit 1" --health-interval 10s --health-timeout 5s --health-retries 5 + options: >- + --health-cmd "curl -f http://localhost:8888 || exit 1" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + --publish 8888:8888 + --command "jupyter notebook --ip='0.0.0.0' --port=8888 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password=''" steps: - name: Checkout code