Commit Graph

604 Commits

Author SHA1 Message Date
Tim Abbott
4f9391becb docker: Release 1.9.0-rc1-2. 1.9.0-rc1-2 2018-08-27 11:58:03 -07:00
Tim Abbott
f874136af1 entrypoint: Remove references to ZULIP_AUTO_GENERATE_CERTS. 2018-08-23 13:30:42 -07:00
Tim Abbott
1190873d0f entrypoint: Remove unnecessary directory creation logging. 2018-08-23 13:16:56 -07:00
Tim Abbott
62bf74190b Dockerfile: Delete build-time settings and secrets files.
Since these files are intended to be automatically generated by
entrypoint.sh at container startup time, these files are at best
useless and at worst could result in users ending up with copies of
the secrets generated when the Docker image they were using was built.
2018-08-23 13:16:56 -07:00
Tim Abbott
f61b48b96f entrypoint: Remove obsolete RabbitMQ configuration.
The ignore option was removed a long time ago, and the settings style
variable for RabbitMQ is very old backwards-compatibility code that is
no longer needed.
2018-08-23 13:09:28 -07:00
Tim Abbott
b2bb979b4e yaml: Use single quotes in environment variables.
Single quotes in YAML have fewer situations where escaping is relevant
than double-quotes, which means using them as the default will help
prevent users from running into escaping issues.
2018-08-23 13:01:29 -07:00
Tim Abbott
78480d4de5 secrets: Use crudini to edit secrets file.
Using an actual tool designed to do this is a lot more robust and
fixes some nasty escaping issues involving secrets containing `~` that
were reported in #143.
2018-08-23 12:53:21 -07:00
Tim Abbott
2f23841919 docker: Release 1.9.0-rc1-1. 1.9.0-rc1-1 2018-08-23 12:17:13 -07:00
Tim Abbott
cebf5745e0 README: Document that we consider this project experimental. 2018-08-23 12:15:14 -07:00
xificurC
8b54088b72 docker: pull the images to avoid building Zulip on first try. 2018-08-13 15:50:00 -07:00
xificurC
ade00d5135 docker: Allow using a custom CA bundle for building the Zulip image. 2018-08-13 15:47:37 -07:00
Tim Abbott
081e64c46e entrypoint: Use extended globbing for integer detection.
This fixes #150, and should eliminate the possibility for future bugs
in the same vein.

I still want to eliminate this whole type-detection system, but that's
for future work.
2018-08-13 15:40:05 -07:00
Tim Abbott
b2f3ab2efc Use bash as the shell.
This in particular lets us set `-u pipefail` to have better error
handling.
2018-08-13 15:28:57 -07:00
Tim Abbott
3eca1ba1bf Migrate to zulip/docker-zulip Dockerhub project.
This migrates our documentation to point to the new official zulip
Docker repository on Dockerhub.
2018-08-09 19:06:21 -07:00
Tim Abbott
4b89ae5d77 docker: Upgrade docker-zulip to Zulip 1.9.0-rc1.
This docker image has only really supported Git leading up to Zulip
1.9 for a while now.  Now that there's a release candidate out, it
makes sense to declare that explicitly.

This commit will be tagged 1.9.0-rc1-0.
1.9.0-rc1-0
2018-08-09 17:27:06 -07:00
Tim Abbott
178ac3956a Dockerfile: Do an apt-get update before the upgrade.
The previous split interacted badly with caching if you reran the
build a few days after a previous build.
2018-08-09 17:27:06 -07:00
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