Skip to content

Commit f21bf9a

Browse files
committed
feat: store feature settings
1 parent 1fcb158 commit f21bf9a

Some content is hidden

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

49 files changed

+102
-24
lines changed

features/src/base/devcontainer-feature.json

+1-1
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

+3
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

+1-1
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

+4
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

+1-1
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

+3
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

+1-1
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

+3
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

+1-1
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

+3
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

features/src/elasticsearch/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "elasticsearch",
33
"name": "Elasticsearch",
44
"description": "Sets up Elasticsearch into the Dev Environment",
5-
"version": "1.2.5",
5+
"version": "1.3.0",
66
"containerEnv": {
77
"ES_TMPDIR": "/usr/share/elasticsearch/tmp"
88
},

features/src/elasticsearch/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ ES_VERSION="${VERSION:-7.17.28}"
1919
if [ "${ENABLED}" = "true" ]; then
2020
echo '(*) Installing Elasticsearch...'
2121

22+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/elasticsearch
23+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/elasticsearch/
24+
2225
# shellcheck source=/dev/null
2326
. /etc/os-release
2427
: "${ID:=}"

features/src/entrypoints/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"id": "entrypoints",
33
"name": "Entrypoint Runner",
44
"description": "Runs entrypoint scripts for images without runit",
5-
"version": "1.0.0",
5+
"version": "1.1.0",
66
"entrypoint": "/usr/local/bin/entrypoint-runner"
77
}

features/src/entrypoints/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ if [ "$(id -u || true)" -ne 0 ]; then
77
exit 1
88
fi
99

10+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/entrypoints
11+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/entrypoints/
12+
1013
install -D -d -m 0755 -o root -g root /var/lib/entrypoint.d
1114
install -m 0755 -o root -g root entrypoint-runner /usr/local/bin/entrypoint-runner

