Skip to content

Commit

Permalink
Docker documentation correction (#279)
Browse files Browse the repository at this point in the history
* Updated `README.md` for new Docker set up

* Set Version: 0.2.3

* Set Version: 0.2.4

---------

Co-authored-by: devops <[email protected]>
  • Loading branch information
dkcumming and devops authored Dec 6, 2023
1 parent cb4289a commit 3c261ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,17 @@ We provide a Docker image for isolated testing, locally and in CI.
From the root of the repository:
- Build the docker image (the `./deps/k_release` file pins the K version):
```sh
docker build . --build-arg K_COMMIT=$(cat ./deps/k_release) --tag mir-semantics:$(cat ./deps/k_release)
docker build . --tag kmir-tests --build-arg K_COMMIT=$(cat deps/k_release) --file .github/workflows/Dockerfile
```
- Run the integration tests in a container:
```sh
docker run --name mir-semantics --rm -it -u user --workdir /home/user mir-semantics:$(cat ./deps/k_release) make -C kmir test-integration
docker run --name kmir-container --rm --interactive --tty --detach --workdir /home/user kmir-tests &&
docker cp . kmir-container:/home/user &&
docker exec kmir-container chown -R user:user /home/user &&
docker exec --user user kmir-container make -C kmir test-integration
```
Note: you may need to run the `docker` commands with `sudo`.
Note: you may need to run the `docker` commands with `sudo`, or start a superuser shell with `sudo -s`..
We use a similar workflow in CI actions defined in the `.github/` directory.
Expand Down
2 changes: 1 addition & 1 deletion kmir/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "kmir"
version = "0.2.3"
version = "0.2.4"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion kmir/src/kmir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

from .kmir import KMIR

VERSION: Final = '0.2.3'
VERSION: Final = '0.2.4'
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.3
0.2.4

0 comments on commit 3c261ef

Please sign in to comment.