Skip to content

Commit a621243

Browse files
author
Conor Griffin
authored
Merge pull request #529 from CPSSD/release-1.0
Release 1.0
2 parents 83ae8d2 + f2cb48f commit a621243

File tree

120 files changed

+3319
-2468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+3319
-2468
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ language: rust
55
rust:
66
- nightly
77

8-
cache:
9-
- cargo: true
10-
- timeout: 1000
11-
128
addons:
139
apt:
1410
packages:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ All code must be submitted via pull requests, *not* checked straight into the re
5050
request will be from a single feature branch, which will not be used for any other features after
5151
merging. Ideally, it will be deleted after a merge.
5252

53-
All pull requests must be reviewed by at least two people who are not the submitter. You can ask
53+
All pull requests must be reviewed by at least one person who is not the submitter. You can ask
5454
in Slack for a review, or use Github's assign feature to assign the pull request to a specific
5555
person.

Cargo.lock

Lines changed: 25 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Cerberus Authors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,10 @@ build-docker-images: release
3838
docker build -t cpssd/cerberus-master -f master/Dockerfile .
3939
docker build -t cpssd/cerberus-worker -f worker/Dockerfile .
4040

41-
42-
docker-compose-up: clean-docker-images build-docker-images
43-
docker-compose -f docker/docker-compose.yml -p cerberus up -d --scale worker=5 --force-recreate
44-
45-
docker-compose-down:
46-
docker-compose -f docker/docker-compose.yml -p cerberus down
47-
4841
clean-docker-images:
4942
docker rmi cpssd/cerberus-master -f
5043
docker rmi cpssd/cerberus-worker -f
5144

52-
clean-docker: docker-compose-down clean-docker-images
45+
clean-docker: clean-docker-images
5346

5447
clean-all: clean-docker clean

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ CA4019 Project
1010
#### Development
1111
- Rust Nightly
1212
- Protobuf Compiler
13-
- net-tools (if running worker locally)
1413

1514
#### Deployment
1615
- Docker
@@ -28,7 +27,7 @@ $ cargo build --all
2827

2928
---
3029

31-
## Running benchmarks
30+
## Running AWS benchmarks
3231

3332
The following dependancies are required to run the benchmarking script:
3433
- python3-tk
@@ -40,10 +39,8 @@ apt-get install python3-pip python3-tk
4039
pip3 install numpy matplotlib
4140
```
4241

43-
Run the benchmarking script with:
44-
```
45-
python3 benchmarks.py
46-
```
42+
The AWS benchmarking script is located at aws/benchmarking.py
43+
Run `cargo build --release` before running the script.
4744

4845
---
4946

@@ -67,10 +64,12 @@ pip install boto3
6764
A sample file is located in aws/credentials. Simply replace *ACCESS_KEY_ID* and *SECRET_ACCESS_KEY* with their respective values.
6865

6966
2. **Update parameters in aws.py script**
67+
68+
You will need to create and download an EC2 key pair from AWS and update the python script to use your .pem file containing the created key.
7069

7170
3. **Ensure that you push the latest version of the master/worker containers to DockerHub**
7271

73-
This can be done by running `./production-deployment` in the cerberus root directory.
72+
This can be done by running `./production-deployment.sh` in the cerberus root directory.
7473

7574
5. **Configure Launch Templates**
7675

@@ -80,8 +79,8 @@ pip install boto3
8079

8180
| Template Name | Tag |
8281
|----|----|
83-
| Master | Key: "type", Value: "worker" |
84-
| Worker | Key: "type", Value: "master" |
82+
| Master | Key: "type", Value: "master" |
83+
| Worker | Key: "type", Value: "worker" |
8584

8685
6. **Deploy Instances**
8786

0 commit comments

Comments
 (0)