-
Notifications
You must be signed in to change notification settings - Fork 124
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
Openssl3 base images part1 #2926
Conversation
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 looking good! Two non-line level comments:
- Mind updating the PR description? I meant to note this on the base image PR as well.
- This should include a single CHANGELOG entry indicating that we've updated our base image to use a more modern version of Ubuntu.
Thanks!
local envs | ||
envs=$(docker inspect -f '{{range $index, $value := .Config.Env}}{{$value}} {{end}}' "$container") | ||
local workDir | ||
workDir=$(docker inspect -f '{{ .Config.WorkingDir }}' "$container") | ||
local user | ||
user=$(docker inspect -f '{{ .Config.User }}' "$container") | ||
local entrypoint | ||
entrypoint=$(docker inspect -f '[{{range $index, $value := .Config.Entrypoint }}{{if $index}},{{end}}"{{$value}}"{{end}}]' "$container") | ||
local cmd | ||
cmd=$(docker inspect -f '[{{range $index, $value := .Config.Cmd }}{{if $index}},{{end}}"{{$value}}"{{end}}]' "$container") | ||
local ports | ||
IFS=":" read -r -a ports <<< "$(docker inspect -f '{{range $port, $empty := .Config.ExposedPorts}}--change:EXPOSE {{$port}}:{{end}}' "$container")" |
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 clever and a nice improvement to prevent duplicating configuration. Mind adding a comment at the top explaining what this is doing so it's easier to understand at-a-glance?
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.
Added some note.
Dockerfile
Outdated
@@ -1,4 +1,4 @@ | |||
FROM cyberark/ubuntu-ruby-fips:latest | |||
FROM registry.tld/cyberark/ubuntu-ruby-fips:20.04-2.0.7-14 |
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.
I assume this won't be version pinned once the base image PR is merged?
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.
Correct, pinned just for pipeline verification.
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.
Removed. Build will fail until merging cyberark/conjur-base-image#122
6a74fd4
to
1f5feda
Compare
Push-forced to address review comments. @micahlee this one could be reviewed again, thanks. |
1f5feda
to
2b0ca6e
Compare
2b0ca6e
to
3b05d0f
Compare
88edbaa
to
adb87c9
Compare
adb87c9
to
b3c8425
Compare
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.
LGTM! I also double checked that the dev environment works as expected with this PR. Thanks!
b3c8425
to
32be785
Compare
Code Climate has analyzed commit 32be785 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 88.4% (0.0% change). View more on Code Climate. |
Desired Outcome
Goal is to provide some changes from #2874 to make it smaller and deliver tagging strategy earlier
Implemented Changes
Describe how the desired outcome above has been achieved with this PR. In
particular, consider:
Switched to base image new tagging
Connected Issue/Story
Resolves #[relevant GitHub issue(s), e.g. 76]
CyberArk internal issue ID: [insert issue ID]
Definition of Done
At least 1 todo must be completed in the sections below for the PR to be
merged.
Changelog
CHANGELOG update
Test coverage
changes, or
Documentation
README
s) were updated in this PRBehavior
Security