This repository was archived by the owner on Oct 1, 2020. It is now read-only.
File tree 3 files changed +17
-18
lines changed
3 files changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Vagrant.configure(2) do |config|
15
15
config . vm . box = "ubuntu/trusty64"
16
16
17
17
config . vm . provider "virtualbox" do |vb |
18
- vb . memory = 2048
18
+ vb . memory = 3072 # Around 3Gb is necessary to be able to run tests
19
19
end
20
20
config . vm . network :private_network , ip : '192.168.10.11'
21
21
config . vm . hostname = "magento2.vagrant"
Original file line number Diff line number Diff line change @@ -68,13 +68,28 @@ sed -i '/\[client\]/a \
68
68
user = root \
69
69
password =' /etc/mysql/my.cnf
70
70
71
+ # Install git
72
+ apt-get install -y git
73
+
71
74
# Setup Composer
72
75
if [ ! -f /usr/local/bin/composer ]; then
73
76
cd /tmp
74
77
curl -sS https://getcomposer.org/installer | php
75
78
mv composer.phar /usr/local/bin/composer
76
79
fi
77
80
81
+ # Configure composer
82
+ composer_auth_json=" /vagrant/local.config/composer/auth.json"
83
+ if [ -f ${composer_auth_json} ]; then
84
+ set +x
85
+ echo " Installing composer OAuth tokens from ${composer_auth_json} ..."
86
+ set -x
87
+ if [ ! -d /home/vagrant/.composer ] ; then
88
+ sudo -H -u vagrant bash -c ' mkdir /home/vagrant/.composer'
89
+ fi
90
+ cp ${composer_auth_json} /home/vagrant/.composer/auth.json
91
+ fi
92
+
78
93
# Declare path to scripts supplied with vagrant and Magento
79
94
magento_dir=" /var/www/magento2ce"
80
95
echo " export PATH=\$ PATH:/vagrant/bin:${magento_dir} /bin" >> /etc/profile
Original file line number Diff line number Diff line change @@ -39,24 +39,8 @@ for db_name in "${db_names[@]}"; do
39
39
mysql -e " drop database if exists ${db_name} ; create database ${db_name} ;"
40
40
done
41
41
42
- # Install git
43
- apt-get install -y git
44
-
45
42
# Install Magento application
46
43
cd ${magento_dir}
47
- composer_auth_json=" /vagrant/local.config/composer/auth.json"
48
- if [ -f ${composer_auth_json} ]; then
49
- set +x
50
- echo " Installing composer OAuth tokens from ${composer_auth_json} ..."
51
- set -x
52
- if [ ! -d /home/vagrant/.composer ] ; then
53
- sudo -H -u vagrant bash -c ' mkdir /home/vagrant/.composer'
54
- fi
55
- cp ${composer_auth_json} /home/vagrant/.composer/auth.json
56
- sudo -H -u vagrant bash -c ' composer install'
57
- else
58
- sudo -H -u vagrant bash -c ' composer install --prefer-source'
59
- fi
60
44
61
45
admin_frontame=" admin"
62
46
install_cmd=" ./bin/magento setup:install \
@@ -77,7 +61,7 @@ install_cmd="./bin/magento setup:install \
77
61
--use-rewrites=1"
78
62
79
63
# Configure Rabbit MQ
80
- if [ -d " ${magento_dir} /app/code/Magento/Amqp" ]; then
64
+ if [ -f " ${magento_dir} /app/code/Magento/Amqp/registration.php " ]; then
81
65
install_cmd=" ${install_cmd} \
82
66
--amqp-host=localhost \
83
67
--amqp-port=5672 \
You can’t perform that action at this time.
0 commit comments