-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Dockerfile Improvements #2524
Dockerfile Improvements #2524
Conversation
Please retry analysis of this Pull-Request directly on SonarCloud. |
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.
The changes look great to me, three points of note below:
- The use of
curl
can lead to corporate firewall fun 🙃, this should be a non-issue for most end-users and does not constitute an issue with the dockerfile itself. - Using
local.yml
rather thandefault.yml
is a great change from my perspective, especially for first-time users to avoid the--insecure
flag. - As before, the user will have to clone the repo with
--recursive
set to build the image, if all submodules are not pulled down, the build will fail onRUN ./update-agents.sh
without a graceful message. There are three possible solutions to this (down the line, as it does not constitute an issue with the dockerfile and is out-of-scope for this PR).
- Updating the
README.MD
to provide instructions on docker deployment (these were present in 3.1.0 but appear to have been removed), - Add hooks to clone submodules if not already present post checkout,
- Add a conditional to the
RUN
command in line 36 to clone all submodules ifupdate-agents.sh
is not present (similar in style to that on line 53).
Overall, I really like the changes and think it represents an improvement with or without the ideas above. Adding docker documentation to the README
and to readthedocs may be a candidate for a future enhancement ticket.
…fore proceeding with installation
Kudos, SonarCloud Quality Gate passed! |
Description
Adding various improvements to the dockerfile to streamline things and make it more compatible with the new v4 updates:
--insecure flag
)Type of change
How Has This Been Tested?
Tested with non-recursive clone of CALDERA to check error handling.
Tested with recent version of CALDERA (90af731). Built using the following docker command:
Tested docker image deployment via helm chart (should work the same with just a standard docker container).
Compiled agents with various extensions for each platform.
Ran a basic operation (Check adversary) using agents from all 3 platforms.
Also tested building and running via docker compose using:
Compiled agents on all 3 platforms with various extensions and then ran basic operation (check adversary)
Checklist: