diff options
-rw-r--r-- | README.md | 14 | ||||
-rw-r--r-- | container/Dockerfile (renamed from docker/Dockerfile) | 0 | ||||
-rw-r--r-- | container/Makefile | 5 | ||||
-rw-r--r-- | docker/Makefile | 2 |
4 files changed, 17 insertions, 4 deletions
@@ -61,16 +61,26 @@ Rustdoc for this crate is available at ## Build with provided container file -The provided [Dockerfile](docker/Dockerfile) documents the required +The provided [Dockerfile](container/Dockerfile) documents the required dependencies for an ubuntu based system and serves as a build environment with the correct llvm version as specified in the [Cargo.toml](Cargo.toml) file. ```bash +## Either user podman .. + # Build the image *ks-rs*. Depending on the downlink this may take some minutes. -make -C docker +make -C container podman run --rm -it -v $PWD:/work -w /work ks-rs # Drops into a shell in the container, just use cargo build / run ... + +## .. or docker. + +# Build the image *ks-rs*. Depending on the downlink this may take some minutes. +make -C container docker + +docker run --rm -it -v $PWD:/work -w /work ks-rs +# Drops into a shell in the container, just use cargo build / run ... ``` ## License diff --git a/docker/Dockerfile b/container/Dockerfile index 9cb8b44..9cb8b44 100644 --- a/docker/Dockerfile +++ b/container/Dockerfile diff --git a/container/Makefile b/container/Makefile new file mode 100644 index 0000000..26f7493 --- /dev/null +++ b/container/Makefile @@ -0,0 +1,5 @@ +podman: build-podman +docker: build-docker + +build-%: + $* build -t ks-rs . diff --git a/docker/Makefile b/docker/Makefile deleted file mode 100644 index 6b3ef8b..0000000 --- a/docker/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -build: - podman build -t ks-rs . |