838 Commits

Author SHA1 Message Date
Tim Abbott
5daa7ba157 README: Document the DISABLE_HTTPS setting. 2018-08-03 15:27:48 -07:00
Tim Abbott
e879bc7821 docs: Add link to core Zulip reverse proxy documentation. 2018-08-03 15:23:26 -07:00
xificurC
71ac8fec01 Dockerfile: Ad -x to shell commands.
This makes `RUN` commands auto-print each shell command making it
easier to follow the build process.
2018-08-03 09:38:22 -07:00
xificurC
5583144c9d docker: change zulip ENVs to ARGs for easier updating.
This way, only the compose file needs to be touched which is more in
line with other configuration options.
2018-08-03 09:37:09 -07:00
Tim Abbott
f1196c80d8 rabbitmq: Configure the persistent storage volume.
The upstream rabbitmq project configures a persistent storage volume
(where data like the authentication details for the server are
stored), and it's a lot better for us to configure this explicitly, so
that all persistent state is stored in /opt/docker/zulip.
2018-08-02 10:15:59 -07:00
Tim Abbott
1e83a8c0a2 dependencies: Upgrade RabbitMQ dependency container.
The newer version has less messy console output spam.
2018-08-02 09:20:45 -07:00
jeaye
3b5d63b9ba setup: Add certbot support.
The task is to generate a self-signed cert so Zulip can be started, then
to wait until Zulip is up before using certbot to generate new certs.
Zulip needs to be up so it can meet certbot's challenge. Using a deploy
hook, certs are persisted in the data directory. The same applies to
renewal.

Tweaked by tabbott mostly to edit comments remove an unnecessary
setting before merging.

Fixes #120.
2018-07-23 22:29:10 -07:00
Jeaye Wilkerson
e8526c2208 Fix broken readme links, grammar, and formatting. 2018-07-23 09:22:52 -07:00
Sampriti Panda
d3c32ab0c1 Remove setup_files/ and related code from docker-compose.
This removes the fork of the core Zulip nginx configuration file that
we were maintaining in the docker-zulip project; doing so improves the
maintainability of this project for the future, since we don't need to
check on every Zulip upgrade whether we've made any changes to the
`nginx` package in zulip/zulip.

The only feature we were using that for was the DISABLE_HTTPS setting
in docker-zulip, and it's now possible to do that by editing
zulip.conf instead.

Fixes #114.
2018-07-10 12:22:41 +05:30
Sampriti Panda
de7b59b352 entrypoint: Add call to zulip-puppet-apply for nginx config.
First, we stop deleting the `puppet` directory, which is important for
being able to run `zulip-puppet-apply` inside the container (super
useful for debugging).

Second, we call this inside the code block for the `nginx` option, in
order to support the `DISABLE_HTTPS` option working without any copied
nginx configuration code in docker-zulip.

See #137 for how we could optimize this away.
2018-07-10 12:20:24 +05:30
Alexander Trost
2cfbee3110 docs: Add upgrade instructions for old postgres container.
Fixes #123

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-07-10 12:20:11 +05:30
Alexander Trost
cc11dee79f Merge pull request #135 from sampritipanda/readme_update
README: Update repo link in installation instruction.
2018-07-09 16:28:05 +02:00
Sampriti Panda
f4ab43fc0c README: Update repo link in installation instruction. 2018-07-09 14:40:04 +05:30
Giora Guttsait
283c23fd0b Add AUTH_LDAP_CONNECTION_OPTIONS and organize conditions
fixes #127
2018-07-01 02:24:11 -07:00
Tim Abbott
fad2cf528b entrypoint: Fix writing to settings.py with MANUAL_CONFIGURATION.
The database configuration should not have been running in this
configuration model.
2018-05-31 09:14:26 -07:00
Tim Abbott
78840f4671 README: Add credits section thanking Alexander Trost. 2018-05-31 09:13:48 -07:00
Tim Abbott
ee0a7cb9ca Document how to enable the push notifications service. 2018-05-27 18:17:31 -07:00
Tim Abbott
1ba4fba48d Set EMAIL_HOST default to "".
This prevents Zulip from wasting a bunch of resources repeatedly
trying to deliver emails with invalid configuration (because
`EMAIL_HOST` not being set results in the dummy email backend being
used).
2018-05-27 18:12:47 -07:00
Tim Abbott
1dc894e03d README: Document auth backends and ZULIP_CUSTOM_SETTINGS. 2018-05-27 18:03:29 -07:00
Tim Abbott
241a1b4ef4 README: Fix documentation for MANUAL_CONFIGURATION.
It's probably a bug that these are two independent settings, but we
can clean that up later.

Fixes #122.
2018-05-27 17:49:02 -07:00
Tim Abbott
83ad85c6e3 README: Rewrite the README to explain a lot more.
Fixes #110.
Fixes #118.
2018-05-27 17:41:56 -07:00
Tim Abbott
26c9eb6628 docker-compose: Declare build context unconditionally.
It appears the build context doesn't override the image line.
2018-05-27 17:41:06 -07:00
Tim Abbott
e8a2404c9a kubernetes: Fix typo in postgres password setting name. 2018-05-27 17:04:42 -07:00
Tim Abbott
2e0d92f6b2 sample configs: Remove some obsolete settings.
These former settings no longer do anything in Zulip.
2018-05-27 17:02:57 -07:00
Tim Abbott
7459019e99 docker-compose: Set default hostname to localhost.localdomain.
This makes it possible to create a realm without editing
`docker-compose.yml`..
2018-05-27 17:02:31 -07:00
Tim Abbott
2fe9c43120 entrypoint: Fix typo in path to self-signed cert script. 2018-05-27 17:02:31 -07:00
Tim Abbott
1a1d199d7a entrypoint: Remove useless database options.
These didn't do anything.
2018-05-21 09:37:16 -07:00
Tim Abbott
a4428ce28e postgres: Fix configuration for getting postgres password.
This fixes a regression introduced in 87f6030726.
2018-05-21 09:35:02 -07:00
Tim Abbott
e2243b7707 Rewrite SSL certificate generation to be simpler.
This also adds a hook for where we could eventually add certbot
support.

