Skip to content

Adding Docker option #3

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

Merged
merged 6 commits into from
Jan 31, 2018
Merged

Adding Docker option #3

merged 6 commits into from
Jan 31, 2018

Conversation

m4n3dw0lf
Copy link
Contributor

No description provided.

@kingthorin
Copy link

Nice work!

@CSPF-Founder CSPF-Founder merged commit be656b2 into CSPF-Founder:master Jan 31, 2018
@jay-from-future
Copy link

jay-from-future commented Jun 2, 2018

Hello @m4n3dw0lf @kingthorin @CSPF-Founder

I tried to use Docker feature but it does not work for me. It seems that it somehow connected to mysql version.

I've checked the repo and just executed "docker-compose up", then
http://localhost:8080/JavaVulnerableLab/Install and click the Install Button, I've got following error in console log:

javavulnlab_1 | SQLException: Could not create connection to database server. javavulnlab_1 | SQLState: 08001 javavulnlab_1 | VendorError: 0
and following message on web UI: "Something went wrong. Unable to install"

So I've changed mine docker-compose.yml from "image: mysql" to "image: mysql:5.7" and it works for me.

Could it be connected to new caching_sha2_password authentication plugin in MySQL 8.0
(https://dev.mysql.com/doc/refman/8.0/en/mysql-nutshell.html) ?

From my point of view there are two possible solutions:

  • add mysql version (5.7) implicitly to avoid such problem
  • try to migrate to mysql 8.0, but perhaps it will be needed to retest application

@vikasprogrammer
Copy link

@ GrigoriyLyullin

  • add mysql version (5.7) implicitly to avoid such problem

I am getting this error after changing mysql to mysql:5.7 in docker-compose.yml
java.lang.NumberFormatException: For input string: "3306abc"

@vikasprogrammer
Copy link

Ended up using jdbc:mysql://mysql:3306/ to get this installed.

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.

5 participants