Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
DelightRun committed Jan 18, 2019
1 parent c8d6cee commit 973bf65
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:16.04
MAINTAINER Changxu Wang <[email protected]>

RUN apt-get update -y
RUN apt-get install -y g++ cmake libboost-dev libgoogle-perftools-dev

COPY . /opt/nsg

WORKDIR /opt/nsg

RUN mkdir -p build && cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. && \
make -j $(nproc)
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,22 @@ $ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make -j
```

### (Optional) Docker Usage

1. Build Docker Image

```shell
$ docker build -t nsg .
```

2. Run and log into Docker container

```
$ docker run -it --name nsg nsg bash
```

> You can modify the Dockerfile under the project as you need.
## Usage

The main interfaces and classes have its respective test codes under directory `tests/`
Expand Down

0 comments on commit 973bf65

Please sign in to comment.