This commit is contained in:
Arnaud Lheureux 2021-12-08 06:35:16 +00:00
Родитель 1968ecb6e7
Коммит 9d76097540
3 изменённых файлов: 57 добавлений и 5 удалений

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

@ -2,7 +2,7 @@
# See http://pre-commit.com/hooks.html for more hooks
repos:
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.50.0
rev: v1.59.0
hooks:
- id: terraform_fmt
- id: terraform_docs

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

@ -1,8 +1,23 @@
{
"files.eol": "\n",
"editor.tabSize": 2,
"terminal.integrated.defaultProfile.linux": "caf (zsh)",
"terminal.integrated.scrollback": 32000,
"terminal.integrated.profiles.linux": {
"caf (rover on docker)": {
"path": "docker-compose",
"args": ["-f", "rover_on_ssh_host.yml", "run", "-e", "ROVER_RUNNER=true", "--rm", "-w", "/tf/caf" ,"rover", "/usr/bin/zsh"],
"overrideName": true
},
"caf (zsh)": {
"path": "zsh",
"overrideName": true
}
},
"markdownlint.config": {
"MD028": false,
"MD025": {
"front_matter_title": ""
}
"MD028": false,
"MD025": {
"front_matter_title": ""
}
}
}

37
rover_on_ssh_host.yml Normal file
Просмотреть файл

@ -0,0 +1,37 @@
---
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
#
# Docker compose to open the rover in remote ssh shells
#
version: '3.7'
services:
rover:
image: aztfmod/rover:1.0.9-2111.0103
user: vscode
labels:
- "caf=Azure CAF"
volumes:
# This is where VS Code should expect to find your project's source code
# and the value of "workspaceFolder" in .devcontainer/devcontainer.json
- .:/tf/caf
- volume-caf-vscode:/home/vscode
- volume-caf-vscode-bashhistory:/commandhistory
- ~/.ssh:/tmp/.ssh-localhost:ro
- /var/run/docker.sock:/var/run/docker.sock
# Overrides default command so things don't shut down after the process ends.
command: /bin/sh -c "while sleep 1000; do :; done"
volumes:
volume-caf-vscode:
labels:
- "caf=Azure CAF"
volume-caf-vscode-bashhistory: