Skip to content

Commit

Permalink
Merge pull request #40 from paul-gilber/install-packages-via-features
Browse files Browse the repository at this point in the history
Install packages via features
  • Loading branch information
paul-gilber authored Nov 5, 2023
2 parents e4473ec + 7b7fbc6 commit bce016c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
10 changes: 10 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
},
// Install Homebrew: https://github.com/meaningful-ooo/devcontainer-features/tree/main/src/homebrew
"ghcr.io/meaningful-ooo/devcontainer-features/homebrew:2": {},
// Install Homebrew Package: https://github.com/devcontainers-contrib/features/tree/main/src/homebrew-package
"ghcr.io/devcontainers-contrib/features/homebrew-package:1": {},
// Install MySQL (via Homebrew): http://github.com/devcontainers-contrib/features/tree/main/src/mysql-homebrew
"ghcr.io/devcontainers-contrib/features/mysql-homebrew:1": {},
// Install Podman (via Homebrew): http://github.com/devcontainers-contrib/features/tree/main/src/podman-homebrew
"ghcr.io/devcontainers-contrib/features/podman-homebrew:1": {},
// Install Trivy: https://github.com/itsmechlark/features/tree/main/src/trivy
"ghcr.io/itsmechlark/features/trivy:1": {},
// Install Container Structure Tests: https://github.com/schlich/cst-devcontainer-feature
"ghcr.io/schlich/cst-devcontainer-feature/container-structure-test:1": {},
// Install jq, yq, gojq, xq, jaq : https://github.com/eitsupi/devcontainer-features/tree/main/src/jq-likes
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {
"jqVersion": "latest",
Expand Down
24 changes: 2 additions & 22 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,5 @@
# Specify a folder for hooks (only available for git version >= 2.9)
git config core.hooksPath .githooks

# Installation of MySQL (via Homebrew) feature fails.
# Install MySQL after container creation.
# Failed feature: ghcr.io/devcontainers-contrib/features/mysql-homebrew:1
brew install mysql

# No available feature for installing Container Structure Test https://github.com/GoogleContainerTools/container-structure-test
brew install container-structure-test

# Installation of Podman (via Homebrew) feature fails.
# Install Podman after container creation.
# Failed feature: ghcr.io/devcontainers-contrib/features/podman-homebrew:1
brew install podman

# No available feature for installing Podman Compose: https://github.com/containers/podman-compose
pip3 install podman-compose

# No available feature for installing Aqua Security Trivy: https://github.com/aquasecurity/trivy
brew install trivy

# No available feature for installing regclient: https://github.com/regclient/regclient
curl -L https://github.com/regclient/regclient/releases/latest/download/regctl-linux-amd64 > ${HOME}/.local/bin/regctl
chmod 755 ${HOME}/.local/bin/regctl
# Auto-create missing upstream branch
git config push.autoSetupRemote true

0 comments on commit bce016c

Please sign in to comment.