From 56c524bbea64a85d7ced56406b0855041783845f Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 3 Dec 2020 18:55:00 +0100 Subject: Build docker container for basalt example --- .dockerignore | 2 ++ Dockerfile | 9 +++++++++ Makefile | 5 +++++ 3 files changed, 16 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9a15e58 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +target +!target/release/examples/basalt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a179597 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM archlinux:latest + +COPY target/release/examples/basalt /root/basalt + +CMD /root/basalt +ENV RUST_BACKTRACE=1 +ENV RUST_LOG=netapp=debug,basalt=debug + +CMD /garage/garage server -c /garage/config.toml diff --git a/Makefile b/Makefile index bf2a928..0ec01f0 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,8 @@ all: cargo build RUST_LOG=netapp=debug cargo run --example fullmesh -- -n 3242ce79e05e8b6a0e43441fbd140a906e13f335f298ae3a52f29784abbab500 -p 6c304114a0e1018bbe60502a34d33f4f439f370856c3333dda2726da01eb93a4894b7ef7249a71f11d342b69702f1beb7c93ec95fbcf122ad1eca583bb0629e7 + +docker_basalt: + cargo build --release --example basalt + docker build -t lxpz/basalt_netapp_example:$(TAG) . + docker push lxpz/basalt_netapp_example:$(TAG) -- cgit v1.2.3