zulip/tools/ci
Alex Vandiver fb338f22d7 ci: Stop rabbitmq when making CI images.
The production CI image starts `rabbitmq-server` but does not stop it,
which leaves a stale `/var/run/rabbitmq/pid` file in the image.

`rabbitmqctl wait --timeout 600 /var/run/rabbitmq/pid`, which is run
after starting the rabbitmq node, reads the PID file and waits for the
PID to be running, and for rabbitmq's port to be responding to pings.

If it reads an old PID file before the new PID is written, it
aborts (all but the first and last lines are output from `rabbitmqctl
wait` that is hidden by `/etc/init.d/rabbitmq-server`):

```
 * Starting RabbitMQ Messaging Server rabbitmq-server
Waiting for pid file '/var/run/rabbitmq/pid' to appear
pid is 341
Waiting for erlang distribution on node 'rabbit@fc8f64d6acdb' while OS process '341' is running
Error:
process_not_running
 * FAILED - check /var/log/rabbitmq/startup_\{log, _err\}
 ```

If it failed, the `production-upgrade` script tried to start
`rabbitmq` again -- despite it already still starting in the
background.  These two attempts conflicted, and often one or both
failed.

Stop `rabbitmq-server` when building the image, which removes the
stale PID file.
2022-05-19 13:30:59 -07:00
..
.gitattributes install: Replace wget with curl. 2021-06-25 09:05:07 -07:00
Dockerfile Remove Ubuntu 18.04 support. 2022-01-21 17:26:14 -08:00
Dockerfile.prod ci: Stop rabbitmq when making CI images. 2022-05-19 13:30:59 -07:00
activate-venv Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
build-docker-images ci: Update upgrade test to 5.2, from 5.1. 2022-05-04 11:37:15 -07:00
production-build browserslist: Stop transpiling for pre-ES2019 browsers. 2022-03-17 15:24:46 -07:00
production-install docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
production-pgroonga ci: Test pgroonga installation. 2021-11-20 07:13:50 -08:00
production-upgrade ci: Remove unnecessary steps from production upgrade script. 2021-07-28 08:44:15 -07:00
production-upgrade-pg ci: Unpack installation tarball under /root/. 2021-05-14 14:31:00 -07:00
production-verify ci: Verify production servers using /api/v1/server_settings. 2022-04-28 12:34:59 -07:00
send-failure-message scripts: Use curl -f (--fail). 2021-07-13 16:47:49 -07:00
setup-backend ci: Remove 2>&1 redirection. 2021-03-29 14:52:06 -07:00
setup-frontend
success-http-headers.template.txt ci: Verify production servers using /api/v1/server_settings. 2022-04-28 12:34:59 -07:00