Skip to content

jharrington22/ARO-HCP

 
 

Repository files navigation

ARO-HCP

Description

The RP for the ARO-HCP project.

Development setup

The setup is based on VSCode Remote Containers. See here for more information.

The predefined container is in .devcontainer with a custom postCreate.sh. To use it, please install the Remote - Containers extension in VSCode.

The VSCode will have the following extensions installed:

During the container setup, it also install golangci-lint, which is defacto standard for linting go.

On top of that, is sets up the Bicep CLI and the Azure CLI with Bicep extension to simplify development of infra code.

Finally, the container also contains the nodejs and sets up the typespec which is needed for the ARM contract development, as it is now mandatory to have the typespec in the ARM templates. When the container is created, there will be package.json and package-lock.json files in the root of the project, which are articaft of the typespec installation. They are ignored for the git, as all version pinning happens in the devcontainer.json file. To enable the typespec extensions, which is not yet part of official extensions, once the vscode opens and the devcontainer is ready, you need to run the following command

tsp code install

Most importantly, the container is set up to use the same user as the host machine, so you can use the same git config and ssh keys. It is implemented as host mount in the .devcontainer/devcontainer.json file.

"mounts": [
    "source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig,type=bind,consistency=cached"
],

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 73.0%
  • Bicep 14.9%
  • Shell 7.7%
  • Makefile 4.4%