Skip to content

Commit

Permalink
Merge pull request #529 from CPSSD/release-1.0
Browse files Browse the repository at this point in the history
Release 1.0
  • Loading branch information
Conor Griffin authored Apr 18, 2018
2 parents 83ae8d2 + f2cb48f commit a621243
Show file tree
Hide file tree
Showing 120 changed files with 3,319 additions and 2,468 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ language: rust
rust:
- nightly

cache:
- cargo: true
- timeout: 1000

addons:
apt:
packages:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ All code must be submitted via pull requests, *not* checked straight into the re
request will be from a single feature branch, which will not be used for any other features after
merging. Ideally, it will be deleted after a merge.

All pull requests must be reviewed by at least two people who are not the submitter. You can ask
All pull requests must be reviewed by at least one person who is not the submitter. You can ask
in Slack for a review, or use Github's assign feature to assign the pull request to a specific
person.
40 changes: 25 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Cerberus Authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,10 @@ build-docker-images: release
docker build -t cpssd/cerberus-master -f master/Dockerfile .
docker build -t cpssd/cerberus-worker -f worker/Dockerfile .


docker-compose-up: clean-docker-images build-docker-images
docker-compose -f docker/docker-compose.yml -p cerberus up -d --scale worker=5 --force-recreate

docker-compose-down:
docker-compose -f docker/docker-compose.yml -p cerberus down

clean-docker-images:
docker rmi cpssd/cerberus-master -f
docker rmi cpssd/cerberus-worker -f

clean-docker: docker-compose-down clean-docker-images
clean-docker: clean-docker-images

clean-all: clean-docker clean
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ CA4019 Project
#### Development
- Rust Nightly
- Protobuf Compiler
- net-tools (if running worker locally)

#### Deployment
- Docker
Expand All @@ -28,7 +27,7 @@ $ cargo build --all

---

## Running benchmarks
## Running AWS benchmarks

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

Run the benchmarking script with:
```
python3 benchmarks.py
```
The AWS benchmarking script is located at aws/benchmarking.py
Run `cargo build --release` before running the script.

---

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

2. **Update parameters in aws.py script**

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.

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

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

5. **Configure Launch Templates**

Expand All @@ -80,8 +79,8 @@ pip install boto3

| Template Name | Tag |
|----|----|
| Master | Key: "type", Value: "worker" |
| Worker | Key: "type", Value: "master" |
| Master | Key: "type", Value: "master" |
| Worker | Key: "type", Value: "worker" |

6. **Deploy Instances**

Expand Down
Loading

0 comments on commit a621243

Please sign in to comment.