Skip to content

Commit ecd29e3

Browse files
author
Benjamin Calef
authored
Merge pull request #104 from zepgram/develop
[v1.6.2] validate install 2.4.5 + replace mailcatcher by mailhog
2 parents f322459 + 5f23aa4 commit ecd29e3

File tree

5 files changed

+23
-32
lines changed

5 files changed

+23
-32
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ If your ssh key has been created with a passphrase, please create another one.
7676
Parent Node | Name | Default Value | Allowed Value | Is optional | Description
7777
| --- | --- | --- | --- | --- |---
7878
| vmconf | machine_name | Vagrant Magento 2 | string | no | Vagrant machine name
79-
| | network_ip | 192.168.200.50 | IP address | no | Accessible IP address /etc/hosts
79+
| | network_ip | 192.168.60.0 | IP address | no | Accessible IP address /etc/hosts
8080
| | host_name | zepgram | string | no | Virtual host name
8181
| | memory | 4096 | number | no | RAM allocated
8282
| | cpus | 1 | number | no | CPU allocated
@@ -92,7 +92,7 @@ Parent Node | Name | Default Value | Allowed Value | Is optional | Des
9292
| magento | url | dev.magento.com | url | no | Magento site host name
9393
| | source | composer | composer / (master/develop..) | no | Define source installation. On git install set the branch name to clone.
9494
| | edition | community | community / enterprise | no | Magento project edition
95-
| | version | 2.4.4 | >=2.2 | no | Magento version release
95+
| | version | 2.4.5 | >=2.2 | no | Magento version release
9696
| | php_version | default | default / 7.x | no | PHP version
9797
| | sample | true | true / false | no | Install sample data
9898
| | mode | developer | developer / production | no | Magento execution mode
@@ -179,7 +179,7 @@ Disable cron:
179179
- elasticsearch
180180
- grunt
181181
- postfix
182-
- mailcatcher
182+
- mailhog
183183
- pestle
184184
- magereun
185185
- adminer
@@ -197,8 +197,8 @@ Disable cron:
197197
* user: vagrant
198198
* pass: vagrant
199199
* name: magento
200-
* Mailcatcher
201-
* url: [network_ip]:1080
200+
* Mailhog
201+
* url: [network_ip]:8025
202202
* Adminer
203203
* url: [network_ip]/adminer
204204
* Phpinfo

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Vagrant machine ready to use for #{git['name']}
155155
magento http://#{magento['url']}
156156
phpinfo http://#{vmconf['network_ip']}/php
157157
adminer http://#{vmconf['network_ip']}/adminer
158-
mailcatcher http://#{vmconf['network_ip']}:1080
158+
mailhog http://#{vmconf['network_ip']}:8025
159159
"
160160

161161
# Triggers

config.yaml.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ magento:
1919
url: 'dev.magento.com'
2020
source: 'composer'
2121
edition: 'community'
22-
version: '2.4.4'
22+
version: '2.4.5'
2323
php_version: 'default'
2424
sample: 'true'
2525
mode: 'developer'

provision/010-system-packages.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ apt-get update -y && apt-get install -y \
3737
libsqlite3-dev libxml2-utils build-essential software-properties-common \
3838
postfix mailutils libsasl2-2 libsasl2-modules ca-certificates libnss3-tools \
3939
apt-transport-https openssl redis-server nginx \
40-
python ruby ruby-dev rubygems openjdk-11-jdk openjdk-11-jre \
40+
python golang-go openjdk-11-jdk openjdk-11-jre \
4141
vim git git-flow
4242

4343
# Php Repository
@@ -95,9 +95,9 @@ wget -P ~/ https://www.thawte.com/roots/thawte_Premium_Server_CA.pem && \
9595
mv ~/thawte_Premium_Server_CA.pem /usr/local/share/ca-certificates/thawte_Premium_Server_CA.crt && \
9696
update-ca-certificates;
9797

98-
# Mailcatcher
99-
gem install mime-types --version "< 3" --no-ri --no-rdoc
100-
gem install mailcatcher --no-ri --no-rdoc
98+
# Mailhog
99+
go get github.com/mailhog/MailHog
100+
ln -sfn /root/go/bin/MailHog /usr/local/bin/mailhog
101101

102102
# Grunt
103103
curl -sL https://deb.nodesource.com/setup_10.x | bash -

provision/020-system-services.sh

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,30 +42,21 @@ echo 'relayhost = 127.0.0.1:1025
4242
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128' | tee -a /etc/postfix/main.cf
4343

4444
# Configuration on booting
45-
cat <<'EOF' > /etc/init.d/mailcatcher
46-
#!/bin/sh
47-
48-
### BEGIN INIT INFO
49-
# Provides: mailcatcher
50-
# Required-Start: $remote_fs $syslog
51-
# Required-Stop: $remote_fs $syslog
52-
# Default-Start: 2 3 4 5
53-
# Default-Stop: 0 1 6
54-
# Short-Description: Start daemon at boot time
55-
# Description: Enable service provided by daemon.
56-
### END INIT INFO
57-
58-
set -x
59-
lsof -ti :1025 | xargs --no-run-if-empty kill -9
60-
mailcatcher --http-ip=0.0.0.0
45+
cat <<'EOF' > /etc/systemd/system/mailhog.service
46+
[Unit]
47+
Description=MailHog service
48+
49+
[Service]
50+
ExecStart=/usr/local/bin/mailhog
51+
52+
[Install]
53+
WantedBy=multi-user.target
6154
EOF
62-
chmod +x /etc/init.d/mailcatcher
63-
update-rc.d mailcatcher defaults
55+
systemctl start mailhog
56+
systemctl enable mailhog
6457

65-
lsof -ti :1025 | xargs --no-run-if-empty kill -9
66-
mailcatcher --http-ip=0.0.0.0
6758
/usr/sbin/sendmail -t -i -f $PROJECT_GIT_EMAIL <<MAIL_END
68-
Subject: Vagrant: MailCatcher
59+
Subject: Vagrant: MailHog
6960
To: $PROJECT_GIT_EMAIL
7061
7162
Test to validate catch email.

0 commit comments

Comments
 (0)