2024-03-25 22:31:39 +01:00
|
|
|
# To build these production upgrade test images, say an Debian 12 Bookworm system
|
|
|
|
# preinstalled with Zulip 7.0:
|
2022-07-16 02:34:09 +02:00
|
|
|
# docker build . -f Dockerfile.prod \
|
2024-03-25 22:31:39 +01:00
|
|
|
# --build-arg=BASE_IMAGE=zulip/ci:bookworm \
|
|
|
|
# --build-arg=VERSION=7.0 \
|
|
|
|
# --tag=zulip/ci:bookworm-7.0
|
|
|
|
# docker push zulip/ci:bookworm-7.0
|
2021-06-02 19:35:03 +02:00
|
|
|
|
2021-06-24 21:52:53 +02:00
|
|
|
ARG BASE_IMAGE
|
|
|
|
FROM $BASE_IMAGE
|
2021-06-02 19:35:03 +02:00
|
|
|
|
|
|
|
# Download the release tarball, start rabbitmq server and install the server
|
2021-06-24 21:52:53 +02:00
|
|
|
ARG VERSION
|
2024-07-26 22:03:13 +02:00
|
|
|
ADD Docker-prod-8.0.diff /tmp
|
2021-06-02 19:35:03 +02:00
|
|
|
RUN cd $(mktemp -d) \
|
2022-11-07 22:50:24 +01:00
|
|
|
&& curl -fLO --retry 3 "https://download.zulip.com/server/zulip-server-$VERSION.tar.gz" \
|
2021-06-24 21:52:53 +02:00
|
|
|
&& tar -xf "zulip-server-$VERSION.tar.gz" \
|
2024-07-26 22:03:13 +02:00
|
|
|
&& if [ "$VERSION" = "8.0" ]; then \
|
|
|
|
cat /tmp/Docker-prod-8.0.diff | patch -p0 -d "zulip-server-$VERSION"; \
|
|
|
|
fi \
|
2022-07-16 02:38:25 +02:00
|
|
|
&& sudo -s "./zulip-server-$VERSION/scripts/setup/install" --self-signed-cert --hostname 127.0.0.1 --email ci@example.com \
|
2022-05-19 01:06:20 +02:00
|
|
|
&& sudo service rabbitmq-server stop
|
2021-06-02 19:35:03 +02:00
|
|
|
|
|
|
|
CMD ["/bin/sh"]
|