zulip/tools/ci/Dockerfile.prod

23 lines
998 B
Docker
Raw Normal View History

# To build these production upgrade test images, say an Debian 11 Bullseye system
# preinstalled with Zulip 5.0:
# docker build . -f Dockerfile.prod \
# --build-arg=BASE_IMAGE=zulip/ci:bullseye \
# --build-arg=VERSION=5.0 \
# --tag=zulip/ci:focal-5.0
# docker push zulip/ci:focal-5.0
ARG BASE_IMAGE
FROM $BASE_IMAGE
# Download the release tarball, start rabbitmq server and install the server
ARG VERSION
RUN cd $(mktemp -d) \
&& curl -fLO --retry 3 "https://download.zulip.com/server/zulip-server-$VERSION.tar.gz" \
&& tar -xf "zulip-server-$VERSION.tar.gz" \
# 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 ci@example.com \
&& sudo service rabbitmq-server stop
CMD ["/bin/sh"]