Bug 1318295 - Vagrant: Move yarn install to shell provisioner

This commit is contained in:
Ed Morley 2017-03-15 17:51:39 +00:00
Родитель a7b3201081
Коммит 0d649ead54
3 изменённых файлов: 5 добавлений и 12 удалений

Просмотреть файл

@ -1,11 +0,0 @@
class nodejs {
exec{"yarn-install":
cwd => "${PROJ_DIR}",
user => "${APP_USER}",
# We have to use `--no-bin-links` to work around symlink issues with Windows hosts.
# TODO: Switch the flag to a global yarn pref once yarn adds support.
command => "yarn install --no-bin-links",
}
}

Просмотреть файл

@ -18,7 +18,6 @@ file {"/etc/profile.d/treeherder.sh":
class vagrant {
class {
nodejs: before => Class["treeherder"];
treeherder: before => Class["dev"];
dev:;
}

Просмотреть файл

@ -95,6 +95,11 @@ fi
echo '-----> Running pip install'
pip install --require-hashes -r requirements/common.txt -r requirements/dev.txt | sed -e '/^Requirement already satisfied:/d'
echo '-----> Running yarn install'
# We have to use `--no-bin-links` to work around symlink issues with Windows hosts.
# TODO: Switch the flag to a global yarn pref once yarn adds support.
yarn install --no-bin-links
echo '-----> Initialising MySQL database'
# The default `root@localhost` grant only allows loopback interface connections.
mysql -u root -e 'GRANT ALL PRIVILEGES ON *.* to root@"%"'