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

FROM Definition does not allow '-' in identifiers #31

Open
woidda opened this issue Jun 15, 2016 · 1 comment
Open

FROM Definition does not allow '-' in identifiers #31

woidda opened this issue Jun 15, 2016 · 1 comment

Comments

@woidda
Copy link

woidda commented Jun 15, 2016

It seems as if minus is not allowed in docker image names.

For example FROM anapsix/alpine-java leads to an error indicator "Missing EOF at '-'".
My guess is that the problem lies in your DSL definition of VALID_IMAGE_NAME which uses ID as reference for valid names.

The ID is inherited from the grammar org.eclipse.xtext.common.Terminals with following definition:

terminal ID : 
  ('^')?('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;

Well, there is no minus allowed here. It should be an easy fix...

@col-panic
Copy link

Same goes for COPY commands like

COPY ebox-elexis /opt/ebox-elexis/

which says mismatched input '-' expecting RULE_ONE_SPACE_AND_WHATEVER

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

No branches or pull requests

2 participants