Skip to content

Commit

Permalink
Switch devcontainer/github codespaces to use apt install (ddev#4612) …
Browse files Browse the repository at this point in the history
…[skip ci]
  • Loading branch information
rfay authored Mar 4, 2023
1 parent 0cb1f20 commit f41d67a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Install DDEV for Codespaces",
"id": "install-ddev",
"version": "0.2.0",
"version": "0.3.0",
"description": "DDEV feature for Codespaces/devcontainers"
}
15 changes: 3 additions & 12 deletions .github/devcontainers/src/install-ddev/install.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
#!/bin/bash
set -eu -o pipefail

sudo apt update >/dev/null && sudo apt install -y xdg-utils >/dev/null
curl -fsSL https://apt.fury.io/drud/gpg.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/ddev.gpg > /dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/ddev.gpg] https://apt.fury.io/drud/ * *" | sudo tee /etc/apt/sources.list.d/ddev.list
sudo apt update >/dev/null && sudo apt install -y ddev xdg-utils >/dev/null

# This will eventually move to a simple apt install
sudo apt remove ddev >/dev/null 2>&1 || true
DDEV_URL=https://nightly.link/drud/ddev/workflows/master-build/master/ddev-linux-amd64.zip
echo "Installing DDEV"

cd /tmp && curl -s -L -O ${DDEV_URL}
zipball=$(basename ${DDEV_URL})
unzip ${zipball}
chmod +x ddev && sudo mv ddev /usr/local/bin

rm -rf ${zipball} /tmp/tempproject

0 comments on commit f41d67a

Please sign in to comment.