Build docker container for basalt example

This commit is contained in:
Alex 2020-12-03 18:55:00 +01:00
parent 4061fc9fe8
commit 56c524bbea
3 changed files with 16 additions and 0 deletions

2
.dockerignore Normal file
View file

@ -0,0 +1,2 @@
target
!target/release/examples/basalt

9
Dockerfile Normal file
View file

@ -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

View file

@ -1,3 +1,8 @@
all: all:
cargo build cargo build
RUST_LOG=netapp=debug cargo run --example fullmesh -- -n 3242ce79e05e8b6a0e43441fbd140a906e13f335f298ae3a52f29784abbab500 -p 6c304114a0e1018bbe60502a34d33f4f439f370856c3333dda2726da01eb93a4894b7ef7249a71f11d342b69702f1beb7c93ec95fbcf122ad1eca583bb0629e7 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)