Skip to content

Commit

Permalink
feat(Tools): Adds the Subversion client to the Dev Container (#35)
Browse files Browse the repository at this point in the history
- Fixes #31
- Adds the local Subversion client support.
  • Loading branch information
timnolte authored Jan 17, 2024
1 parent 6a4266a commit 2d6fd45
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"./local-features/subversion": "latest",
"./local-features/wp-cli": "latest",
"./local-features/php-cli-xdebug": "latest"
},
Expand All @@ -28,6 +29,7 @@
"ghcr.io/devcontainers/features/docker-in-docker",
"ghcr.io/devcontainers/features/git",
"ghcr.io/devcontainers/features/github-cli",
"./local-features/subversion",
"./local-features/wp-cli",
"./local-features/php-cli-xdebug"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Id": "subversion",
"name": "Install the Subversion CLI",
"install": {
"app": "",
"file": "install.sh"
}
}
14 changes: 14 additions & 0 deletions .devcontainer/local-features/subversion/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -eux

export DEBIAN_FRONTEND=noninteractive

# Install the Subversion CLI.
if [ ! -f /usr/bin/svn ]; then
echo "Installing Subversion CLI..."
sudo apt-get update -y --no-install-recommends
sudo apt-get install -y --no-install-recommends subversion
fi

echo "Done!"

0 comments on commit 2d6fd45

Please sign in to comment.