Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makerdao/oracle-deploy
https://github.com/makerdao/oracle-deploy
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/makerdao/oracle-deploy
- Owner: makerdao
- License: agpl-3.0
- Created: 2021-06-16T10:38:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-08T12:01:39.000Z (about 3 years ago)
- Last Synced: 2023-04-05T22:26:11.418Z (almost 2 years ago)
- Language: Nix
- Size: 122 KB
- Stars: 0
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Nix Package Manager](https://forthebadge.com/images/badges/powered-by-black-magic.svg)
![No promises whatsoever](https://forthebadge.com/images/badges/works-on-my-machine.svg)# Oracle Deploy
This is a set of scripts to allow for an easy setup of oracles for testing.
## Quick Start
### Prerequisites
```shell
# Nix package manager (see https://nixos.org/download.html for more options)
curl -L https://nixos.org/nix/install | sh
```### Setup
```shell
# Get the repo
git clone https://github.com/makerdao/oracle-deploy.git
# Use the example directory as the base
cp -r oracle-deploy/example my-env
# Create a secret dir
mkdir -p my-env/secret
# Add AWS credentials
echo '{"aws_access_key_id":"AWS_ID","aws_secret_access_key":"AWS_KEY"}' > my-env/secret/aws.json
# Enter the directory's Nix Shell (might take a while when done for the first time)
nix-shell my-env/shell.nix
# Create a secret ssh-key
ssh-keygen -t rsa -b 2048 -C "my-env-access" -f secret/ssh_key
# Add Graphite credentials
echo 'login:api_key' > secret/graphite_api_key
# Add some additional keys for exchange APIs with restricted access
echo '{"openexchangerates":{"apiKey":"KEY"}}' > secret/origins.json
```### Initialize Environment
```shell
terraform init
terraform apply
nixiform init
```### Configure created VPS machines
```shell
nixiform push
```