diff --git a/.github/workflows/test-localnet-tests.yml b/.github/workflows/test-localnet-tests.yml index bbf55dd5..7cccad1a 100644 --- a/.github/workflows/test-localnet-tests.yml +++ b/.github/workflows/test-localnet-tests.yml @@ -42,10 +42,8 @@ jobs: - name: Deploy a localnet run: | - docker run -d -p 7950:7950 \ - -v ./multiversx_sdk_cli/tests/testdata/localnet_with_resolution_remote.toml=/usr/src/app/localnet.toml \ - mxpy localnet setup && python -m multiversx_sdk_cli.cli localnet start - + docker run -d -p 7950:7950 mxpy localnet start \ + --configfile=/usr/src/app/multiversx_sdk_cli/tests/testdata/localnet_with_resolution_remote.toml - name: Test localnet dependent tests run: | pytest -m require_localnet multiversx_sdk_cli/tests diff --git a/Dockerfile b/Dockerfile index 3d69006a..9d6f84a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,5 +21,8 @@ RUN apt update && apt install -y build-essential # Step 8: Copy the current directory contents into the container COPY . . -# Step 9: Specify the command to run the application +# Step 9: Setup the localnet configuration in the eventuality of a localnet start. +RUN python -m multiversx_sdk_cli.cli localnet setup --configfile=/usr/src/app/multiversx_sdk_cli/tests/testdata/localnet_with_resolution_remote.toml + +# Step 10: Specify the entrypoint to run the application ENTRYPOINT ["python", "-m", "multiversx_sdk_cli.cli"] \ No newline at end of file