Skip to content

Add ability to run via containers#550

Merged
digininja merged 3 commits into
digininja:masterfrom
hoang-himself:containers
Jun 11, 2023
Merged

Add ability to run via containers#550
digininja merged 3 commits into
digininja:masterfrom
hoang-himself:containers

Conversation

@hoang-himself

@hoang-himself hoang-himself commented Apr 3, 2023

Copy link
Copy Markdown
Contributor

Closes #386, replaces #548, related #384

@digininja

digininja commented Apr 4, 2023 via email

Copy link
Copy Markdown
Owner

@hoang-himself

hoang-himself commented Apr 5, 2023

Copy link
Copy Markdown
Contributor Author

I don't really see the problem here, as all of the configs have default values. With that said, this setup only needs a different DB_SERVER so it's possible to have only the db_server read from the environment. If you're afraid that there might be env collision, how about adding DVWA_ prefix?

Setting Docker to use only the defaults of the config file is possible, but it will require setting the network mode to host. It can be predicted that there will be port already in use errors for port 80 and 3306, but the exposed ports can only be configured by the app within the containers, which will require knowledge about Docker and the image being used. Doing this might create more problems in the long run.

@digininja

digininja commented Apr 5, 2023 via email

Copy link
Copy Markdown
Owner

@hoang-himself

Copy link
Copy Markdown
Contributor Author

PTAL

@digininja

digininja commented Apr 5, 2023 via email

Copy link
Copy Markdown
Owner

Comment thread README.md Outdated
Comment thread README.md Outdated
@digininja

Copy link
Copy Markdown
Owner

Asking for help on an unrelated three year old code change, this is an example of why any process has to be as simple and as thoroughly documented as possible.

a7e7955

@hoang-himself

Copy link
Copy Markdown
Contributor Author

PTAL

@digininja

digininja commented Apr 15, 2023 via email

Copy link
Copy Markdown
Owner

@hoang-himself hoang-himself requested a review from digininja April 24, 2023 03:18
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
@digininja

digininja commented May 22, 2023 via email

Copy link
Copy Markdown
Owner

Comment thread README.md
Comment thread README.md Outdated
Comment thread README.md Outdated
@hoang-himself hoang-himself requested a review from digininja June 4, 2023 15:27
Comment thread README.md
Comment thread README.md
Comment thread README.md
@digininja

Copy link
Copy Markdown
Owner

Getting closer!

@digininja

digininja commented Jun 5, 2023 via email

Copy link
Copy Markdown
Owner

@hoang-himself

hoang-himself commented Jun 5, 2023

Copy link
Copy Markdown
Contributor Author

I want to tidy up the commit history once the PR is ready, so do give me some time then.

@hoang-himself hoang-himself requested a review from digininja June 5, 2023 18:35
@digininja

Copy link
Copy Markdown
Owner

I just followed all the instructions and it worked fine except one bug that was my fault, at some point I committed a change to the default config file which turned authentication off. I've turned that back on again so if you can make sure your default config gets updated with that change I think this is all ready to go.

I know it has been a lot more work than you first thought, but I hope you see it is all worth it and gives something that is much easier to follow for complete beginners.

Your next challenge, if you want, is to put some vulnerabilities in the container so users have even more to play with.

@hoang-himself

Copy link
Copy Markdown
Contributor Author

I've turned that back on again so if you can make sure your default config gets updated with that change I think this is all ready to go.

I have rebased my branch to reflect this.

I know it has been a lot more work than you first thought, but I hope you see it is all worth it and gives something that is much easier to follow for complete beginners.

This is definitely more work than any contributions I have worked on. Still, the READMEs of other languages need some work, and there is not much I can do about that.

Your next challenge, if you want, is to put some vulnerabilities in the container so users have even more to play with.

I don't know how well this fits in the scope of this project, but it's a good idea for future work.

@hoang-himself

Copy link
Copy Markdown
Contributor Author

I have cleaned the commit history. It seems to have fixed the line ending conflict as well.

@CapiZerbino

Copy link
Copy Markdown

<3

@digininja digininja merged commit 34a10d4 into digininja:master Jun 11, 2023
@digininja

Copy link
Copy Markdown
Owner

Thank you for all the hard work.

The idea about vulns in the container was for a new project, not as part of this.

@digininja

Copy link
Copy Markdown
Owner

I've just told the world about this.

https://twitter.com/digininja/status/1667859106638569472

@hoang-himself

Copy link
Copy Markdown
Contributor Author

Great! Thank you for your work.

@hoang-himself hoang-himself deleted the containers branch June 11, 2023 13:28
noe-orga-NTT pushed a commit to noe-orga-NTT/DVWA that referenced this pull request May 30, 2025
noe-orga-NTT pushed a commit to noe-orga-NTT/DVWA that referenced this pull request May 30, 2025
noe-orga-NTT pushed a commit to noe-orga-NTT/DVWA that referenced this pull request May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants