Skip to content

Commit

Permalink
feat: adding devcontainer config (#79)
Browse files Browse the repository at this point in the history
Adding Dev Container config and "Open in Codespaces" button at the top
of the README.
  • Loading branch information
pauldotyu authored Mar 20, 2024
1 parent debc188 commit e5f6b8e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
8 changes: 8 additions & 0 deletions .devcontainer/installMoreTools.sh
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit e5f6b8e

Please sign in to comment.