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

January 2022 Update #234

Merged
merged 46 commits into from
Jan 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
6b9802d
Initial update for multi platform
arnaudlh Dec 6, 2021
0e9d6e5
Merge branch 'master' into AL-M1
arnaudlh Dec 17, 2021
003e9fd
fix state commands
hassanhassoun Jan 8, 2022
2327741
Update using buildx bake
arnaudlh Jan 12, 2022
43cfd09
Update start command
arnaudlh Jan 12, 2022
2be891c
Update docler compose
arnaudlh Jan 12, 2022
e67e38a
Update builds
arnaudlh Jan 13, 2022
d0b626a
Update builds
arnaudlh Jan 13, 2022
261dc4e
Update builds
arnaudlh Jan 13, 2022
cc80970
Adding docker
arnaudlh Jan 13, 2022
6f3c4df
Typo
arnaudlh Jan 13, 2022
91ebbbd
Update workflow
arnaudlh Jan 13, 2022
105a79f
Missing builder
arnaudlh Jan 13, 2022
ca7965d
Updating dependabot
arnaudlh Jan 13, 2022
2144fdf
Update config layers
arnaudlh Jan 13, 2022
ed8857a
Adding builders
arnaudlh Jan 13, 2022
dd84517
Add error handling - Fix make local on MacOS M1
Jan 14, 2022
0511236
Add profile for local buildx
Jan 14, 2022
f0ecdea
Optimize to reduce layers and size
Jan 14, 2022
b14954e
Update zsh
LaurentLesle Jan 14, 2022
efb9b6f
Various fixes
LaurentLesle Jan 15, 2022
daf883c
Move agent build to buildx
LaurentLesle Jan 17, 2022
162d8f3
Fix agent versions
LaurentLesle Jan 17, 2022
14bde11
Fix ci
LaurentLesle Jan 17, 2022
2360a2d
Add version for versionTfLint
LaurentLesle Jan 17, 2022
4c1086f
Fix a versioning path
LaurentLesle Jan 17, 2022
04ceb37
Add missing ARG
LaurentLesle Jan 17, 2022
6306316
Add debug for ci
LaurentLesle Jan 17, 2022
e1c85b1
Update URL path
LaurentLesle Jan 17, 2022
c449677
URL fix
LaurentLesle Jan 17, 2022
87d244d
Update github agent to 2.286.1 and arm64 support
LaurentLesle Jan 17, 2022
fd36ed3
Fix Github agent on ARM64
LaurentLesle Jan 17, 2022
ba2ccb0
Update job
LaurentLesle Jan 17, 2022
edd1217
Fixes
LaurentLesle Jan 17, 2022
f7bceab
Update ci
LaurentLesle Jan 17, 2022
b38f04c
Update ci
LaurentLesle Jan 17, 2022
621d912
Update
LaurentLesle Jan 17, 2022
98adf0e
Update runs-on
LaurentLesle Jan 18, 2022
caee908
Add ARM64 to AZDO and Gitlab
LaurentLesle Jan 18, 2022
5ce8e49
Merge pull request #233 from hassanhassoun/BUGFIX/hh_tf_state_cmds
LaurentLesle Jan 18, 2022
e39cd28
Adding packer pinned version, removing tflint rule set version, updat…
arnaudlh Jan 18, 2022
cb71a5e
Add support for caf_environment
LaurentLesle Jan 18, 2022
f03934b
Adding initial documentation for TFC
arnaudlh Jan 19, 2022
d4101ef
Update rover
LaurentLesle Jan 20, 2022
1ea7e14
Update github workflows
arnaudlh Jan 20, 2022
db255e8
Remove comments
arnaudlh Jan 20, 2022
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
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"files.eol": "\n",
"terminal.integrated.defaultProfile.linux": "zsh",
"editor.tabSize": 2,
"terminal.integrated.scrollback": 32000,
"terminal.integrated.scrollback": 64000,
},
// Uncomment the next line if you want start specific services in your Docker Compose config.
// "runServices": [],
Expand All @@ -25,7 +25,7 @@
// Uncomment the next line to run commands after the container is created.
//"postCreateCommand": "cp -R /tmp/.ssh-localhost/* ~/.ssh && sudo chmod 600 ~/.ssh/* && sudo chown -R $(whoami) /tf/caf && git config --global core.editor vim && 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",
"postStartCommand": "sudo cp -f /tf/rover/version.txt /tf/caf/scripts/version.txt && sudo rm -rf /tf/rover && sudo ln -s /tf/caf/scripts /tf/rover",
"postStartCommand": "sudo chmod 666 /var/run/docker.sock && cp -f /tf/rover/version.txt /tf/caf/scripts/version.txt && sudo rm -rf /tf/rover && sudo ln -s /tf/caf/scripts /tf/rover",
// Add the IDs of extensions you want installed when the container is created in the array below.
"extensions": [
"4ops.terraform",
Expand Down
21 changes: 20 additions & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
version: "3.7"
services:
rover:
image: aztfmod/rover:1.0.11-2112.0723
image: aztfmod/rover-preview:1.1.3-2201.190325
user: vscode

labels:
Expand All @@ -28,6 +28,25 @@ services:
# Overrides default command so things don't shut down after the process ends.
command: /bin/sh -c "while sleep 1000; do :; done"

rover_ssh:
image: aztfmod/rover-preview:1.1.3-2201.190325
user: vscode

labels:
- "caf=Azure CAF"

volumes:
- ..:/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

environment:
- HISTFILE=/commandhistory/.bash_history
- HISTSIZE=1000

volumes:
volume-caf-vscode:
labels:
Expand Down
15 changes: 0 additions & 15 deletions .env

This file was deleted.

2 changes: 1 addition & 1 deletion .env.terraform
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
0.15.5
1.0.11
1.1.0-rc1
1.1.3
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ updates:
versions:
- 1.15.8
- 1.16.0
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
29 changes: 15 additions & 14 deletions .github/workflows/rover-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
# - name: Docker Hub Login
# uses: Azure/docker-login@v1
# with:
# # Container registry username
# username: aztfmod
# # Container registry password
# password: ${{ secrets.docker_registry_password }}
# # Container registry server url
# login-server: https://index.docker.io/v1/
# - name: Set the rover version
# run: |
# echo "docker_tag=$(date +"%g%m.%d%H")" >> $GITHUB_ENV
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Docker Hub Login
uses: docker/login-action@v1
with:
username: aztfmod
password: ${{ secrets.docker_registry_password }}
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build the rover
run: |
set -e
sudo docker login -u "aztfmod" -p ${{ secrets.docker_registry_password }}
# Build the rover base image
make dev

Expand Down
29 changes: 15 additions & 14 deletions .github/workflows/rover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
# - name: Docker Hub Login
# uses: Azure/docker-login@v1
# with:
# # Container registry username
# username: aztfmod
# # Container registry password
# password: ${{ secrets.docker_registry_password }}
# # Container registry server url
# login-server: https://index.docker.io/v1/
# - name: Set the rover version
# run: |
# echo "docker_tag=$(date +"%g%m.%d%H")" >> $GITHUB_ENV
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Docker Hub Login
uses: docker/login-action@v1
with:
username: aztfmod
password: ${{ secrets.docker_registry_password }}
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build the rover
run: |
set -e
sudo docker login -u "aztfmod" -p ${{ secrets.docker_registry_password }}
# Build the rover base image
make github

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
hooks:
- id: docker-compose-check
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.1.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
Expand Down
18 changes: 14 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,26 @@
"files.eol": "\n",
"terminal.integrated.defaultProfile.linux": "caf (zsh)",
"editor.tabSize": 2,
"terminal.integrated.scrollback": 32000,
"terminal.integrated.scrollback": 64000,
"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"],

// Do not try to run this profile from a remote:dev_container
"caf (rover on dockerd)": {
"path": "zsh",
"args": [
"-c",
"docker compose -f ./.devcontainer/docker-compose.yml run -e ROVER_RUNNER=true --rm -w /tf/caf rover_ssh"],
"overrideName": true
},
"caf (zsh)": {
"path": "zsh",
"overrideName": true
}
},
"markdownlint.config": {
"MD028": false,
"MD025": {
"front_matter_title": ""
}
}
}
Loading