From 8ce052ae15b414242f0247a8c718055022a70de8 Mon Sep 17 00:00:00 2001 From: pratishshr Date: Tue, 27 Aug 2019 11:06:57 +0545 Subject: [PATCH] Initial setup --- .gitignore | 14 ++--------- README.md | 7 ++++++ api/.gitkeep | 0 architecture.svg | 3 +++ cli/.gitkeep | 0 deployment/.gitkeep | 0 infrastructure/.gitignore | 25 +++++++++++++++++++ .../config.json.example | 0 shift.go => infrastructure/shift.go | 0 .../providers/aws/s3-website/terraform.tpl | 0 10 files changed, 37 insertions(+), 12 deletions(-) create mode 100644 README.md create mode 100644 api/.gitkeep create mode 100644 architecture.svg create mode 100644 cli/.gitkeep create mode 100644 deployment/.gitkeep create mode 100644 infrastructure/.gitignore rename config.json.example => infrastructure/config.json.example (100%) rename shift.go => infrastructure/shift.go (100%) rename {templates => infrastructure/templates}/providers/aws/s3-website/terraform.tpl (100%) diff --git a/.gitignore b/.gitignore index 1a54198..19fefab 100644 --- a/.gitignore +++ b/.gitignore @@ -11,15 +11,5 @@ # Output of the go coverage tool, specifically when used with LiteIDE *.out -# Dependency directories (remove the comment below to include it) -# vendor/ - -# IDEs -.vscode -.idea - -# Main Package -shift - -# Configfile -config.json +# misc +.DS_Store diff --git a/README.md b/README.md new file mode 100644 index 0000000..b1f88b4 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Shift + +Automated infrastructure creation and deployment tool. + +# Proposed Architecture + + diff --git a/api/.gitkeep b/api/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/architecture.svg b/architecture.svg new file mode 100644 index 0000000..b9796d4 --- /dev/null +++ b/architecture.svg @@ -0,0 +1,3 @@ + + +
Shift Core
Shift Core
Infrastructure
Service
Infrastructure<br>Service
Deployment
Service
Deployment<br>Service
User
User
Shift
CLI
[Not supported by viewer]
Shift 
UI
[Not supported by viewer]
Cloud Platform
AWS, Azure, GCP,.. 
Cloud Platform<br>AWS, Azure, GCP,.. 
Message Queue
Message Queue
Database
Database
Shift Architecture Diagram
Shift Architecture Diagram
  • Listens to Message Queue for infrastructure level topic
  • Spins up a terraform container 
  • Runs terraform script to initialize and modify infrastructure

[Not supported by viewer]
  • Listens to Message Queue for deployment level topic
  • Spins up a container with image specified from the message queue
  • Runs build script and performs deployment to the cloud

[Not supported by viewer]
  • Reads/Writes/Updates/Deletes Project Details
  • Adds various tasks in message queue

[Not supported by viewer]
\ No newline at end of file diff --git a/cli/.gitkeep b/cli/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/deployment/.gitkeep b/deployment/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/infrastructure/.gitignore b/infrastructure/.gitignore new file mode 100644 index 0000000..1a54198 --- /dev/null +++ b/infrastructure/.gitignore @@ -0,0 +1,25 @@ +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# IDEs +.vscode +.idea + +# Main Package +shift + +# Configfile +config.json diff --git a/config.json.example b/infrastructure/config.json.example similarity index 100% rename from config.json.example rename to infrastructure/config.json.example diff --git a/shift.go b/infrastructure/shift.go similarity index 100% rename from shift.go rename to infrastructure/shift.go diff --git a/templates/providers/aws/s3-website/terraform.tpl b/infrastructure/templates/providers/aws/s3-website/terraform.tpl similarity index 100% rename from templates/providers/aws/s3-website/terraform.tpl rename to infrastructure/templates/providers/aws/s3-website/terraform.tpl