Browse Source

Touch up the docker environment

Ian Goldberg 2 years ago
parent
commit
217a0fe383
5 changed files with 10 additions and 8 deletions
  1. 2 4
      Dockerfile
  2. 7 0
      README.md
  3. 0 1
      build-lox.sh
  4. 1 1
      run-lox.sh
  5. 0 2
      stop-lox.sh

+ 2 - 4
Dockerfile

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

+ 7 - 0
README.md

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

+ 0 - 1
build-lox.sh

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

+ 1 - 1
run-lox.sh

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

+ 0 - 2
stop-lox.sh

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