Skip to content

Conversation

@bnaecker
Copy link
Contributor

Adds a build script for pulling clickhouse from source, applying
patches, and actually building the source as we need it. This pulls
version 21.5 of the server, but from an unnamed commit -- this was just
the tip of the main branch when the patches were developed.

Adds a build script for pulling clickhouse from source, applying
patches, and actually building the source as we need it. This pulls
version 21.5 of the server, but from an unnamed commit -- this was just
the tip of the main branch when the patches were developed.
@bnaecker bnaecker requested a review from jclulow April 26, 2021 04:56
@bnaecker
Copy link
Contributor Author

This packages the server binary, config files, and an SMF manifest into the tarball. The config files and SMF manifests have hard-coded paths in them, so everything expects to be unpacked into a directory /opt/clickhouse/21.5/.

bnaecker and others added 5 commits April 27, 2021 13:42
- Moves most patches upstream in various places
- Moves remaining patches and renames them for clarity
- Build script pulls from our own fork for control
- Adds README with some notes
- Updates build.sh script for better platform detection, patch
  application, tarball file inclusion
- Moves patches to common and platform-specific directories
- Updates SMF manifest for ClickHouse v21.7
Most configuration file paths now use /tmp, instead of /var, which may
not exist or not be world-writable. This also updates the embedded.xml
file to use /tmp. ClickHouse has a complex process for determining file
paths, loading configuration from the embedded files, on-disk files, and
the command-line. It mostly respects these, but starts by writing out
the processed configuration file to the location in the embedded XML
file, regardless of any other paths. This was previously CWD, which
meant users might have extra config files laying around after ClickHouse
exits. This puts those in /tmp as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants