Skip to content

Commit 60c893d

Browse files
authored
Merge pull request #416 from Automattic/write-feature-settings
feat: store feature settings
2 parents 1fcb158 + 67f1f12 commit 60c893d

File tree

68 files changed

+164
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+164
-25
lines changed

features/src/base/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "base",
33
"name": "VIP Codespaces Base",
4-
"version": "1.2.4",
4+
"version": "1.3.0",
55
"description": "Base feature for VIP Codespaces",
66
"documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/base",
77
"containerEnv": {

features/src/base/install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ install -d -m 0755 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" "${HOME_DIR}/.local
2222
install -m 0644 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" .bashrc "${HOME_DIR}/.bashrc"
2323
install -m 0644 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" 001-welcome.sh "${HOME_DIR}/.local/share/vip-codespaces/login/001-welcome.sh"
2424

25+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/base
26+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/base/
27+
2528
# shellcheck source=/dev/null
2629
. /etc/os-release
2730

features/src/cron-control-runner/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "cron-control-runner",
33
"name": "Cron Control Runner",
4-
"version": "1.0.1",
4+
"version": "1.1.0",
55
"description": "Installs Cron Control Runner into the Dev Environment",
66
"options": {
77
"enabled": {

features/src/cron-control-runner/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ fi
1616
: "${WP_CLI_PATH=/usr/local/bin/wp}"
1717
: "${INSTALL_RUNIT_SERVICE:=true}"
1818

19+
1920
if [ "${ENABLED}" = 'true' ]; then
2021
echo '(*) Installing Cron Control Runner...'
2122

23+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/cron-control-runner
24+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/cron-control-runner/
25+
2226
# shellcheck source=/dev/null
2327
. /etc/os-release
2428

features/src/cron/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "cron",
33
"name": "Cron",
44
"description": "Enables cron in the Dev Environment",
5-
"version": "1.2.0",
5+
"version": "1.3.0",
66
"options": {
77
"enabled": {
88
"type": "boolean",

features/src/cron/install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ fi
1616
if [ "${ENABLED}" = 'true' ]; then
1717
echo '(*) Installing cron...'
1818

19+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/cron
20+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/cron/
21+
1922
# shellcheck source=/dev/null
2023
. /etc/os-release
2124
: "${ID:=}"

features/src/desktop-lite/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "desktop-lite",
33
"name": "Desktop Lite",
44
"description": "A lightweight desktop environment for development.",
5-
"version": "1.0.1",
5+
"version": "1.1.0",
66
"documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/desktop-lite",
77
"containerEnv": {
88
"DISPLAY": "127.0.0.1:0"

features/src/desktop-lite/install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ fi
1818
if [ "${ENABLED}" = "true" ]; then
1919
echo '(*) Installing Lightweight Desktop...'
2020

21+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/desktop-lite
22+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/desktop-lite/
23+
2124
# shellcheck source=/dev/null
2225
. /etc/os-release
2326

features/src/dev-tools/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dev-tools",
33
"name": "Dev Tools",
4-
"version": "1.0.3",
4+
"version": "1.1.0",
55
"description": "Installs Development tools into the Dev Environment",
66
"documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/dev-tools",
77
"installsAfter": [

features/src/dev-tools/install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ fi
1313

1414
echo '(*) Installing Dev Tools...'
1515

16+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/dev-tools
17+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/dev-tools/
18+
1619
install -d -D -m 0755 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" /wp/wp-content/mu-plugins
1720
install -m 0644 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" dev-env-plugin.php /wp/wp-content/mu-plugins/dev-env-plugin.php
1821

0 commit comments

Comments
 (0)