@@ -2,9 +2,7 @@ FROM rust:1.56.0
WORKDIR /home/lox
ADD src/ ./src/
ADD Cargo.toml Cargo.toml
-ADD tests/ ./tests/tests
+ADD tests/ ./tests/
ADD README.md README.md
-RUN cargo build
+RUN cargo build --release
ENV SHELL=/bin/bash
-
@@ -3,6 +3,13 @@
Lox is a reputation-based bridge distribution system that provides privacy protection to users and their social graph and is open to all users.
Lox is written in rust and requires `cargo` to test. [Install Rust](https://www.rust-lang.org/tools/install)
+### To use the docker environment to build the package:
+
+```
+./build-lox.sh
+./run-lox.sh
### To run the tests used for our experimental results run:
```
@@ -1,3 +1,2 @@
#!/bin/bash
-docker rm lox 2>&1;
docker build -t lox .
@@ -1,2 +1,2 @@
-docker run --name lox -it lox:latest /bin/bash
+docker run --name lox --rm -it lox:latest /bin/bash
@@ -1,2 +0,0 @@
-#!/bin/bash
-docker stop lox