Touch up the docker environment

This commit is contained in:
Ian Goldberg 2022-08-17 10:20:12 -04:00
parent 3a57921925
commit 54168fdbc1
5 changed files with 10 additions and 8 deletions

View File

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

View File

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

View File

@ -1,3 +1,2 @@
#!/bin/bash
docker rm lox 2>&1;
docker build -t lox .

View File

@ -1,2 +1,2 @@
#!/bin/bash
docker run --name lox -it lox:latest /bin/bash
docker run --name lox --rm -it lox:latest /bin/bash

View File

@ -1,2 +0,0 @@
#!/bin/bash
docker stop lox