-
Notifications
You must be signed in to change notification settings - Fork 110
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
[CLIENT-3027] CI/CD: Use Dockerfile to build Docker image for Aerospike enterprise server with security enabled #645
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
923c354
test using admin user
juliannguyen4 4cf803f
Merge remote-tracking branch 'origin/dev' into CLIENT-3027-cicd-build…
juliannguyen4 d4470cc
Use Dockerfile
juliannguyen4 52c309a
wip--broken
juliannguyen4 30caee1
build w/out cache
juliannguyen4 60bc9c4
add shell
juliannguyen4 cfe84e5
Right path to Dockerfile
juliannguyen4 b78bddb
Fix
juliannguyen4 7271895
Repo already cloned
juliannguyen4 fd1a5d4
Add print stmt
juliannguyen4 11c0245
add
juliannguyen4 432be27
check
juliannguyen4 1c681cb
whoops
juliannguyen4 5a345c9
Inspect docker container
juliannguyen4 bc7be56
Check cluster-stable state
juliannguyen4 7218d7a
Show state of cluster using asadm
juliannguyen4 30527b3
Also check cluster-stable
juliannguyen4 d3ca020
Change log msgs to make more sense
juliannguyen4 458a199
See if race condition happens with CE tests
juliannguyen4 22e1fdf
Assume we didn't wait for server to stabilize
juliannguyen4 ba2c995
Minimize time to prepare tests
juliannguyen4 b4a8061
Does the issue go away if we check for stability
juliannguyen4 142ddd9
Create user using security.smd
juliannguyen4 8eeb359
Fix
juliannguyen4 99e6950
Clarify why second check is needed
juliannguyen4 78f455c
cleanup
juliannguyen4 012aabe
Merge remote-tracking branch 'origin/dev' into CLIENT-3027-cicd-build…
juliannguyen4 b15d4c4
install buildx on macos
juliannguyen4 1bf8ff1
Fix syntax
juliannguyen4 f8f5a61
Add comments
juliannguyen4 5da791c
Fix comment
juliannguyen4 e2e6d39
Add warning
juliannguyen4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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,10 @@ | ||
ARG image | ||
FROM $image | ||
RUN echo -e "security {\n\tenable-quotas true\n}\n" >> /etc/aerospike/aerospike.template.conf | ||
# 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 /opt/aerospike/smd/ |
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,48 @@ | ||
[ | ||
[ | ||
162276881999406, | ||
14 | ||
], | ||
{ | ||
"key": "admin|P", | ||
"value": "$2a$10$7EqJtq98hPqEX7fNZaFWoO1mVO/4MLpGzsqojz6E9Gef6iXDjXdDa", | ||
"generation": 1, | ||
"timestamp": 0 | ||
}, | ||
{ | ||
"key": "admin|R|user-admin", | ||
"value": "", | ||
"generation": 1, | ||
"timestamp": 0 | ||
}, | ||
{ | ||
"key": "superuser|P", | ||
"value": "$2a$10$7EqJtq98hPqEX7fNZaFWoOZX0o4mZCBUwvzt/iecIcG4JaDOC41zK", | ||
"generation": 3, | ||
"timestamp": 458774922440 | ||
}, | ||
{ | ||
"key": "superuser|R|read-write-udf", | ||
"value": "", | ||
"generation": 3, | ||
"timestamp": 458774922441 | ||
}, | ||
{ | ||
"key": "superuser|R|sys-admin", | ||
"value": "", | ||
"generation": 3, | ||
"timestamp": 458774922442 | ||
}, | ||
{ | ||
"key": "superuser|R|user-admin", | ||
"value": "", | ||
"generation": 3, | ||
"timestamp": 458774922442 | ||
}, | ||
{ | ||
"key": "superuser|R|data-admin", | ||
"value": null, | ||
"generation": 2, | ||
"timestamp": 458774718056 | ||
} | ||
] |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
store the user and password credentials in a github secret
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the default credentials for the Aerospike EE server with security enabled. I don't think using secrets here is necessary unless we change those credentials