diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..74c800d3fc --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,24 @@ +{ + "name": "retina", + "image": "mcr.microsoft.com/devcontainers/base:jammy", + "features": { + "ghcr.io/devcontainers/features/common-utils:2": {}, + "ghcr.io/devcontainers/features/docker-in-docker:2": {}, + "ghcr.io/devcontainers/features/github-cli:1": {}, + "ghcr.io/devcontainers/features/go:1": {}, + "ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {}, + "ghcr.io/devcontainers-contrib/features/kind:1": {} + }, + "postCreateCommand": "bash .devcontainer/installMoreTools.sh && kind create cluster", + "customizations": { + "vscode": { + "extensions": [ + "esbenp.prettier-vscode", + "golang.go", + "mutantdino.resourcemonitor", + "ms-vscode.makefile-tools", + "ms-kubernetes-tools.vscode-kubernetes-tools" + ] + } + } +} diff --git a/.devcontainer/installMoreTools.sh b/.devcontainer/installMoreTools.sh new file mode 100755 index 0000000000..8d8fc3b369 --- /dev/null +++ b/.devcontainer/installMoreTools.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# Install the required tools and dependencies +sudo apt-get update && sudo apt-get install -y lsb-release wget software-properties-common gnupg clang-14 lldb-14 lld-14 clangd-14 man-db + +# Install LLVM 14 +export LLVM_VERSION=14 +curl -sL https://apt.llvm.org/llvm.sh | sudo bash -s "$LLVM_VERSION" diff --git a/README.md b/README.md index 0c2aa518ed..27e191d2db 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Retina +[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=746962176) + [![goreport][goreport-img]][goreport] ![GitHub release][release-img] [![retina-publish][godoc-badge]][godoc] ![license] [![retina-test][retina-test-image-badge]][retina-test-image] [![retinash][retinash-badge]][retinash] [![retina-publish][retina-publish-badge]][retina-publish] ![retina-codeql-img][retina-codeql-badge] ![retina-golangci-lint-img][retina-golangci-lint-badge]