Skip to content

Commit

Permalink
WX-1445 Update docker image regex to handle python:3 correctly (#7367)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgainerdewar authored Feb 20, 2024
1 parent f01c1f3 commit 2019b27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ object DockerImageIdentifier {

( # Begin capturing group for name
[a-z0-9]+(?:[._-][a-z0-9]+)* # API v2 name component regex - see https://docs.docker.com/registry/spec/api/#/overview
(?::[0-9]+)? # Optional port
(?::[0-9]{4,5}|:443)? # Optional port (expect 4 or 5 digits OR :443)
(?:/[a-z0-9]+(?:[._-][a-z0-9]+)*)* # Optional additional name components separated by /
) # End capturing group for name

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class DockerImageIdentifierSpec
"0.8.1.1--htslib1.5_0"
),
("terrabatchdev.azurecr.io/postgres:latest", Option("terrabatchdev.azurecr.io"), None, "postgres", "latest"),
("python:3", None, None, "python", "3"),
("localhost:443/ubuntu", Option("localhost:443"), None, "ubuntu", "latest"),
// Very long tags with trailing spaces cause problems for the re engine
("someuser/someimage:supercalifragilisticexpialidociouseventhoughthesoundofitissomethingquiteatrociousifyousayitloudenoughyoullalwayssoundprecocious ",
None,
Expand Down

0 comments on commit 2019b27

Please sign in to comment.