-
Notifications
You must be signed in to change notification settings - Fork 30
ROX-33559: Migrate collector images from UBI-minimal to UBI-micro #3021
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
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
895a2fb
chore: Optimize UBI-micro Dockerfiles with --installroot pattern
janisz 13c20e2
fix: Use UBI instead of UBI-minimal for package_installer
janisz 24fab83
fix: Preserve ubi-micro rpmdb by copying to /out first
janisz 320bc59
fix: Add openssl package for FIPS support
janisz 7970f98
fix: Add missing runtime libraries (libuuid, libstdc++)
janisz 4f4b635
fix: Add runtime packages to rpms.in.yaml for Konflux build
janisz c9dec44
fix: Add ca-certificates to konflux.Dockerfile
janisz d1c346e
chore: Consolidate Docker COPY commands to reduce image layers
janisz 419e3a9
fix: Use host repos for dnf --installroot in konflux.Dockerfile
janisz 250d3c8
fix: Add missing runtime packages to konflux.Dockerfile
janisz 4f9dffe
remove unnecessary pacakges
janisz 5c70d69
chore: Replace sed-based Dockerfile.dev generation with static file
janisz 2c0636d
fix: Add libcap-ng runtime dependency to collector images
janisz 1627414
fix
janisz 36d1dc3
fix
janisz 97aedf4
fix
janisz 7c3148d
chore: Rename Dockerfile.dev to dev.Dockerfile
janisz 589a43a
Update rpms.in.yaml
janisz 885bf9a
fix: Make cache cleanup more specific in Dockerfiles
janisz 003f5e8
chore: Use CentOS Stream 10 for dev.Dockerfile
janisz bae7789
fix: Use floating tags for non-Konflux Dockerfile
janisz 6100f0a
chore: Inline install commands in dev.Dockerfile
janisz 2c75d7c
refactor: Revert COPY consolidation to original pattern
janisz f0118b4
fix
janisz 55362c7
fix
janisz 467032e
fix
janisz 4aac0ca
Remove --allowearsing
janisz 3bb578c
Apply suggestion from @msugakov
janisz c0b5266
Apply suggestion from @janisz
janisz 33c7ae4
revert collector/.gitignore
janisz b72bece
cleanup
janisz 99e49c9
cleanup
janisz 4e10e93
comment gitignore
janisz 277834c
Update collector/container/konflux.Dockerfile
janisz d04295d
fixes
janisz 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,38 @@ | ||
| FROM quay.io/centos/centos:stream10 | ||
|
|
||
| ARG COLLECTOR_VERSION | ||
|
|
||
| ENV COLLECTOR_HOST_ROOT=/host | ||
|
|
||
| LABEL name="collector" \ | ||
| vendor="StackRox" \ | ||
| maintainer="support@stackrox.com" \ | ||
| summary="Runtime data collection for the StackRox Kubernetes Security Platform" \ | ||
| description="This image supports runtime data collection in the StackRox Kubernetes Security Platform." \ | ||
| io.stackrox.collector.version="${COLLECTOR_VERSION}" | ||
|
|
||
| WORKDIR / | ||
|
|
||
| RUN dnf upgrade -y && \ | ||
| dnf install -y libasan libubsan libtsan elfutils-libelf | ||
|
|
||
| # Uncomment this line to enable generation of core for collector | ||
| # RUN echo '/core/core.%e.%p.%t' > /proc/sys/kernel/core_pattern | ||
|
|
||
| COPY container/THIRD_PARTY_NOTICES/ /THIRD_PARTY_NOTICES/ | ||
| COPY kernel-modules /kernel-modules | ||
| COPY container/bin/collector /usr/local/bin/ | ||
| COPY container/bin/self-checks /usr/local/bin/self-checks | ||
| COPY container/status-check.sh /usr/local/bin/status-check.sh | ||
|
|
||
| EXPOSE 8080 9090 | ||
|
|
||
| HEALTHCHECK \ | ||
| # health checks within the first 5s are not counted as failure | ||
| --start-period=5s \ | ||
| # perform health check every 5s | ||
| --interval=5s \ | ||
| # the command uses /ready API | ||
| CMD /usr/local/bin/status-check.sh | ||
|
|
||
| ENTRYPOINT ["collector"] |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.