Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from BillReyor/main
Browse files Browse the repository at this point in the history
Devcontainer for optimized auto configuration of code space
  • Loading branch information
rpigu-i authored Jul 9, 2024
2 parents 7d6bf8d + 48913d2 commit d561de2
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/universal
{
"name": "Default Linux Universal",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/universal:2-linux",
"customizations": {
"vscode": {
"extensions": [
"GitHub.copilot",
"GitHub.copilot-chat",
"vscjava.vscode-java-pack",
"sonarsource.sonarlint-vscode",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-python.python"
]
}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
//"postCreateCommand": "chmod +x .devcontainer/setup.sh && /bin/bash .devcontainer/setup.sh",
//"remoteUser": "vscode"
}
22 changes: 22 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# Install SonarCloud CLI
npm install -g sonarsource/sonar-scanner-cli

# Install GitHub CodeQL CLI
gh extension install github/gh-codeql

# Install git-secrets
git clone https://github.com/awslabs/git-secrets.git /tmp/git-secrets
cd /tmp/git-secrets
sudo make install

# Install Talisman
npm install -g talisman

# Install BFG Repo-Cleaner
wget -O /usr/local/bin/bfg https://repo1.maven.org/maven2/com/madgag/bfg/1.13.0/bfg-1.13.0.jar
chmod +x /usr/local/bin/bfg

# Clean up
rm -rf /tmp/git-secrets

0 comments on commit d561de2

Please sign in to comment.