-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into CLIENT-2217-openssl3-m…
…anylinux
- Loading branch information
Showing
41 changed files
with
1,054 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
ARG server_image=aerospike/aerospike-server-enterprise | ||
ARG ROSTER_FILE_NAME=roster.smd | ||
# Temp file for passing node id from one build stage to another | ||
# Docker doesn't support command substitution for setting values for ARG variables, so we have to do this | ||
ARG NODE_ID_FILE_NAME=node_id | ||
|
||
FROM $server_image as configure-server | ||
|
||
WORKDIR /opt/aerospike/smd | ||
|
||
# Enable authentication | ||
|
||
ARG AEROSPIKE_CONF_TEMPLATE_PATH=/etc/aerospike/aerospike.template.conf | ||
|
||
# Not using asconfig to edit config because we are working with a template file, which may not have valid values yet | ||
RUN echo -e "security {\n\tenable-quotas true\n}\n" >> $AEROSPIKE_CONF_TEMPLATE_PATH | ||
# security.smd was generated manually by | ||
# 1. Starting a new Aerospike EE server using Docker | ||
# 2. Creating the superuser user | ||
# 3. Copying /opt/aerospike/smd/security.smd from the container and committing it to this repo | ||
# This file should always work | ||
# TODO: generate this automatically, somehow. | ||
COPY security.smd . | ||
|
||
# Enable strong consistency | ||
RUN sed -i "s/\(namespace.*{\)/\1\n\tstrong-consistency true/" $AEROSPIKE_CONF_TEMPLATE_PATH | ||
RUN sed -i "s/\(namespace.*{\)/\1\n\tstrong-consistency-allow-expunge true/" $AEROSPIKE_CONF_TEMPLATE_PATH | ||
ARG ROSTER_FILE_NAME | ||
COPY $ROSTER_FILE_NAME . | ||
|
||
# Fetch node id from roster.smd | ||
|
||
# There's no tag for the latest major version to prevent breaking changes in jq | ||
# This is the next best thing | ||
FROM ghcr.io/jqlang/jq:1.7 as get-jq | ||
# jq docker image doesn't have a shell | ||
# We need a shell to fetch and pass the node id to the next build stage | ||
FROM busybox as get-node-id | ||
COPY --from=get-jq /jq /bin/ | ||
ARG ROSTER_FILE_NAME | ||
COPY $ROSTER_FILE_NAME . | ||
ARG NODE_ID_FILE_NAME | ||
RUN jq --raw-output '.[1].value' $ROSTER_FILE_NAME > $NODE_ID_FILE_NAME | ||
|
||
FROM configure-server as set-node-id | ||
ARG NODE_ID_FILE_NAME | ||
COPY --from=get-node-id $NODE_ID_FILE_NAME . | ||
RUN sed -i "s/\(^service {\)/\1\n\tnode-id $(cat $NODE_ID_FILE_NAME)/" $AEROSPIKE_CONF_TEMPLATE_PATH | ||
RUN rm $NODE_ID_FILE_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
[ | ||
97107025374203, | ||
1 | ||
], | ||
{ | ||
"key": "test", | ||
"value": "a1", | ||
"generation": 1, | ||
"timestamp": 465602976982 | ||
} | ||
] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
path = aerospike-client-c | ||
# url = [email protected]:aerospike/aerospike-client-c.git | ||
url = https://github.com/aerospike/aerospike-client-c.git | ||
branch = stage | ||
branch = CLIENT-2294 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
15.2.0rc2.dev3 | ||
15.2.0rc2 |
Submodule aerospike-client-c
updated
87 files
Oops, something went wrong.