purpleteam-labs / purpleteam

CLI component of OWASP PurpleTeam
https://owasp.org/www-project-purpleteam
Other
117 stars 15 forks source link

Re-work Dockerfiles #91

Open binarymist opened 2 years ago

binarymist commented 2 years ago

The idea is to reduce build times and image sizes.

Resources/Links

imlakshay08 commented 2 years ago

Hello @binarymist , I am on it. Could you please assign it to me and guide me about the project as well ?

binarymist commented 2 years ago

Where abouts do you think you need guidance? The changes will be localised to the Dockerfiles.

rahulsurwade08 commented 2 years ago

Hey @binarymist I think i can help with this issue. Can you assign this issue to me as well?

shaneg07 commented 2 years ago

Hi @binarymist, I want to help work on reducing the size and build times for these files. Seems like a great way to start contributing. Could you assign this to me?

binarymist commented 2 years ago

How did you get on with the Dockerfiles @imlakshay08 @RahulSurwade08 @shaneg07 ?

acald-creator commented 2 years ago

Hi, I started working on the Dockerfiles some days ago, but I haven't submitted a PR for review yet, but I would like to help with this.

acald-creator commented 2 years ago

I have submitted two PRs for this issue

https://github.com/purpleteam-labs/purpleteam-orchestrator/pull/34 https://github.com/purpleteam-labs/purpleteam-tls-scanner/pull/14

The only one left is the app-scanner which I have in place but I have not submitted the PR yet.

Freedisch commented 1 year ago

@binarymist, I'm building the docker image, and I keep getting the following error, maybe you could tell me if I missed something, I went through the documentation but i haven't found something to help me maybe i missed something 🤔, idk can you help me? executor failed running [/bin/sh -c apk add --no-cache shadow && if [ -z "getent group $LOCAL_GROUP_ID" ]; then addgroup -S -g $LOCAL_GROUP_ID $GROUP; else groupmod -n $GROUPgetent group $LOCAL_GROUP_ID | cut -d: -f1; fi && if [ -z "getent passwd $LOCAL_USER_ID" ]; then adduser -S -u $LOCAL_USER_ID -G $GROUP -s /bin/sh $USER; else usermod -l $USER -g $LOCAL_GROUP_ID -d /home/$USER -mgetent passwd $LOCAL_USER_ID | cut -d: -f1; fi]: exit code: 2