Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
84 changes: 41 additions & 43 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,41 @@
{
"name": "Kadena Indexer",
"build": {
"dockerfile": "Dockerfile",
"args": {
"NODE_VERSION": "18",
"INSTALL_AWS_CLI": "true",
"INSTALL_TERRAFORM": "true",
"INSTALL_DOCKER_CLI": "true",
"TERRAFORM_VERSION": "1.7.3"
}
},
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
],
"forwardPorts": [3000, 9090, 3001],
"postCreateCommand": "yarn install",
"remoteUser": "node",
"customizations": {
"vscode": {
"settings": {
"editor.tabSize": 2,
"eslint.validate": ["javascript", "typescript"],
"prettier.enable": true,
"editor.formatOnSave": true,
"prettier.singleQuote": false,
"terminal.integrated.shell.linux": "/bin/bash",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/node_modules": true
}
},
"extensions": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"ms-azuretools.vscode-docker",
"hashicorp.terraform"
]
}
}
}
{
"name": "Kadena Indexer",
"build": {
"dockerfile": "Dockerfile",
"args": {
"NODE_VERSION": "18",
"INSTALL_AWS_CLI": "true",
"INSTALL_TERRAFORM": "true",
"INSTALL_DOCKER_CLI": "true",
"TERRAFORM_VERSION": "1.7.3"
}
},
"mounts": ["source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"],
"forwardPorts": [3000, 9090, 3001],
"postCreateCommand": "yarn install",
"remoteUser": "node",
"customizations": {
"vscode": {
"settings": {
"editor.tabSize": 2,
"eslint.validate": ["javascript", "typescript"],
"prettier.enable": true,
"editor.formatOnSave": true,
"prettier.singleQuote": false,
"terminal.integrated.shell.linux": "/bin/bash",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/node_modules": true
}
},
"extensions": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"ms-azuretools.vscode-docker",
"hashicorp.terraform"
]
}
}
}
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
name: Bug Report
about: Create a bug report to help us improve
title: "fix: "
title: 'fix: '
labels: bug
assignees: ""
assignees: ''
---

## Bug Report

#### Version:

- Release: v1.0.0
- Tag: release-1.0.0
- Commit: abc123f
Expand All @@ -23,4 +24,3 @@ assignees: ""

<!-- Please explain the steps required to duplicate the issue,
especially if you can provide a sample application. -->

4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Feature Request
about: Suggest an idea or enhancement for this project
title: "feat:"
title: 'feat:'
labels: enhancement
assignees: ""
assignees: ''
---

## Feature Request
Expand Down
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/refactor_request.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Refactor Request
about: Suggest the refactoring for this project
title: "refactor:"
title: 'refactor:'
labels: enhancement
assignees: ""
assignees: ''
---

## Refactor Request
Expand All @@ -18,4 +18,3 @@ Please include if your refactor request is related to a problem. -->
<!-- List any other information that is relevant to your issue. Stack traces,
related issues, suggestions on how to add, use case, Stack Overflow links,
forum links, screenshots, OS if applicable, etc. -->

62 changes: 31 additions & 31 deletions .github/workflows/indexer.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: "Indexer Build"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: "18"
cache: "yarn"
- name: Install dependencies
run: yarn install
working-directory: ./indexer
- name: Build
run: tsc
working-directory: ./indexer
name: 'Indexer Build'

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'yarn'

- name: Install dependencies
run: yarn install
working-directory: ./indexer

- name: Build
run: tsc
working-directory: ./indexer
119 changes: 59 additions & 60 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,59 @@
name: "Terraform Deployment"

on:
workflow_dispatch:

jobs:
terraform-plan:
runs-on: ubuntu-latest
env:
TF_VAR_AWS_ACCESS_KEY_ID: ${{ vars.TF_VAR_AWS_ACCESS_KEY_ID }}
TF_VAR_AWS_SECRET_ACCESS_KEY: ${{ vars.TF_VAR_AWS_SECRET_ACCESS_KEY }}
TF_VAR_AWS_ACCOUNT_ID: ${{ vars.TF_VAR_AWS_ACCOUNT_ID }}
TF_VAR_AWS_USER_NAME: ${{ vars.TF_VAR_AWS_USER_NAME }}
TF_VAR_AWS_DB_USERNAME: ${{ vars.TF_VAR_AWS_DB_USERNAME }}
TF_VAR_AWS_DB_PASSWORD: ${{ vars.TF_VAR_AWS_DB_PASSWORD }}
TF_VAR_db_password: ${{ vars.TF_VAR_db_password }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.7.3
terraform_wrapper: false

- name: Terraform Init
run: terraform init
working-directory: ./terraform

- name: Terraform Plan
run: terraform plan -out=tfplan
working-directory: ./terraform

- name: Upload Terraform Plan
uses: actions/upload-artifact@v2
with:
name: terraform-plan
path: ./terraform/tfplan

terraform-apply:
needs: terraform-plan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Terraform
uses: hashicorp/setup-terraform@v1

- name: Download Terraform Plan
uses: actions/download-artifact@v2
with:
name: terraform-plan
path: ./terraform

# - name: Terraform Apply
# run: terraform apply tfplan
# working-directory: ./terraform
name: 'Terraform Deployment'

on:
workflow_dispatch:

jobs:
terraform-plan:
runs-on: ubuntu-latest
env:
TF_VAR_AWS_ACCESS_KEY_ID: ${{ vars.TF_VAR_AWS_ACCESS_KEY_ID }}
TF_VAR_AWS_SECRET_ACCESS_KEY: ${{ vars.TF_VAR_AWS_SECRET_ACCESS_KEY }}
TF_VAR_AWS_ACCOUNT_ID: ${{ vars.TF_VAR_AWS_ACCOUNT_ID }}
TF_VAR_AWS_USER_NAME: ${{ vars.TF_VAR_AWS_USER_NAME }}
TF_VAR_AWS_DB_USERNAME: ${{ vars.TF_VAR_AWS_DB_USERNAME }}
TF_VAR_AWS_DB_PASSWORD: ${{ vars.TF_VAR_AWS_DB_PASSWORD }}
TF_VAR_db_password: ${{ vars.TF_VAR_db_password }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.7.3
terraform_wrapper: false

- name: Terraform Init
run: terraform init
working-directory: ./terraform

- name: Terraform Plan
run: terraform plan -out=tfplan
working-directory: ./terraform

- name: Upload Terraform Plan
uses: actions/upload-artifact@v2
with:
name: terraform-plan
path: ./terraform/tfplan

terraform-apply:
needs: terraform-plan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Terraform
uses: hashicorp/setup-terraform@v1

- name: Download Terraform Plan
uses: actions/download-artifact@v2
with:
name: terraform-plan
path: ./terraform
# - name: Terraform Apply
# run: terraform apply tfplan
# working-directory: ./terraform
Loading