Skip to content

Adds clickhouse packaging #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Adds clickhouse packaging #1

wants to merge 6 commits into from

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.

1 participant