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

Unexpected token ILLEGAL #15

Closed
sverhagen opened this issue Mar 12, 2016 · 3 comments
Closed

Unexpected token ILLEGAL #15

sverhagen opened this issue Mar 12, 2016 · 3 comments

Comments

@sverhagen
Copy link

I think I'm following the instructions, but I'm getting the following error:

$ ./bin/dockerfilelint ../docker/Dockerfile
E:\dockerfilelint\lib\reference.js:4
    'description': `All commands in a Dockerfile require at least 1 argument.
                   ^
SyntaxError: Unexpected token ILLEGAL
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (E:\dockerfilelint\lib\messages.js:2:17)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)

Running from Cygwin.

@marccampbell
Copy link
Member

@sverhagen it's now possible to run this in a Docker container with:

sudo docker run -v `pwd`/Dockerfile:/Dockerfile dockerfilelint /Dockerfile

Will this work for your needs?

@tianon
Copy link

tianon commented Mar 29, 2016

You can also use the stdin support added in #12! 😄

$ cat Dockerfile | docker run -i --rm dockerfilelint

@sverhagen
Copy link
Author

The root cause of this issue was having a wrong version of Node, due to what the distro in question had to offer. This has been mitigated by using a Docker image! 👍

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

3 participants