aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.dockerignore2
-rw-r--r--Dockerfile9
-rw-r--r--Makefile5
3 files changed, 16 insertions, 0 deletions
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)