Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ci: Do not pre-install rabbitmq-server in Docker images.
Alex Vandiver63d256546706
diff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.ymlindex c657d7f20ea..7c772bc8078 100644--- a/.github/workflows/production-suite.yml+++ b/.github/workflows/production-suite.yml@@ -176,9 +176,7 @@ jobs:restore-keys: v1-yarn-deps-${{ matrix.os }}- name: Install production- run: |- sudo service rabbitmq-server restart- sudo /tmp/production-install ${{ matrix.extra-args }}+ run: sudo /tmp/production-install ${{ matrix.extra-args }}- name: Verify installrun: sudo /tmp/production-verify ${{ matrix.extra-args }}diff --git a/tools/ci/Dockerfile b/tools/ci/Dockerfileindex 9d60e2393a7..2d4ad4cc317 100644--- a/tools/ci/Dockerfile+++ b/tools/ci/Dockerfile@@ -42,7 +42,9 @@ RUN apt-get update \puppet \python3-dev \python3-pip \- rabbitmq-server \+# We do not pre-install rabbitmq-server, as doing so fixes the+# nodename to be the current hostname, which varies. Letting Zulip+# install rabbitmq allows it to fix the nodename to 'localhost'.redis-server \sudo \supervisor \diff --git a/tools/ci/Dockerfile.prod b/tools/ci/Dockerfile.prodindex 6d4604b5b6f..55f8f5b25c9 100644--- a/tools/ci/Dockerfile.prod+++ b/tools/ci/Dockerfile.prod@@ -9,16 +9,11 @@ARG BASE_IMAGEFROM $BASE_IMAGE-# Remove already existing rabbitmq mnesia directory files-RUN sudo rm -rf /var/lib/rabbitmq/mnesia/*-# Download the release tarball, start rabbitmq server and install the serverARG VERSIONRUN cd $(mktemp -d) \&& curl -fLO "https://download.zulip.com/server/zulip-server-$VERSION.tar.gz" \&& tar -xf "zulip-server-$VERSION.tar.gz" \- && sudo service rabbitmq-server start \- && sudo service rabbitmq-server status \# Version 3.4 predates ddb9d16132a6336b384bf674c4c950cd75d83e5c and 9d57fa97597ec176a8357d6620ab9e670ee19f4e&& perl -pi -e 's/pgrep -f epmd/which pgrep && pgrep -x epmd/' zulip-server-$VERSION/puppet/zulip/manifests/rabbit.pp \&& sudo -s "./zulip-server-$VERSION/scripts/setup/install" --self-signed-cert --hostname 127.0.0.1 --email [email protected] \diff --git a/tools/ci/production-upgrade b/tools/ci/production-upgradeindex c566151f230..8659f27260c 100644--- a/tools/ci/production-upgrade+++ b/tools/ci/production-upgrade@@ -5,28 +5,16 @@set -eset -x-# Structurally, this script should just call upgrade-zulip. However,-# because of a set of issues that result in the previously installed-# GitHub Actions Docker containers not actually working on boot, we-# need to do some preparatory steps. It is a goal to delete these-# steps.--# Reinstall rabbitmq-server.-#-# * For rabbitmq-server, we likely need to do this to work around the-# hostname changing on reboot causing RabbitMQ to not boot.-sudo apt-get -y purge rabbitmq-server-sudo apt-get -y install rabbitmq-server+# Start the services that would be running on a working Zulip host;+# since this is a container, these services are not started+# automatically.# Start the postgresql service.sudo service postgresql start# Starting the rabbitmq-server-if ! sudo service rabbitmq-server start; then- echo- echo "Starting rabbitmq-server failed. Trying again:"- sudo service rabbitmq-server start-fi+epmd -daemon+sudo service rabbitmq-server start# Start the supervisorsudo service supervisor start