1
0
Форкнуть 0
This commit is contained in:
Arnaud Lheureux 2022-03-21 02:37:50 +00:00
Родитель ea7fd0855a
Коммит 49a1f63151
4 изменённых файлов: 30 добавлений и 31 удалений

Просмотреть файл

@ -1,17 +1,16 @@
{
"name": "CAF Starter Terraform landing zones",
"name": "CAF App Accelerator",
// Update the 'dockerComposeFile' list if you have more compose files or use different names.
"dockerComposeFile": "docker-compose.yml",
// Container user to use in VSCode Online and GitHub Codespaces
"containerUser" : "vscode",
"remoteUser" : "vscode",
// The 'service' property is the name of the service for the container that VS Code should
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
"service": "rover",
// Container user to use in VSCode Online and GitHub Codespaces
"remoteUser": "vscode",
// The optional 'workspaceFolder' property is the path VS Code should open by default when
// connected. This is typically a volume mount in .devcontainer/docker-compose.yml
"workspaceFolder": "/tf/caf",
@ -20,9 +19,8 @@
// You can edit these settings after create using File > Preferences > Settings > Remote.
"settings": {
"files.eol": "\n",
"terminal.integrated.shell.linux": "/bin/bash",
"editor.tabSize": 2,
"terminal.integrated.scrollback": 8000,
"terminal.integrated.scrollback": 32000,
},
// Uncomment the next line if you want start specific services in your Docker Compose config.
@ -32,7 +30,8 @@
// "shutdownAction": "none",
// Uncomment the next line to run commands after the container is created.
"postCreateCommand": "sudo cp -R /tmp/.ssh-localhost/* ~/.ssh && sudo chown -R $(whoami):$(whoami) /tf/caf && sudo chmod 400 ~/.ssh/* && git config --global core.editor vi && pre-commit install && pre-commit autoupdate",
"postCreateCommand": "sudo cp -R /tmp/.ssh-localhost/* ~/.ssh && sudo chown -R $(whoami):$(whoami) /tf/caf ~/.ssh && sudo chmod 400 ~/.ssh/* && git config --global core.editor vi && pre-commit install && pre-commit autoupdate",
// Add the IDs of extensions you want installed when the container is created in the array below.
"extensions": [
"4ops.terraform",

Просмотреть файл

@ -6,7 +6,7 @@
version: '3.7'
services:
rover:
image: aztfmod/rover:1.0.9-2111.0103
image: aztfmod/rover:1.1.6-2202.2503
user: vscode
labels:

Просмотреть файл

@ -1,15 +1,15 @@
# See http://pre-commit.com for more information
# See http://pre-commit.com/hooks.html for more hooks
repos:
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.50.0
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.64.0
hooks:
- id: terraform_fmt
# - id: terraform_docs
# - id: terraform_tflint
# - id: terraform_tfsec
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace

36
.vscode/settings.json поставляемый
Просмотреть файл

@ -1,25 +1,25 @@
{
"files.eol": "\n",
"editor.tabSize": 2,
"terminal.integrated.defaultProfile.linux": "caf (zsh)",
"terminal.integrated.scrollback": 64000,
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash"
"caf (rover on docker)": {
"path": "zsh",
"args": [
"-c",
"docker compose -f ./.devcontainer/docker-compose.yml run -e ROVER_RUNNER=true --rm -w /tf/caf rover_ssh"],
"overrideName": true
},
"zsh": {
"path": "zsh"
},
"fish": {
"path": "fish"
},
"tmux": {
"path": "tmux",
"icon": "terminal-tmux"
},
"pwsh": {
"path": "pwsh",
"icon": "terminal-powershell"
"caf (zsh)": {
"path": "zsh",
"overrideName": true
}
},
"editor.tabSize": 2,
"terminal.integrated.scrollback": 8000,
// "terminal.integrated.cwd": "/tf/caf",
"markdownlint.config": {
"MD028": false,
"MD025": {
"front_matter_title": ""
}
}
}