Skip to content

Commit

Permalink
fixing docker image and localnet setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
cristure committed Oct 25, 2024
1 parent 900530f commit 17a08cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test-localnet-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 17a08cf

Please sign in to comment.