Fixes #104.
2018-05-21 09:25:39 -07:00
Tim Abbott
470d84fbda README: Simplify explanation of what Zulip is. 2018-05-20 13:17:52 -07:00
Tim Abbott
d00ed15957 Remove now-unnecessary Python dependency installations.
2655ece96f6ad424c21ca44a56d3533c59b7bd0d in zulip.git fixed the fact
that we needed to install these manually here.
2018-05-20 07:54:27 -07:00
Tim Abbott
18a8d725cb Dockerfile: Remove unnecessary build-essential package.
Zulip's install script will install this if needed already.
2018-05-20 07:54:27 -07:00
Tim Abbott
fd45e3c303 Rewrite Dockerfile as a 2-stage build.
This makes it much simpler for us to keep the total installation size
of the docker image nice and small, and means we can avoid installing
a static asset compiler into the production image.
2018-05-20 07:54:27 -07:00
Jason Michalski
906abd4839 Remove empty if block in entrypoint.sh. 2018-05-17 13:19:57 -07:00
Jason Michalski
a97d036a27 Remove ZPROJECT_SETTINGS from entrypoint.sh.
The ZPROJECT_SETTINGS file is part of the Zulip distribution and should
not be edited by administrators instead customizations should be made to
the files in /etc/zulip.
2018-05-17 12:51:58 -07:00
Jason Michalski
e1b4da877f Document the custom_zulip_files mechanism.
Also remove configure-rabbitmq, which is no longer used.
2018-05-16 15:50:17 -07:00
Jason Michalski
0f07e4c97e Remove custom RabbitMQ bootstrapping
The rabbitmq image has support for creating a user and granting the
permissions Zulip requires. This makes the bootstrapRabbitMQ step which
runs in the zulip container redundant so we can remove it. This script
was also the only reverse dependency of rabbitmqctl so rabbitmq-server
can be removed as well.
2018-05-16 15:08:08 -07:00
Jason Michakski
87f6030726 Use zulip/zulip-postgresql for the database
With this change the zulip specific database initialization moves out
of the zulip container and into the database container.
2018-05-16 14:38:39 -07:00
Jason Michakski
981da0b0b5 kubernetes: Fix hostnames in the zulip pod
All of the containers are running on a single pod so we can use
localhost to connect to the other services. After this change database
migrations are completing and the app server is starting. It seems
rabbit MQ is still failing to run correctly.
2018-05-16 14:38:21 -07:00
Tim Abbott
19f11de2c9 README: Update documentation to be clearer.
As part of this process, we add links to a bunch of pages in the main
Zulip production documentation.
2018-05-16 07:34:15 -07:00
Tim Abbott
78a701f2ea README: Remove section on manage.py knight.
This is no longer required when setting up a Zulip server.
2018-05-16 07:33:45 -07:00
Tim Abbott
eb373acff2 Remove custom version of dockervoyager.pp.
We don't want to remove the general custom_zulip_files toolchain, but
we've now integrated a correct version of dockervoyager.pp into
zulip.git, so we don't need to include this patched version (which is
also not compatible with Puppet 4).

This is possible thanks to the zulip.git branch ending in
9498260516
that was recently merged.
2018-05-15 16:28:27 -07:00
Tully Rankin
1fc68a49d3 docker: Merge docker RUN commands in Dockerfile.
Merge the docker RUN commands into single RUN command to decrease the
size of the built image.
2018-05-15 16:04:16 -07:00
Tully Rankin
868544b681 docker: Improve styling in Dockerfile.
Improve the styling of export variables in the Dockerfile.
2018-05-15 16:04:16 -07:00
Tully Rankin
098245cb66 Remove createZulipRealm.sh and update README to use manage.py via docker-compose. 2018-05-15 15:20:35 -07:00
Tully Rankin
044180ddbe docker: Update Dockerfile to pull in Zulip source from Github.
Update the Dockerfile to pull in Zulip source from Github. This allows
you to specify a branch, tag, or commit ref to build the Zulip docker
image from.

Fixes #102.
2018-05-15 15:20:35 -07:00
Tully Rankin
43a9a229e6 docker-compose: Document how to build from Dockerfile.
We add commented out section in docker-compose.yml to show
how to build the Zulip docker image from the Dockerfile.
2018-05-15 14:20:03 -07:00
Tully Rankin
7eb93bd263 entrypoint: Fix IP address getting set as integer type instead of string.
The logic in entrypoint.sh was incorrectly detecting IP addresses as
integer type. This causes a syntax error as the IP address gets set in
the production settings file without quotes.
2018-05-15 14:19:58 -07:00
Alexander Trost
540d9b0cc8 prepare tag 1.8.1-0 1.8.1-0 2018-05-08 11:39:42 +02:00
Alexander Trost
431a36da79 cut version 1.8.0-2 1.8.0-2 2018-04-23 21:08:20 +02:00