-
Notifications
You must be signed in to change notification settings - Fork 31
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
Open
janisz
wants to merge
35
commits into
master
Choose a base branch
from
ubi-micro
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
417c31a
chore: Optimize UBI-micro Dockerfiles with --installroot pattern
janisz ffc1485
fix: Use UBI instead of UBI-minimal for package_installer
janisz 06465c9
fix: Preserve ubi-micro rpmdb by copying to /out first
janisz 539e100
fix: Add openssl package for FIPS support
janisz 5400d69
fix: Add missing runtime libraries (libuuid, libstdc++)
janisz c0d2013
fix: Add runtime packages to rpms.in.yaml for Konflux build
janisz c8fc4b6
fix: Add ca-certificates to konflux.Dockerfile
janisz 2b7b491
chore: Consolidate Docker COPY commands to reduce image layers
janisz b7e45ba
fix: Use host repos for dnf --installroot in konflux.Dockerfile
janisz ade15e6
fix: Add missing runtime packages to konflux.Dockerfile
janisz 4b7f0cc
remove unnecessary pacakges
janisz ed7399e
chore: Replace sed-based Dockerfile.dev generation with static file
janisz 7da3fdc
fix: Add libcap-ng runtime dependency to collector images
janisz 59d3305
fix
janisz 79ea9f3
fix
janisz 043bdf2
fix
janisz 23dcc57
chore: Rename Dockerfile.dev to dev.Dockerfile
janisz ac04ffb
Update rpms.in.yaml
janisz 0cbd3c4
fix: Make cache cleanup more specific in Dockerfiles
janisz e58b235
chore: Use CentOS Stream 10 for dev.Dockerfile
janisz 0c438d7
fix: Use floating tags for non-Konflux Dockerfile
janisz 05cdb00
chore: Inline install commands in dev.Dockerfile
janisz 64e5d06
refactor: Revert COPY consolidation to original pattern
janisz 75b48d6
fix
janisz 97decac
fix
janisz be0091d
fix
janisz f0c53d5
Remove --allowearsing
janisz 0b78077
Apply suggestion from @msugakov
janisz 369f2f8
Apply suggestion from @janisz
janisz 6489ea6
revert collector/.gitignore
janisz efc9620
cleanup
janisz e4063a5
cleanup
janisz 90f9f93
comment gitignore
janisz 1a0e3f6
Update collector/container/konflux.Dockerfile
janisz a8faec2
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.