Skip to content
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

Slightly improve script and add docs #8612

Merged
merged 4 commits into from
Jan 10, 2020
Merged

Slightly improve script and add docs #8612

merged 4 commits into from
Jan 10, 2020

Conversation

alesapin
Copy link
Member

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (up to few sentences, required except for Non-significant/Documentation categories):
Documentation for .tgz build and ability to work from any directory.

@alesapin
Copy link
Member Author

Need to test own instruction. I will wait for CI build.

After that downloaded archives should be unpacked and installed with installation scripts. Example for the latest version:
```bash
export LATEST_VERSION=`curl https://api.github.com/repos/ClickHouse/ClickHouse/tags 2>/dev/null | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | head -n 1`
curl -O https://repo.yandex.ru/clickhouse/tgz/clickhouse-common-static-$LATEST_VERSION.tgz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW curl is usually less available than wget.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ docker run --network=host -it archlinux bash
[root@click /]# wget
bash: wget: command not found
[root@click /]# curl
curl: try 'curl --help' for more information

$ docker run --network=host -it gentoo/stage3-amd64 bash
click / # wget
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
click / # curl
curl: try 'curl --help' or 'curl --manual' for more information

$ docker run --network=host -it vbatts/slackware bash
bash-4.3# wget
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
bash-4.3# curl
bash: curl: command not found

parity!

sudo clickhouse-common-static-dbg-$LATEST_VERSION/install/doinst.sh

tar -xzvf clickhouse-server-$LATEST_VERSION.tgz
sudo clickhouse-server-$LATEST_VERSION/install/predoinst.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious what is the purpose of separate predoinst?

Copy link
Member Author

@alesapin alesapin Jan 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know, alien creates this script. Actually it's not required.

@alesapin
Copy link
Member Author

Checked on gentoo under root user in docker. Works.

@alesapin alesapin merged commit f06c687 into master Jan 10, 2020
@alesapin alesapin added the pr-build Pull request with build/testing/packaging improvement label Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-build Pull request with build/testing/packaging improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants