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

Fresh solr 2.9.1 #1008

Open
wants to merge 36 commits into
base: develop-2.9
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
384abac
missed case in mapdeps.erl
llelf Jun 21, 2018
60d2e83
yokozuna ⇒ Sentenai/yokozuna
llelf Jun 21, 2018
846e32e
yokozuna ⇒ Jul 9 version (preliminary EntropyClient)
llelf Jul 9, 2018
bfecb58
yoko ⇒ Jul 10 (tooling)
llelf Jul 10, 2018
1686693
copy forgotten riak_repl.schema too
llelf Jul 20, 2018
d5ba413
“bump” version
llelf Jul 20, 2018
c93630e
rebar.config small fixes: xref, plugin_dir
llelf Jul 24, 2018
72d5288
yokozuna → “bump” version @Fri Jul 20
llelf Jul 24, 2018
8c1ac75
yokozuna → tools scripts: ‘.’ files correctly
llelf Aug 7, 2018
30ea6ff
Merge remote-tracking branch 'basho/develop-2.9' into fresh-solr
llelf May 16, 2019
8803119
yoko → Sentenai/yoko
llelf May 16, 2019
b5936ef
rebar lock
llelf May 16, 2019
8d58cdc
fix: setup ci
Jul 15, 2019
0e030af
fix: build riak in docker container
Jul 15, 2019
ccf5809
fix: artifact paths
Jul 16, 2019
61f21ed
fix: disable explicit dockerhost
Jul 16, 2019
d42db26
fix: use full path
Jul 16, 2019
5a75e76
fix: artifact path
Jul 16, 2019
d311c1d
fix: try path
Jul 16, 2019
736648c
fix: add artifacts glob
Oct 18, 2019
f2390d2
fix: try glob all
Oct 19, 2019
46270b7
fix: use our runners
Oct 19, 2019
ef6315f
fix: copy packages to host machine
Oct 19, 2019
2677671
Merge tag 'riak-2.9.0p5' into fresh-solr+2.9.0p5
Jan 21, 2020
9116fa3
fix: clone url for yokozuna
Jan 21, 2020
7ba6ccc
fix: build common base image
Jan 21, 2020
ca7bc16
fix: rename yokozuna branch
Jan 21, 2020
6e0b6fb
fix: copy package
Jan 21, 2020
ba0d192
fix: run tests
Jan 23, 2020
4e6daa3
Merge branch 'fresh-solr-2.9.0p5' of gitlab.com:riak/riak into fresh-…
Jan 23, 2020
9ce5638
Merge branch 'fresh-solr-2.9.0p5' into fresh-solr+2.9.1
Feb 23, 2020
4e5eb3a
fix: uppdate yokozuna version
Feb 23, 2020
79e84d0
fix: bump version in reltool
Feb 24, 2020
abd3d93
Merge branch 'fresh-solr-2.9.1' into fresh-solr-2.9.1-oss
Mar 1, 2020
6b941ad
fix: update branch for yokozuna
Mar 1, 2020
ece71dc
fix: remove references to streethawk and sentenai
Mar 1, 2020
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
43 changes: 43 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
image: docker:stable

services:
- docker:dind

variables:
CONTAINER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH
DOCKER_HOST: tcp://localhost:2375
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""

cache:
paths:
- /tmp/solr/
- /var/src/riak/distdir/

before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com

stages:
- base
- riak

base:
stage: base
script:
- docker pull $CONTAINER_IMAGE/base/$CI_COMMIT_REF_NAME:latest || true
- docker build --cache-from $CONTAINER_IMAGE/base/$CI_COMMIT_REF_NAME:latest --tag $CONTAINER_IMAGE/base/$CI_COMMIT_REF_NAME:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE/base/$CI_COMMIT_REF_NAME:latest --build-arg deployment=$CI_COMMIT_REF_NAME -f Dockerfile.base .
- docker push $CONTAINER_IMAGE/base/$CI_COMMIT_REF_NAME:$CI_COMMIT_SHA
- docker push $CONTAINER_IMAGE/base/$CI_COMMIT_REF_NAME:latest

riak:
stage: riak
artifacts:
paths:
- "/tmp/packages/*.rpm"
script:
- docker pull $CONTAINER_IMAGE/base/$CI_COMMIT_REF_NAME:latest || true
- docker pull $CONTAINER_IMAGE/$CI_COMMIT_REF_NAME:latest || true
- docker build --cache-from $CONTAINER_IMAGE/$CI_COMMIT_REF_NAME:latest --tag $CONTAINER_IMAGE/$CI_COMMIT_REF_NAME:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE/$CI_COMMIT_REF_NAME:latest --build-arg deployment=$CI_COMMIT_REF_NAME .
- docker cp $(docker create $CONTAINER_IMAGE/$CI_COMMIT_REF_NAME:latest):"/var/src/riak/distdir/packages/" /tmp/packages
- docker push $CONTAINER_IMAGE/$CI_COMMIT_REF_NAME:$CI_COMMIT_SHA
- docker push $CONTAINER_IMAGE/$CI_COMMIT_REF_NAME:latest
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG deployment
FROM registry.gitlab.com/riak/riak/base/${deployment}:latest
ARG deployment
ADD . /var/src/riak/
RUN sh -x ./build.sh
15 changes: 15 additions & 0 deletions Dockerfile.base
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM centos:7
ARG deployment
# https://gist.github.com/seanjensengrey/808544636b5f3715625584fc1c97615a
RUN curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl
RUN chmod +x kerl
RUN yum install -y gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel \
autoconf java-1.8.0-openjdk-devel git \
pam-devel perl-Digest-SHA
RUN CFLAGS="-DOPENSSL_NO_EC=1" ./kerl build git https://github.com/basho/otp OTP_R16B02_basho10 R16B02-basho10
RUN ./kerl install R16B02-basho10 /opt/erlang/R16B02-basho10
RUN . /opt/erlang/R16B02-basho10/activate
RUN mkdir -p /var/src/riak
WORKDIR /var/src/riak
RUN yum install -y which
RUN yum install -y rpm-build
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
. /opt/erlang/R16B02-basho10/activate
make rel
make test
make package
7 changes: 5 additions & 2 deletions misc/mapdeps.erl
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,12 @@ map_rebar(BaseDir, Path, Acc) ->
{ok, Opts} ->
Deps = proplists:get_value(deps, Opts, []),
lists:foldl(
fun({DepName, _, {_,_,V} }, A) ->
fun({DepName, _, Info}, A) ->
VerStr = case Info of
{_,_,V} -> ver(V);
{_,_V} -> "HEAD"
end,
From = app_name(Path),
VerStr = ver(V),
To = {atom_to_list(DepName), VerStr},
case ordsets:is_element({To, From}, A) of
true ->
Expand Down
6 changes: 4 additions & 2 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
{require_otp_vsn, "R16|17"}.
{cover_enabled, true}.

{recursive_cmds, [xref]}.

{lib_dirs, ["apps/riak"]}.

{erl_opts, [debug_info, fail_on_warning]}.
Expand All @@ -17,12 +19,12 @@
{node_package, ".*", {git, "https://github.com/basho/node_package.git", {tag, "4.0.2"}}},
{lager_syslog, ".*", {git, "git://github.com/basho/lager_syslog.git", {tag, "3.0.3"}}},
{cluster_info, ".*", {git, "git://github.com/basho/cluster_info.git", {tag, "2.0.5"}}},
{riak_kv, ".*", {git, "git://github.com/basho/riak_kv.git", {branch, "develop-2.9"}}},
{riak_kv, ".*", {git, "git://github.com/basho/riak_kv.git", {branch, "develop-2.9"}}},
{riak_control, ".*", {git, "git://github.com/basho/riak_control.git", {tag, "riak_kv-2.9.1"}}},
{riaknostic, ".*", {git, "git://github.com/basho/riaknostic.git", {tag, "2.1.7"}}},
{riak_auth_mods, ".*", {git, "git://github.com/basho/riak_auth_mods.git", {tag, "2.1.0"}}},
{riak_repl, ".*", {git, "git://github.com/basho/riak_repl.git", {tag, "riak_kv-2.9.1"}}},
{yokozuna, ".*", {git, "git://github.com/basho/yokozuna.git", {tag, "riak_kv-2.9.1"}}},
{yokozuna, ".*", {git, "git://github.com/basho/yokozuna.git", {branch, "fresh-solr-2.9.1-oss"}}},
{rebar_lock_deps_plugin, ".*", {git, "https://github.com/basho/rebar_lock_deps_plugin.git", {tag, "3.1.0p1"}}}
]}.

Expand Down
3 changes: 2 additions & 1 deletion rebar.config.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{sub_dirs,["rel","apps/riak"]}.
{require_otp_vsn,"R16|17"}.
{cover_enabled,true}.
{recursive_cmds,[xref]}.
{lib_dirs,["apps/riak"]}.
{erl_opts,[debug_info,fail_on_warning]}.
{eunit_opts,[verbose]}.
Expand Down Expand Up @@ -186,7 +187,7 @@
"21c6e52ced3af294f2fe636039106068da12eeeb"}},
{yokozuna,".*",
{git,"git://github.com/basho/yokozuna.git",
"1c533e3366a3c67c466f5d6523bc9c87ecea9400"}},
"95a1bef13efd1beee8f987a6a314f8f3030c7354"}},
{rebar_lock_deps_plugin,".*",
{git,"https://github.com/basho/rebar_lock_deps_plugin.git",
"8816f45ff38cd04d5c7741bd39166af58116dd44"}}]}.
Expand Down
4 changes: 3 additions & 1 deletion rel/reltool.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%% ex: ft=erlang ts=4 sw=4 et
{sys, [
{lib_dirs, ["../deps"]},
{rel, "riak", "2.9.0",
{rel, "riak", "2.9.1",
[
kernel,
stdlib,
Expand Down Expand Up @@ -125,6 +125,8 @@
{template, "../deps/leveled/priv/leveled.schema", "lib/23-leveled.schema"},
{template, "../deps/leveled/priv/leveled_multi.schema", "lib/24-leveled_multi.schema"},

{template, "../deps/riak_repl/priv/riak_repl.schema", "lib/25-riak_repl.schema"},

{template, "../deps/yokozuna/priv/yokozuna.schema", "lib/30-yokozuna.schema"},

{template, "files/advanced.config", "etc/advanced.config"},
Expand Down