Dockerfile-maven: [1.4.12] Private repository with port number not valid anymore

Created on 30 Jul 2019  路  10Comments  路  Source: spotify/dockerfile-maven

Description

Private repository with port in address invalid.

How to reproduce

https://myrepo:5001/project

What do you expect

Port is a valid part of the repository URL.

What happened instead

Repo name "myrepo:5001/project" must contain only lowercase, numbers, '-', '_' or '.'

See https://github.com/spotify/dockerfile-maven/commit/c0ce28f2050ad558946d394648d8bf70371c1509

Most helpful comment

Any idea when the pull request will get merged? Unable to use this with a private repository on a different port at the moment

All 10 comments

only 80 port!

@buhuan192 Can you tell us why?

I don't get it.

@buhuan192 bullshit, this would mean no ssl/tls...

@mmaeller I think @SkySonR just wanted to point out the relevant changes which cause this issue. I completely agree, that this is a must have as most companies I work with also use custom private repositories which might be hosted on the same hostname but different ports.

We're seeing the exact same issue, can't use a private repository with a custom port (which, as said above, is a very common use-case).
Looks like the issue can be easily fixed by changing VALID_REPO_REGEX

@mmaeller has got a good fix to this in his branch with a PR pending.

String VALID_REPO_REGEX = "^([a-z0-9_.-])+(\\/[a-z0-9_.-]+)*$";
You are right!
See if the next version can solve this little problem.
Please view the source files锛欱uildMojo.java

This bug have appeared in v1.4.11 and still happening in v1.4.12

Any idea when the pull request will get merged? Unable to use this with a private repository on a different port at the moment

Was this page helpful?
0 / 5 - 0 ratings

Related issues

beihaifeiwu picture beihaifeiwu  路  7Comments

yangguangftlp picture yangguangftlp  路  6Comments

joshdcollins picture joshdcollins  路  4Comments

sergiomazoodigeo picture sergiomazoodigeo  路  3Comments

saturnism picture saturnism  路  7Comments