Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
558 commits
Select commit Hold shift + click to select a range
743f8b3
v18.14.17-stable
sunsingerus Dec 4, 2018
feba979
fix publish error
sunsingerus Dec 4, 2018
0894bd7
fix path on CentOS 6
sunsingerus Dec 4, 2018
fe8cd20
Merge branch 'master' of https://github.com/sunsingerus/clickhouse-rpm
sunsingerus Dec 4, 2018
1c1aba7
Merge pull request #117 from sunsingerus/master
sunsingerus Dec 4, 2018
ec05df9
v18.14.18-stable
sunsingerus Dec 5, 2018
b5eb14a
Merge pull request #118 from sunsingerus/master
sunsingerus Dec 6, 2018
dfa665c
v18.16.0-stable
sunsingerus Dec 17, 2018
df6b038
Merge pull request #119 from sunsingerus/master
sunsingerus Dec 17, 2018
147a2c7
v18.14.19-stable
sunsingerus Dec 20, 2018
4e0e731
Merge pull request #120 from sunsingerus/master
sunsingerus Dec 20, 2018
d4d0529
fix typo
sunsingerus Dec 20, 2018
b4c90c8
Merge pull request #121 from sunsingerus/master
sunsingerus Dec 20, 2018
dc5a439
v18.16.1-stable
sunsingerus Dec 24, 2018
4885330
Merge pull request #122 from sunsingerus/master
sunsingerus Dec 25, 2018
fbeea2b
use realpath
sunsingerus Dec 25, 2018
3a141f2
Merge pull request #123 from sunsingerus/master
sunsingerus Dec 25, 2018
8df22d5
ClickHouse update to specified version script
sunsingerus Jan 7, 2019
bda7c55
Merge pull request #124 from sunsingerus/master
sunsingerus Jan 7, 2019
61a698a
custom Clickhouse Git repository
bgranvea Jan 21, 2019
74ac7b1
v19.1.6-stable
sunsingerus Jan 24, 2019
3686ff4
Merge branch 'master' of https://github.com/sunsingerus/clickhouse-rpm
sunsingerus Jan 24, 2019
b7d0cf8
attempts to build for CentOS 6
sunsingerus Jan 24, 2019
52c8db9
Merge pull request #126 from sunsingerus/master
sunsingerus Jan 24, 2019
0e643f2
Merge pull request #125 from infovista/custom_git_repository
sunsingerus Jan 24, 2019
6e2e91e
fixes for some tests. Added CH_TEST_NAMES to choose executed tests (#…
bgranvea Jan 29, 2019
d240409
describe CH_TEST_NAMES env var
sunsingerus Jan 29, 2019
63b1946
CH_TEST_NAMES example
sunsingerus Jan 29, 2019
7e96f79
Merge pull request #128 from sunsingerus/master
sunsingerus Jan 29, 2019
1ce5a3f
v19.3.3-stable
sunsingerus Feb 14, 2019
7294558
Merge pull request #129 from sunsingerus/master
sunsingerus Feb 14, 2019
efcce01
v19.1.7-stable
sunsingerus Feb 15, 2019
81363a5
Merge pull request #130 from sunsingerus/master
sunsingerus Feb 15, 2019
5cbfb1d
v19.1.8-stable
sunsingerus Feb 18, 2019
e77ed0d
Merge pull request #131 from sunsingerus/master
sunsingerus Feb 18, 2019
338ec25
v19.3.4-stable
sunsingerus Feb 18, 2019
2968e4f
Merge pull request #132 from sunsingerus/master
sunsingerus Feb 19, 2019
110b026
v19.1.9-stable
sunsingerus Feb 21, 2019
501a021
Merge pull request #133 from sunsingerus/master
sunsingerus Feb 21, 2019
a2516ae
v19.3.5-stable
sunsingerus Feb 21, 2019
8646d12
Merge pull request #134 from sunsingerus/master
sunsingerus Feb 21, 2019
1284198
v19.1.10
sunsingerus Mar 4, 2019
7a5909a
Merge pull request #135 from sunsingerus/master
sunsingerus Mar 4, 2019
833d824
v19.3.6-stable
sunsingerus Mar 4, 2019
72ac7cc
Merge pull request #136 from sunsingerus/master
sunsingerus Mar 4, 2019
64e9b1f
ninja-build support
sunsingerus Mar 4, 2019
9488208
no ninja on CentOS 6
sunsingerus Mar 4, 2019
c2b7d60
disable ninja
sunsingerus Mar 4, 2019
f8f1721
Merge pull request #137 from sunsingerus/master
sunsingerus Mar 5, 2019
8ef4441
v19.4.0.49-stable
sunsingerus Mar 14, 2019
174d141
Merge pull request #138 from sunsingerus/master
sunsingerus Mar 14, 2019
2a8e14a
v19.3.7-stable
sunsingerus Mar 18, 2019
bf1f2ae
Merge pull request #139 from sunsingerus/master
sunsingerus Mar 18, 2019
74c281d
v19.1.14-stable
sunsingerus Mar 18, 2019
328c3cc
Merge pull request #140 from sunsingerus/master
sunsingerus Mar 18, 2019
f7af382
v19.4.1.3-stable
sunsingerus Mar 22, 2019
aa024c1
Merge pull request #141 from sunsingerus/master
sunsingerus Mar 22, 2019
040cf15
v19.4.2.7-stable
sunsingerus Apr 2, 2019
ba7000a
Merge pull request #142 from sunsingerus/master
sunsingerus Apr 2, 2019
75cd61c
v19.4.3.11-stable
sunsingerus Apr 4, 2019
7ef8d5f
Merge pull request #143 from sunsingerus/master
sunsingerus Apr 4, 2019
d1fa8a1
add --download-sources CLI option
sunsingerus Apr 4, 2019
ea19a45
--from-sources-in-BUILD-dir and --from-sources-in-SOURCES-dir CLI op…
sunsingerus Apr 4, 2019
9985b9d
Merge pull request #144 from sunsingerus/master
sunsingerus Apr 4, 2019
c1b3cc4
debuginfo generation
sunsingerus Apr 11, 2019
47a627a
devtoolset-8
sunsingerus Apr 11, 2019
8c24fff
--debugifo=yes/no CLI flag
sunsingerus Apr 11, 2019
71d7860
RelWithDebInfo
sunsingerus Apr 12, 2019
813ee6a
clarify delete package procedure
sunsingerus Apr 12, 2019
2c81aab
iclarify functions
sunsingerus Apr 12, 2019
5e33f96
help: --debuginfo
sunsingerus Apr 12, 2019
df6d992
press_any_key and press_enter
sunsingerus Apr 12, 2019
80ea402
clean unused functions from util
sunsingerus Apr 12, 2019
785a7b3
add debug stop points
sunsingerus Apr 12, 2019
2f1b6b4
add function separator
sunsingerus Apr 12, 2019
11b79dd
unify CMAKE_BUILD_TYPE
sunsingerus Apr 12, 2019
f854192
export FLAG_DEBUGINFO properly
sunsingerus Apr 12, 2019
25525cc
disable debuginfo packages by macros
sunsingerus Apr 13, 2019
11f3d14
simplify 'prep' - just switch to 'setup' and deal with debuginfo
sunsingerus Apr 13, 2019
1622f24
simplify 'install'
sunsingerus Apr 13, 2019
c71e5b7
delete files
sunsingerus Apr 13, 2019
e1b9b30
Merge pull request #145 from sunsingerus/master
sunsingerus Apr 13, 2019
bc8d7bd
--cmake-build-type
sunsingerus Apr 16, 2019
fa316fc
Merge pull request #146 from sunsingerus/master
sunsingerus Apr 16, 2019
d07ae9a
check --debuginfo= value
sunsingerus Apr 16, 2019
a0b5aa9
Merge pull request #147 from sunsingerus/master
sunsingerus Apr 16, 2019
5fe66b6
option fix
sunsingerus Apr 16, 2019
9af520b
Merge pull request #148 from sunsingerus/master
sunsingerus Apr 16, 2019
4748a1d
Improvements to simplify building RPMs from Jenkins
Enmk Apr 19, 2019
e2e7711
Merge pull request #149 from Enmk/ci_builds
sunsingerus Apr 21, 2019
31954d3
v19.5.3.8-stable
sunsingerus Apr 22, 2019
a3da949
CentOS 7 does not like Compatibility mode
sunsingerus Apr 22, 2019
0b90498
Merge pull request #150 from sunsingerus/master
sunsingerus Apr 22, 2019
93f5a85
udpate commands list
sunsingerus Apr 28, 2019
4a1b53f
Merge pull request #151 from sunsingerus/master
sunsingerus Apr 28, 2019
14cdf89
add link to RPM repos
sunsingerus Apr 28, 2019
5779a9d
Merge pull request #152 from sunsingerus/master
sunsingerus Apr 28, 2019
8f8db70
v19.4.5.35-stable
sunsingerus May 16, 2019
6183711
enlarge AWS partition
sunsingerus May 16, 2019
a63954a
add lsblk
sunsingerus May 16, 2019
90b2fd0
Merge pull request #153 from sunsingerus/master
sunsingerus May 16, 2019
87d3487
v19.5.4.22-stable
sunsingerus May 16, 2019
afb7acc
Merge pull request #154 from sunsingerus/master
sunsingerus May 16, 2019
3288b46
v19.6.2.11-stable
sunsingerus May 16, 2019
1077530
Merge pull request #155 from sunsingerus/master
sunsingerus May 16, 2019
b7d48fe
v19.7.3.9-stable
sunsingerus May 29, 2019
650271d
Merge pull request #158 from sunsingerus/master
sunsingerus May 29, 2019
7d61ee8
v19.7.5.27-stable
sunsingerus Jun 11, 2019
e7d1226
Merge pull request #160 from sunsingerus/master
sunsingerus Jun 11, 2019
987e933
v19.8.3.8-stable
sunsingerus Jun 11, 2019
0914e1d
Merge pull request #161 from sunsingerus/master
sunsingerus Jun 12, 2019
3114ab7
v19.9.2.4-stable
sunsingerus Jun 24, 2019
4699461
Merge pull request #163 from sunsingerus/master
sunsingerus Jun 24, 2019
b957b67
v19.9.4.34-stable
sunsingerus Jul 12, 2019
2f41a39
v19.11.2.7-stable
sunsingerus Jul 17, 2019
39a21c1
extract devtoolset version separately
sunsingerus Jul 17, 2019
e14a796
Merge pull request #164 from sunsingerus/master
sunsingerus Jul 17, 2019
930b177
v19.9.5.36-stable
sunsingerus Jul 21, 2019
b579d7c
Merge pull request #165 from sunsingerus/master
sunsingerus Jul 21, 2019
cc19170
v19.11.3.11-stable
sunsingerus Jul 21, 2019
82598e7
Merge pull request #166 from sunsingerus/master
sunsingerus Jul 21, 2019
73d8ecc
v19.11.4.24-stable
sunsingerus Aug 1, 2019
b08db9b
Merge pull request #167 from sunsingerus/master
sunsingerus Aug 2, 2019
2a9eff8
v19.11.6.31-stable
sunsingerus Aug 8, 2019
03effc7
Merge pull request #168 from sunsingerus/master
sunsingerus Aug 8, 2019
d11cb7a
v19.13.1.11-stable
sunsingerus Aug 8, 2019
311453e
Merge pull request #169 from sunsingerus/master
sunsingerus Aug 8, 2019
32dd648
add check for sudo
sunsingerus Aug 12, 2019
ac1b1cb
Merge pull request #170 from sunsingerus/master
sunsingerus Aug 12, 2019
242bfcf
check rpmbuilder exit code
sunsingerus Aug 12, 2019
ed0cb8e
Merge remote-tracking branch 'altinity/master'
sunsingerus Aug 13, 2019
13de8fa
detect sudo presence w/o which tool
sunsingerus Aug 13, 2019
4dfc682
check_sudo
sunsingerus Aug 13, 2019
1509c09
Merge pull request #171 from sunsingerus/master
sunsingerus Aug 13, 2019
97d8d06
v19.11.7.40-stable
sunsingerus Aug 16, 2019
55a0162
Merge pull request #172 from sunsingerus/master
sunsingerus Aug 16, 2019
b17320f
v19.13.2.19-stable
sunsingerus Aug 16, 2019
781765b
Merge pull request #173 from sunsingerus/master
sunsingerus Aug 16, 2019
5de1162
-DNO_WERROR=1
sunsingerus Aug 16, 2019
3a780c6
Merge pull request #174 from sunsingerus/master
sunsingerus Aug 16, 2019
2bbe057
v19.11.8.46-stable
sunsingerus Aug 23, 2019
9f06eb8
Merge pull request #175 from sunsingerus/master
sunsingerus Aug 23, 2019
804d19d
v19.13.3.26-stable
sunsingerus Aug 23, 2019
5ed4173
Merge pull request #176 from sunsingerus/master
sunsingerus Aug 23, 2019
4d04be8
v-19.11.9.52-stable
sunsingerus Sep 9, 2019
9c133d6
Merge pull request #177 from sunsingerus/master
sunsingerus Sep 9, 2019
7c429f2
v19.14.6.12-stable
sunsingerus Sep 20, 2019
43fa27b
Try to build 19.14.6.12 with cherry picks
filimonov Sep 23, 2019
1e174c2
remove compiler after https://github.com/ClickHouse/ClickHouse/pull/6646
filimonov Sep 23, 2019
b0c245c
Merge pull request #178 from Altinity/19_14_6_build
sunsingerus Sep 26, 2019
147470b
merge conflicts resolved
sunsingerus Sep 26, 2019
5fb05a1
Merge pull request #179 from sunsingerus/master
sunsingerus Sep 26, 2019
398a47e
v19.15.2.2-stable
sunsingerus Oct 2, 2019
0f931f6
Merge pull request #181 from sunsingerus/master
sunsingerus Oct 2, 2019
d5da8f9
dev: add list option
sunsingerus Oct 2, 2019
53d671a
docs: bring README up-to-date
sunsingerus Oct 2, 2019
6be9f56
Merge pull request #182 from sunsingerus/master
sunsingerus Oct 2, 2019
52747af
v19.15.3.6-stable
sunsingerus Oct 11, 2019
2c1eda8
Merge pull request #183 from sunsingerus/master
sunsingerus Oct 11, 2019
069fd48
v19.15.4.10-stable
sunsingerus Nov 1, 2019
1592c45
Merge pull request #184 from sunsingerus/master
sunsingerus Nov 1, 2019
5492297
v19.16.3.6-stable
sunsingerus Nov 11, 2019
f34a8c2
Merge pull request #185 from sunsingerus/master
sunsingerus Nov 11, 2019
398359e
fix incorrect option descriptionb
sunsingerus Nov 18, 2019
dc9a42b
add custom --pusblish-path support
sunsingerus Nov 18, 2019
8481a56
extend usage
sunsingerus Nov 18, 2019
d610d83
Merge pull request #186 from sunsingerus/master
sunsingerus Nov 18, 2019
8f854ea
v19.15.5.18-stable
sunsingerus Nov 19, 2019
ee71f83
Merge pull request #187 from sunsingerus/master
sunsingerus Nov 19, 2019
9462b7f
v19.16.4.12-stable
sunsingerus Nov 19, 2019
6ad4ae8
Merge pull request #188 from sunsingerus/master
sunsingerus Nov 20, 2019
640e999
v19.11.12.69-stable
sunsingerus Nov 20, 2019
9020238
Merge pull request #189 from sunsingerus/master
sunsingerus Nov 21, 2019
6a01a33
v19.15.6.21-stable
sunsingerus Nov 25, 2019
f3f7d30
Merge pull request #190 from sunsingerus/master
sunsingerus Nov 25, 2019
1f29c5b
v19.16.5.15-stable
sunsingerus Nov 25, 2019
5f947e8
Merge pull request #191 from sunsingerus/master
sunsingerus Nov 26, 2019
dee3973
v19.13.7.57-stable
sunsingerus Nov 26, 2019
2015ab2
Merge pull request #192 from sunsingerus/master
sunsingerus Nov 26, 2019
77bd9fb
v19.17.4.11-stable
sunsingerus Nov 26, 2019
b9498ac
Merge pull request #193 from sunsingerus/master
sunsingerus Nov 26, 2019
d9844ad
v19.16.9.37-stable
sunsingerus Dec 27, 2019
96a1b54
Merge pull request #197 from sunsingerus/master
sunsingerus Dec 27, 2019
70a460b
v19.16.10.44-stable
sunsingerus Dec 29, 2019
5076b7b
Merge pull request #198 from sunsingerus/master
sunsingerus Dec 30, 2019
3dae727
description
sunsingerus Jan 20, 2020
bd0972f
Merge pull request #199 from sunsingerus/master
sunsingerus Jan 20, 2020
0bc8ea1
add curl check
sunsingerus Jan 20, 2020
94eb2fb
Merge pull request #200 from sunsingerus/master
sunsingerus Jan 20, 2020
1965e34
v19.16.12.49-stable
sunsingerus Feb 6, 2020
d594a1e
Merge pull request #201 from sunsingerus/master
sunsingerus Feb 6, 2020
523f0fe
v19.16.14.65-stable
sunsingerus Mar 10, 2020
d95de66
Merge pull request #202 from sunsingerus/master
sunsingerus Mar 10, 2020
903eac5
v20.1.8.41-stable
sunsingerus Mar 23, 2020
45eb08b
Merge pull request #203 from sunsingerus/master
sunsingerus Mar 24, 2020
f351181
v19.16.17.80-stable
sunsingerus Apr 20, 2020
a4a122a
Merge pull request #206 from sunsingerus/master
sunsingerus Apr 20, 2020
f9136da
v20.1.11.73-stable
sunsingerus Apr 27, 2020
9886e10
Merge pull request #207 from sunsingerus/master
sunsingerus Apr 27, 2020
f6ecdc6
v19.16.19.85-stable
sunsingerus Apr 27, 2020
aa15f59
v20.1.11.73-stable
sunsingerus Apr 27, 2020
473e8e7
Merge pull request #208 from sunsingerus/master
sunsingerus Apr 27, 2020
3eccac2
v20.3.8.53-lts
sunsingerus Apr 27, 2020
b51a82b
use fresh toolset
sunsingerus Apr 28, 2020
3a3caa8
dev: tolerate warnings in new style
sunsingerus Apr 28, 2020
34b2564
dev: formatting
sunsingerus Apr 28, 2020
54d1ea6
Merge pull request #209 from sunsingerus/master
sunsingerus Apr 28, 2020
7a0d6c8
dev: distributions.json URL
sunsingerus Jun 1, 2020
6367690
Merge pull request #210 from sunsingerus/master
sunsingerus Jun 1, 2020
16d47a2
v20.3.11.97-lts
sunsingerus Jun 11, 2020
910ce2e
Merge pull request #211 from sunsingerus/master
sunsingerus Jun 11, 2020
fea05b2
v20.3.12.112-stable
sunsingerus Jun 25, 2020
85d65b8
Merge pull request #212 from sunsingerus/master
sunsingerus Jun 25, 2020
ace341d
dev: packages downloader
sunsingerus Jun 29, 2020
ca88723
Merge pull request #213 from sunsingerus/master
sunsingerus Jun 29, 2020
cbbb5e1
v19.17.10.1-stable
sunsingerus Aug 5, 2020
2703181
Merge pull request #214 from sunsingerus/master
sunsingerus Aug 5, 2020
76cde9d
v20.3.15.133-lts
sunsingerus Aug 6, 2020
2b8179e
Merge pull request #215 from sunsingerus/master
sunsingerus Aug 6, 2020
73cd359
v20.5.4.40-stable
sunsingerus Aug 6, 2020
f8f4583
Merge pull request #216 from sunsingerus/master
sunsingerus Aug 6, 2020
7c83c4e
v20.3.17.173-lts
sunsingerus Aug 17, 2020
2e4cacf
Merge pull request #217 from sunsingerus/master
sunsingerus Aug 17, 2020
ef32371
publish explanation
sunsingerus Aug 17, 2020
257e0f5
Merge pull request #218 from sunsingerus/master
sunsingerus Aug 17, 2020
09b8a6d
explanations
sunsingerus Aug 17, 2020
e3810f3
Merge pull request #219 from sunsingerus/master
sunsingerus Aug 17, 2020
e1b34e3
docs
sunsingerus Aug 17, 2020
45613d7
Merge pull request #220 from sunsingerus/master
sunsingerus Aug 17, 2020
dc6189a
v20.3.18.10-lts
sunsingerus Sep 9, 2020
0ed6d0d
Merge pull request #221 from sunsingerus/master
sunsingerus Sep 9, 2020
ea38421
v20.6.6.7-stable
sunsingerus Sep 14, 2020
9c4cd2e
no more performance-test provided
sunsingerus Sep 15, 2020
feb53d9
Merge pull request #222 from sunsingerus/master
sunsingerus Sep 15, 2020
573be9e
v20.3.19.4-lts
sunsingerus Sep 19, 2020
7cc074c
Merge pull request #223 from sunsingerus/master
sunsingerus Sep 19, 2020
e7fee6d
v20.8.3.18-stable
sunsingerus Oct 5, 2020
a8782c7
dev: use ClickHouse/ClickHouse github repo
sunsingerus Oct 5, 2020
a97acae
Merge pull request #226 from sunsingerus/master
sunsingerus Oct 6, 2020
b78103a
v20.3.20.6-lts
sunsingerus Oct 9, 2020
9726959
Merge pull request #227 from sunsingerus/master
sunsingerus Oct 9, 2020
ad6c396
v20.8.4.11-lts
sunsingerus Oct 9, 2020
9329900
v20.8.5.45.-lts
sunsingerus Nov 3, 2020
c4f2a98
Merge pull request #228 from sunsingerus/master
sunsingerus Nov 4, 2020
8123315
v20.8.7.15-lts
sunsingerus Nov 25, 2020
f941de9
Merge pull request #229 from sunsingerus/master
sunsingerus Nov 26, 2020
ef0676e
v20.8.4.11-lts
sunsingerus Nov 26, 2020
dcc58bb
v20.8.11.17-lts
sunsingerus Jan 1, 2021
bcf6853
v20.8.12.2-lts
sunsingerus Feb 8, 2021
5e0d44c
Merge pull request #230 from sunsingerus/master
sunsingerus Feb 8, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rpmbuild

12 changes: 12 additions & 0 deletions Builder_Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Base image used to build clickhouse-rpm, used to simplify and speedup builds in CI

ARG BUILDER_BASE_IMAGE=centos:7
FROM ${BUILDER_BASE_IMAGE}

RUN yum -y install sudo

COPY . clickhouse-rpm

RUN cd clickhouse-rpm \
&& ./builder install --deps \
&& cd .. && rm -rf clickhouse-rpm
56 changes: 56 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
FROM centos:latest

# set timezone
RUN rm /etc/localtime
RUN ln -s /usr/share/zoneinfo/Europe/Moscow /etc/localtime

# Create work & result dirs
RUN mkdir -p /clickhouse
RUN mkdir -p /clickhouse/result

WORKDIR /clickhouse

# Install ClickHouse from local RPMs
COPY /rpmbuild/RPMS/x86_64/clickhouse-* /clickhouse/
RUN yum localinstall -y /clickhouse/*.rpm

# Install dependencies for clickhouse-test itself
RUN yum install -y epel-release
RUN yum install -y python-lxml
RUN yum install -y python-requests
RUN yum install -y python2-pip
RUN pip install termcolor

# Install dependencies required by test scripts
RUN yum install -y perl
RUN yum install -y sudo
RUN yum install -y telnet
RUN yum install -y centos-release-scl
RUN yum install -y devtoolset-7

# Install main script
COPY /runscript.sh /clickhouse/
RUN chmod a+x /clickhouse/runscript.sh


# Launch entrypoint
#CMD "/usr/bin/clickhouse-test > /clickhouse/result/result.txt 2>&1"
#CMD "/bin/bash"
CMD "./runscript.sh"

MAINTAINER Vladislav Klimenko
LABEL version="0.1"
LABEL description="Install ClickHouse RPMs and run clickhouse-test in order to verify RPMs are operational"

# IMAGE_NAME=clickhouse_test_$(date +%s)
# sudo docker build -t $IMAGE_NAME .
# sudo docker run -it --mount src="$(pwd)",target=/clickhouse/result,type=bind $IMAGE_NAME

#/usr/bin/clickhouse-server --config=/etc/clickhouse-server/config.xml
#/usr/bin/clickhouse-test > /clickhouse/result/out.txt


#docker run --ulimit nofile=90000:90000 <image-tag>
#
#First 90000 is soft limit, second 90000 is hard limit. When you launch the container, of course with -it flag, and enter command ulimit -n you’ll see the limit is 90000 now.

81 changes: 72 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,81 @@
# clickhouse-rpm
ClickHouse DBMS build script for RHEL based distributions
This is an RPM builder and it is used to install all required dependencies and build ClickHouse RPMs for CentOS 6, 7 and Amazon Linux.

Run build_packages.sh on any RHEL 6 or RHEL 7 based distribution and it shall produce ClickHouse source and binary RPM packages for your system.
# Ready-to-use RPMs
In case you'd like to just install ready-to-use RPMs, and are not interested in building your own hand-made RPMs, there is [detailed explanation](https://github.com/Altinity/clickhouse-rpm-install) on how to use Altinity's [RPM repository](https://packagecloud.io/Altinity/clickhouse)

You can also install packages built with these scripts from public YUM repository.
# Build RPMs

To connect repository on CentOS 6/GosLinux:
Run `builder` on any RHEL 6 or RHEL 7 based distribution and get ClickHouse source and binary RPM packages as an output.

`yum-config-manager --add-repo http://repo.red-soft.biz/repos/clickhouse/repo/clickhouse-el6.repo`
```console
Usage:

For CentOS 7:
./builder version
display default version to build

`yum-config-manager --add-repo http://repo.red-soft.biz/repos/clickhouse/repo/clickhouse-el7.repo`
./builder all [--debuginfo=no] [--cmake-build-type=Debug]
install build deps, download sources, build RPMs
./builder all --test [--debuginfo=no]
install build+test deps, download sources, build+test and test RPMs

To install ClickHouse client and server:
./builder install --build-deps
install build dependencies
./builder install --test-deps
install test dependencies
./builder install --deps
install all dependencies (both build and test)
./builder install --rpms [--from-sources]
install RPMs, if available (do not build RPMs)

./builder build --spec
just create SPEC file
do not download sources, do not build RPMs
./builder build --rpms [--debuginfo=no] [--cmake-build-type=Debug] [--test] [--no-version-check]
download sources, build SPEC file, build RPMs
do not install dependencies
./builder build --download-sources
just download sources into $RPMBUILD_ROOT_DIR/SOURCES/ClickHouse-$CH_VERSION-$CH_TAG folder
(do not create SPEC file, do not install dependencies, do not build)
./builder build --rpms --from-sources-in-BUILD-dir [--debuginfo=no] [--cmake-build-type=Debug] [--test]
just build RPMs from unpacked sources - most likely you have modified them
sources are in $RPMBUILD_ROOT_DIR/BUILD/ClickHouse-$CH_VERSION-$CH_TAG folder
(do not download sources, do not create SPEC file, do not install dependencies)
./builder build --rpms --from-sources-in-SOURCES-dir [--debuginfo=no] [--cmake-build-type=Debug] [--test]
just build RPMs from unpacked sources - most likely you have modified them
sources are in $RPMBUILD_ROOT_DIR/SOURCES/ClickHouse-$CH_VERSION-$CH_TAG folder
(do not download sources, do not create SPEC file, do not install dependencies)
./builder build --rpms --from-archive [--debuginfo=no] [--cmake-build-type=Debug] [--test]
just build RPMs from $RPMBUILD_ROOT_DIR/SOURCES/ClickHouse-$CH_VERSION-$CH_TAG folder.zip sources
(do not download sources, do not create SPEC file, do not install dependencies)
./builder build --rpms --from-sources [--debuginfo=no] [--cmake-build-type=Debug] [--test]
build from source codes

./builder test --docker [--from-sources]
build Docker image and install produced RPM files in it. Run clickhouse-test
./builder test --local
install required dependencies and run clickhouse-test on locally installed ClickHouse
./builder test --local-sql
run several SQL queries on locally installed ClickHouse

./builder repo --publish --packagecloud=<packagecloud USER ID> [FILE 1] [FILE 2] [FILE N]
publish packages on packagecloud as USER. In case no files(s) provided, rpmbuild/RPMS/x86_64/*.rpm would be used
./builder repo --delete --packagecloud=<packagecloud USER ID> file1_URL [file2_URL ...]
delete packages (specified as URL to file) on packagecloud as USER
URL to file to be deleted can be copy+pasted from packagecloud.io site and is expected as:
https://packagecloud.io/Altinity/clickhouse/packages/el/7/clickhouse-test-19.4.3.1-1.el7.x86_64.rpm

OS=centos DISTR_MAJOR=7 DISTR_MINOR=5 ./builder repo --publish --packagecloud=XYZ [file(s)]
OS=centos DISTR_MAJOR=7 DISTR_MINOR=5 ./builder repo --publish --path=altinity/clickhouse-altinity-stable --packagecloud=XYZ [file(s)]
./builder repo --delete URL1 URL2 URL3
./builder repo --download [--path=altinity/clickhouse-altinity-stable] <VERSION>

./builder list --rpms
list available RPMs

./builder src --download
just download sources
```

In most cases just run `./builder all`

`yum install clickhouse-server clickhouse-client clickhouse-server-common clickhouse-compressor`
3 changes: 0 additions & 3 deletions build_only.sh

This file was deleted.

152 changes: 0 additions & 152 deletions build_packages.sh

This file was deleted.

Loading