зеркало из https://github.com/mozilla/treeherder.git
Bug 1384518 - Vagrant: Remove memcached server and libraries
Since memcached server and the client headers are now unused. Whilst the `zlib1g-dev` package is no longer needed by pylibmc, it's still required as a sub-dependency of `libmysqlclient-dev`, so has deliberately not been added to the `apt-get purge` cleanup step.
This commit is contained in:
Родитель
deb1fc86b7
Коммит
4d45f3cf55
|
@ -30,6 +30,8 @@ export PIP_DISABLE_PIP_VERSION_CHECK='True'
|
||||||
echo '-----> Performing cleanup'
|
echo '-----> Performing cleanup'
|
||||||
# Remove the old MySQL 5.6 PPA repository, if this is an existing Vagrant instance.
|
# Remove the old MySQL 5.6 PPA repository, if this is an existing Vagrant instance.
|
||||||
sudo rm -f /etc/apt/sources.list.d/ondrej-ubuntu-mysql-5_6-xenial.list
|
sudo rm -f /etc/apt/sources.list.d/ondrej-ubuntu-mysql-5_6-xenial.list
|
||||||
|
# Remove memcached remnants in case this instance existed prior to the Redis switch.
|
||||||
|
sudo -E apt-get -yqq purge --auto-remove memcached libmemcached-dev
|
||||||
# Stale pyc files can cause pytest ImportMismatchError exceptions.
|
# Stale pyc files can cause pytest ImportMismatchError exceptions.
|
||||||
find . -type f -name '*.pyc' -delete
|
find . -type f -name '*.pyc' -delete
|
||||||
# Celery sometimes gets stuck and requires that celerybeat-schedule be deleted.
|
# Celery sometimes gets stuck and requires that celerybeat-schedule be deleted.
|
||||||
|
@ -55,22 +57,18 @@ fi
|
||||||
echo '-----> Installing/updating APT packages'
|
echo '-----> Installing/updating APT packages'
|
||||||
sudo -E apt-get -yqq update
|
sudo -E apt-get -yqq update
|
||||||
# libgtk-3.0 and libxt-dev are required by Firefox
|
# libgtk-3.0 and libxt-dev are required by Firefox
|
||||||
# libmemcached-dev and zlib1g-dev are required by pylibmc
|
|
||||||
# libmysqlclient-dev is required by mysqlclient
|
# libmysqlclient-dev is required by mysqlclient
|
||||||
# openjdk-8-jre-headless is required by Elasticsearch
|
# openjdk-8-jre-headless is required by Elasticsearch
|
||||||
sudo -E apt-get -yqq install --no-install-recommends \
|
sudo -E apt-get -yqq install --no-install-recommends \
|
||||||
libgtk-3.0 \
|
libgtk-3.0 \
|
||||||
libmemcached-dev \
|
|
||||||
libmysqlclient-dev \
|
libmysqlclient-dev \
|
||||||
libxt-dev \
|
libxt-dev \
|
||||||
memcached \
|
|
||||||
mysql-server-5.7 \
|
mysql-server-5.7 \
|
||||||
nodejs \
|
nodejs \
|
||||||
openjdk-8-jre-headless \
|
openjdk-8-jre-headless \
|
||||||
rabbitmq-server \
|
rabbitmq-server \
|
||||||
redis-server \
|
redis-server \
|
||||||
yarn \
|
yarn
|
||||||
zlib1g-dev
|
|
||||||
|
|
||||||
if [[ "$(dpkg-query --show --showformat='${Version}' elasticsearch 2>&1)" != "$ELASTICSEARCH_VERSION" ]]; then
|
if [[ "$(dpkg-query --show --showformat='${Version}' elasticsearch 2>&1)" != "$ELASTICSEARCH_VERSION" ]]; then
|
||||||
echo '-----> Installing Elasticsearch'
|
echo '-----> Installing Elasticsearch'
|
||||||
|
|
Загрузка…
Ссылка в новой задаче