Skip to content

Commit

Permalink
Merge pull request #187 from Automattic/remove-mailhog
Browse files Browse the repository at this point in the history
refactor!: remove mailhog; use mailpit instead
  • Loading branch information
sjinks authored May 27, 2024
2 parents 30449f4 + 1de18b8 commit f782d4a
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 137 deletions.
24 changes: 0 additions & 24 deletions features/src/mailhog/README.md

This file was deleted.

1 change: 0 additions & 1 deletion features/src/mailhog/conf-mailhog.tpl

This file was deleted.

16 changes: 0 additions & 16 deletions features/src/mailhog/devcontainer-feature.json

This file was deleted.

54 changes: 0 additions & 54 deletions features/src/mailhog/install.sh

This file was deleted.

1 change: 0 additions & 1 deletion features/src/mailhog/php-mailhog.ini

This file was deleted.

19 changes: 0 additions & 19 deletions features/src/mailhog/service-run

This file was deleted.

2 changes: 1 addition & 1 deletion features/src/mailpit/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "mailpit",
"name": "Mailpit",
"description": "Sets up Mailpit into the Dev Environment",
"version": "1.0.2",
"version": "1.0.3",
"options": {
"enabled": {
"type": "boolean",
Expand Down
5 changes: 0 additions & 5 deletions features/src/mailpit/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ fi
if [ "${ENABLED}" = "true" ]; then
echo '(*) Installing Mailpit...'

if [ -f /usr/local/bin/mailhog ]; then
echo '(!) Mailpit cannot be installed along with MailHog.'
exit 1
fi

ARCH="$(arch)"
LATEST=$(curl -w '%{url_effective}' -I -L -s -S https://github.com/axllent/mailpit/releases/latest -o /dev/null | sed -e 's|.*/||')
if [ "${ARCH}" = "arm64" ] || [ "${ARCH}" = "aarch64" ]; then
Expand Down
2 changes: 1 addition & 1 deletion features/src/php/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "php",
"name": "PHP",
"description": "Installs PHP into the Dev Environment",
"version": "2.3.0",
"version": "2.3.1",
"containerEnv": {
"PHP_INI_DIR": "/etc/php"
},
Expand Down
1 change: 0 additions & 1 deletion features/src/php/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ realpath_cache_size = "800K"
realpath_cache_ttl = "86400"
disable_functions =
sendmail_path=/bin/true
;sendmail_path = "/usr/local/bin/mhsendmail --smtp-addr='sendmailhog:1025'"

[Date]
date.timezone = "UTC"
Expand Down
4 changes: 2 additions & 2 deletions templates/src/dev-env-ghcs/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
"enabled": "${templateOption:vipCliEnabled}"
},
// Tools
"ghcr.io/automattic/vip-codespaces/mailhog:latest": {
"enabled": "${templateOption:mailhogEnabled}"
"ghcr.io/automattic/vip-codespaces/mailpit:latest": {
"enabled": "${templateOption:mailpitEnabled}"
},
"ghcr.io/automattic/vip-codespaces/phpmyadmin:latest": {
"enabled": "${templateOption:pmaEnabled}"
Expand Down
10 changes: 5 additions & 5 deletions templates/src/dev-env-ghcs/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"id": "dev-env-ghcs",
"name": "VIP Development Environment",
"version": "0.0.1",
"version": "0.0.2",
"options": {
"mailhogEnabled": {
"mailpitEnabled": {
"type": "boolean",
"default": false,
"description": "Enable Mailhog"
"description": "Enable Mailpit"
},
"memcachedEnabled": {
"type": "boolean",
Expand All @@ -15,8 +15,8 @@
},
"phpVersion": {
"type": "string",
"enum": ["8.0", "8.1", "8.2"],
"default": "8.0",
"enum": ["8.1", "8.2", "8.3"],
"default": "8.2",
"description": "PHP version"
},
"wordpressVersion": {
Expand Down
4 changes: 2 additions & 2 deletions templates/src/dev-env-vsc/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
"enabled": "${templateOption:vipCliEnabled}"
},
// Tools
"ghcr.io/automattic/vip-codespaces/mailhog:latest": {
"enabled": "${templateOption:mailhogEnabled}"
"ghcr.io/automattic/vip-codespaces/mailpit:latest": {
"enabled": "${templateOption:mailpitEnabled}"
},
"ghcr.io/automattic/vip-codespaces/phpmyadmin:latest": {
"enabled": "${templateOption:pmaEnabled}"
Expand Down
10 changes: 5 additions & 5 deletions templates/src/dev-env-vsc/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"id": "dev-env-vsc",
"name": "VIP Development Environment (VSCode/devcontainers)",
"version": "0.0.1",
"version": "0.0.2",
"options": {
"mailhogEnabled": {
"mailpitEnabled": {
"type": "boolean",
"default": false,
"description": "Enable Mailhog"
"description": "Enable Mailpit"
},
"memcachedEnabled": {
"type": "boolean",
Expand All @@ -15,8 +15,8 @@
},
"phpVersion": {
"type": "string",
"enum": ["8.0", "8.1", "8.2"],
"default": "8.0",
"enum": ["8.1", "8.2", "8.3"],
"default": "8.3",
"description": "PHP version"
},
"wordpressVersion": {
Expand Down

0 comments on commit f782d4a

Please sign in to comment.