Skip to content
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

Add ability to run via containers #550

Merged
merged 3 commits into from
Jun 11, 2023
Merged

Add ability to run via containers #550

merged 3 commits into from
Jun 11, 2023

Conversation

hoang-himself
Copy link
Contributor

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

Closes #386, replaces #548, related #384

@digininja
Copy link
Owner

digininja commented Apr 4, 2023 via email

@hoang-himself
Copy link
Contributor Author

hoang-himself commented Apr 5, 2023

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
Copy link
Owner

digininja commented Apr 5, 2023 via email

@hoang-himself
Copy link
Contributor Author

PTAL

@digininja
Copy link
Owner

digininja commented Apr 5, 2023 via email

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@digininja
Copy link
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
Contributor Author

PTAL

@digininja
Copy link
Owner

digininja commented Apr 15, 2023 via email

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@digininja
Copy link
Owner

digininja commented May 22, 2023 via email

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
@digininja
Copy link
Owner

Getting closer!

@digininja
Copy link
Owner

digininja commented Jun 5, 2023 via email

@hoang-himself
Copy link
Contributor Author

hoang-himself commented Jun 5, 2023

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

@digininja
Copy link
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
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
Contributor Author

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

@CapiZerbino
Copy link

<3

@digininja digininja merged commit 34a10d4 into digininja:master Jun 11, 2023
1 check passed
@digininja
Copy link
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
Owner

I've just told the world about this.

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

@hoang-himself
Copy link
Contributor Author

Great! Thank you for your work.

@hoang-himself hoang-himself deleted the containers branch June 11, 2023 13:28
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.

None yet

3 participants