Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a test database on the same server #9

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
7e57c78
version 1 added - 20 mins , run the app, created docker
Mar 11, 2021
afe797a
Merge pull request #1 from st185229/tf-nordcloud
st185229 Mar 11, 2021
b8ea1ad
Iac terraform scripts added
Mar 12, 2021
a7a753e
Terraform resources added
Mar 12, 2021
97d810d
Terraform modified
Mar 12, 2021
8f3d303
Create terraform.yml
st185229 Mar 12, 2021
a7dfa34
Merge pull request #2 from st185229/tf-nordcloud
st185229 Mar 12, 2021
0c588a2
Update terraform.yml
st185229 Mar 12, 2021
ee11f01
Update terraform.yml
st185229 Mar 12, 2021
c372400
Update terraform.yml
st185229 Mar 12, 2021
0c24a93
Update terraform.yml
st185229 Mar 12, 2021
7b230ff
Update terraform.yml
st185229 Mar 12, 2021
ceee3ac
added main
Mar 12, 2021
f1a4cb4
Update terraform.yml
st185229 Mar 12, 2021
18c0d52
Merge pull request #3 from st185229/tf-nordcloud
st185229 Mar 12, 2021
bf22528
Update terraform.yml
st185229 Mar 12, 2021
296149a
Update terraform.yml
st185229 Mar 12, 2021
8f2bd13
Added files
Mar 12, 2021
4ffd512
client secret removed
Mar 13, 2021
d4e23eb
IaC completed
Mar 13, 2021
8497ef8
Update terraform.auto.tfvars
st185229 Mar 13, 2021
443fed3
Update terraform.auto.tfvars
st185229 Mar 13, 2021
2a4d63d
IaC completed
Mar 13, 2021
bfb12b6
IaC completed
Mar 13, 2021
f183049
Added files
Mar 13, 2021
f3c1500
Added files
Mar 13, 2021
a9ff855
Added files
Mar 13, 2021
54b3080
Merge branch 'master' into tf-nordcloud
st185229 Mar 13, 2021
09a93f3
Github actions updated
Mar 13, 2021
e30375b
Github actions updated
Mar 13, 2021
7f6a339
Machines are reduced to save the cost
Mar 13, 2021
2cec29e
Machines are reduced to save the cost
Mar 13, 2021
6340853
Machines are reduced to save the cost
Mar 13, 2021
070625d
Machines are reduced to save the cost
Mar 13, 2021
4c266e1
Machines are reduced to save the cost
Mar 13, 2021
84f7c04
Machines are reduced to save the cost
Mar 13, 2021
02f6ebc
workflow changes
Mar 13, 2021
d0dfda7
workflow changes
Mar 13, 2021
febf47b
workflow changes
Mar 13, 2021
d9ccf93
Added terraform backend
Mar 13, 2021
dc390a8
Added terraform backend
Mar 13, 2021
96fab49
Iac completed
Mar 13, 2021
375a5f7
Test database added
Mar 13, 2021
b2a7449
Test database added
Mar 13, 2021
bc98707
Spring database changes
Mar 13, 2021
a331230
added few resources
Mar 19, 2021
fd52aa5
changes ddos
Mar 19, 2021
33ab971
Spring removed and moved to different project as microservice refacto…
Mar 19, 2021
84f8bd2
gitignore added
Mar 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: 'NordCloud'

on:
push:
branches:
- master
paths:
- "**/*.tf"
- "**/*.yml"
- "**/*.sh"

pull_request:
paths:
- 'terraform/notejam-tf/**'

jobs:
terraform:
name: 'notejam-azure-validate'
runs-on: ubuntu-latest
environment: production

env:
ARM_CLIENT_ID: ${{ secrets.TF_VAR_ARM_CLIENT_ID }}
ARM_CLIENT_SECRET: ${{ secrets.TF_VAR_ARM_CLIENT_SECRET }}
ARM_SUBSCRIPTION_ID: ${{ secrets.TF_VAR_ARM_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.TF_VAR_ARM_TENANT_ID }}

# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
working-directory: "terraform/notejam-tf"

steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2

# Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}

# Checks that all Terraform configuration files adhere to a canonical format
- name: Terraform Format
id: fmt
run: terraform fmt -check
continue-on-error: true

# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
id: init
run: terraform init

# Generates an execution plan for Terraform
- name: Terraform Plan
id: plan
if: github.event_name == 'pull_request'
run: terraform plan -no-color
continue-on-error: false

- uses: actions/github-script@0.9.0
if: github.event_name == 'pull_request'
env:
PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\`
#### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\`
#### Terraform Plan 📖\`${{ steps.plan.outcome }}\`
<details><summary>Show Plan</summary>
\`\`\`${process.env.PLAN}\`\`\`
</details>
*Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`;

github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})

- name: Terraform Plan Status
if: steps.plan.outcome == 'failure'
run: exit 1
84 changes: 84 additions & 0 deletions .github/workflows/terraform_manual_apply.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: 'NordCloud'

on:
workflow_dispatch:
inputs:
createUpdateEnv:
description: 'Apply the env'
required: true
default: 'false'

jobs:
terraform:
name: "notejam-azure-apply"
runs-on: ubuntu-latest

env:
ARM_CLIENT_ID: ${{ secrets.TF_VAR_ARM_CLIENT_ID }}
ARM_CLIENT_SECRET: ${{ secrets.TF_VAR_ARM_CLIENT_SECRET }}
ARM_SUBSCRIPTION_ID: ${{ secrets.TF_VAR_ARM_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.TF_VAR_ARM_TENANT_ID }}

# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
working-directory: "terraform/notejam-tf"

steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2

# Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}

# Checks that all Terraform configuration files adhere to a canonical format
- name: Terraform Format
id: fmt
run: terraform fmt -check
continue-on-error: true

# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
id: init
run: terraform init

# Generates an execution plan for Terraform
- name: Terraform Plan
id: plan
if: github.event_name == 'pull_request'
run: terraform plan -no-color
continue-on-error: false

- uses: actions/github-script@0.9.0
if: github.event_name == 'pull_request'
env:
PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\`
#### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\`
#### Terraform Plan 📖\`${{ steps.plan.outcome }}\`
<details><summary>Show Plan</summary>
\`\`\`${process.env.PLAN}\`\`\`
</details>
*Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`;

github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})

- name: Terraform Plan Status
if: steps.plan.outcome == 'failure'
run: exit 1

- name: Terraform Apply
if: github.ref == 'refs/heads/master' && github.event.inputs.createUpdateEnv == 'true'
run: terraform apply -auto-approve
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,11 @@ bower_components
.bak


terraform/notejam-tf/Readme.txt
.terraform/**
*.backup
*.exte
.terraform
terraform/notejam-tf/terraform.tfstate
terraform/notejam-tf/.terraform.lock.hcl
terraform/terraform.tfstate
3 changes: 0 additions & 3 deletions spring/.gitignore

This file was deleted.

103 changes: 0 additions & 103 deletions spring/README.rst

This file was deleted.

Loading