features/src/mailpit/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "mailpit",
33
"name": "Mailpit",
44
"description": "Sets up Mailpit into the Dev Environment",
5-
"version": "1.2.0",
5+
"version": "1.3.0",
66
"options": {
77
"enabled": {
88
"type": "boolean",

features/src/mailpit/install.sh

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

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

features/src/mariadb/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "MariaDB",
33
"id": "mariadb",
4-
"version": "1.3.0",
4+
"version": "1.4.0",
55
"description": "Sets up MariaDB into the Dev Environment",
66
"options": {
77
"installDatabaseToWorkspaces": {

features/src/mariadb/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ echo '(*) Installing MariaDB...'
1616
: "${INSTALL_RUNIT_SERVICE:=true}"
1717
: "${EXTRA_OPTIONS:=""}"
1818

19+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/mariadb
20+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/mariadb/
21+
1922
if [ "${_REMOTE_USER}" = "root" ]; then
2023
MARIADB_USER=mysql
2124
INSTALLDATABASETOWORKSPACES=false

features/src/mc/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "mc",
33
"name": "Midnight Commander",
44
"description": "Installs Midnight Commander into the Dev Environment",
5-
"version": "1.1.1",
5+
"version": "1.2.0",
66
"options": {
77
"enabled": {
88
"type": "boolean",

features/src/mc/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ fi
1212
if [ "${ENABLED:-}" = "true" ]; then
1313
echo '(*) Installing Midnight Commander...'
1414

15+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/mc
16+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/mc/
17+
1518
# shellcheck source=/dev/null
1619
. /etc/os-release
1720

features/src/memcached/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "memcached",
33
"id": "memcached",
4-
"version": "1.4.0",
4+
"version": "1.5.0",
55
"description": "Sets up memcached into the Dev Environment",
66
"options": {
77
"enabled": {

features/src/memcached/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ fi
1717
if [ "${ENABLED}" = "true" ]; then
1818
echo '(*) Installing memcached...'
1919

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

features/src/nginx/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "nginx",
33
"name": "nginx",
4-
"version": "1.3.0",
4+
"version": "1.4.0",
55
"description": "Installs nginx into the Dev Environment",
66
"documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/nginx",
77
"options": {

features/src/nginx/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ fi
1111

1212
echo '(*) Installing nginx...'
1313

14+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/nginx
15+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/nginx/
16+
1417
MEDIA_REDIRECT_URL="${MEDIAREDIRECTURL:-}"
1518
: "${INSTALL_RUNIT_SERVICE:=true}"
1619

features/src/photon/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "photon",
33
"name": "Photon",
4-
"version": "1.1.0",
4+
"version": "1.2.0",
55
"options": {
66
"enabled": {
77
"type": "boolean",

features/src/photon/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ fi
1717
if [ "${ENABLED}" = 'true' ]; then
1818
echo '(*) Installing Photon...'
1919

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

features/src/php/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "php",
33
"name": "PHP",
44
"description": "Installs PHP into the Dev Environment",
5-
"version": "2.7.2",
5+
"version": "2.8.0",
66
"documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/php",
77
"options": {
88
"version": {

features/src/php/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,9 @@ setup_php84_deb() {
465465

466466
echo "(*) Installing PHP ${PHP_VERSION}..."
467467

468+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/php
469+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/php/
470+
468471
# shellcheck source=/dev/null
469472
. /etc/os-release
470473

features/src/phpmyadmin/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "phpmyadmin",
33
"name": "phpMyAdmin",
4-
"version": "1.1.10",
4+
"version": "1.2.0",
55
"description": "Installs phpMyAdmin into the Dev Environment",
66
"options": {
77
"enabled": {

features/src/phpmyadmin/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ NGINX_USER=
1616
if [ "${ENABLED}" = "true" ]; then
1717
echo '(*) Installing phpMyAdmin...'
1818

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

features/src/playwright/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Playwright",
44
"description": "Sets up Playwright into the Dev Environment",
55
"documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/playwright",
6-
"version": "1.1.1",
6+
"version": "1.2.0",
77
"options": {
88
"enabled": {
99
"type": "boolean",

features/src/playwright/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ PLAYWRIGHT_VERSION="${VERSION:=latest}"
1616
if [ "${ENABLED}" = "true" ]; then
1717
echo '(*) Installing Playwright...'
1818

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

features/src/ssh/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "ssh",
33
"name": "SSH",
44
"description": "Sets up SSH into the Dev Environment",
5-
"version": "1.2.1",
5+
"version": "1.3.0",
66
"documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/ssh",
77
"options": {
88
"enabled": {

features/src/ssh/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ SSHD_PORT="${PORT:-22}"
1616
if [ "${ENABLED:-}" = "true" ]; then
1717
echo '(*) Installing OpenSSH server...'
1818

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

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "su-exec",
33
"name": "su-exec",
4-
"version": "1.0.2",
4+
"version": "1.1.0",
55
"description": "Provides su-exec for running commands as another user"
66
}

features/src/su-exec/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ fi
1111

1212
echo '(*) Installing su-exec...'
1313

14+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/su-exec
15+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/su-exec/
16+
1417
# shellcheck source=/dev/null
1518
. /etc/os-release
1619

features/src/vip-cli/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "vip-cli",
33
"name": "VIP-CLI",
4-
"version": "1.4.5",
4+
"version": "1.5.0",
55
"description": "Installs VIP-CLI into the Dev Environment",
66
"options": {
77
"enabled": {

features/src/vip-cli/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ VIP_CLI_VERSION="${VERSION:-latest}"
1515
if [ "${ENABLED}" = "true" ]; then
1616
echo '(*) Installing VIP CLI...'
1717

18+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/vip-cli
19+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/vip-cli/
20+
1821
if ! hash node >/dev/null 2>&1 || ! hash npm >/dev/null 2>&1; then
1922
# shellcheck source=/dev/null
2023
. /etc/os-release

features/src/vip-go-mu-plugins/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "vip-go-mu-plugins",
33
"name": "VIP Go MU Plugins",
4-
"version": "2.2.1",
4+
"version": "2.3.0",
55
"description": "Installs VIP Go MU Plugins into the Dev Environment",
66
"documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/vip-go-mu-plugins",
77
"options": {

features/src/vip-go-mu-plugins/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ fi
1717
if [ "${ENABLED}" != "false" ]; then
1818
echo '(*) Installing VIP Go mu-plugins...'
1919

20+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/vip-go-mu-plugins
21+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/vip-go-mu-plugins/
22+
2023
PACKAGES=""
2124
if ! hash git >/dev/null 2>&1; then
2225
PACKAGES="${PACKAGES} git"

features/src/wordpress/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "wordpress",
33
"name": "WordPress",
44
"description": "Sets up WordPress into the Dev Environment",
5-
"version": "2.7.1",
5+
"version": "2.8.0",
66
"documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/wordpress",
77
"containerEnv": {
88
"WP_CLI_CONFIG_PATH": "/etc/wp-cli/wp-cli.yaml"

features/src/wordpress/install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ WP_MULTISITE_TYPE="${MULTISITE_TYPE:-subdirectory}"
3030

3131
echo '(*) Downloading WordPress...'
3232

33+
install -d -D -m 0755 /usr/local/etc/vscode-dev-containers/vip-codespaces/wordpress
34+
install -m 0644 devcontainer-feature.json devcontainer-features.env /usr/local/etc/vscode-dev-containers/vip-codespaces/wordpress/
35+
3336
install -d -m 0755 -o root -g root /etc/wp-cli /usr/share/wordpress
3437
install -m 0644 -o root -g root wp-cli.yaml /etc/wp-cli
3538
install -d -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" -m 0755 /wp

0 commit comments

Comments
 (0)