Skip to content

isabella232/oracle-deploy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix Package Manager No promises whatsoever

Oracle Deploy

This is a set of scripts to allow for an easy setup of oracles for testing.

Quick Start

Prerequisites

# Nix package manager (see https://nixos.org/download.html for more options)
curl -L https://nixos.org/nix/install | sh

Setup

# 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

terraform init
terraform apply
nixiform init

Configure created VPS machines

nixiform push

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nix 68.0%
  • Shell 18.6%
  • HCL 13.4%