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

Issue building image from dockerfile #15

Closed
JohnGiorgi opened this issue Jul 5, 2017 · 8 comments
Closed

Issue building image from dockerfile #15

JohnGiorgi opened this issue Jul 5, 2017 · 8 comments

Comments

@JohnGiorgi
Copy link

I am having an issue building an image form the dockerfile. Namely, step 4/13 failed:

Step 4/13 : ADD neji-server.zip /opt/neji-server.zip
ADD failed: stat /var/lib/docker/tmp/docker-builder601862817/neji-server.zip: no such file or directory

I don't see /opt/neji-server.zip in the neji github directory, so I am not sure how to fix this issue.

Admittedly I do not know much about Docker/Dockerfiles so perhaps I am making a silly mistake. Any advice for setting up this docker would be appreciated!

@davidcampos
Copy link
Contributor

@JohnGiorgi
The neji-server.zip file should be generated using the neji.sh utility with the -s argument flag. Than place the generated file in /opt/neji-server.zip or change the path in the Dockerfile to your file. After this you can build your own docker image.

@JohnGiorgi
Copy link
Author

Thanks for the response David.

I download the latest version of neji, move into the folder and call ./neji.sh -s. I get the following error in return:

[ERROR] There was a problem processing the input arguments.
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -s
	at org.apache.commons.cli.Parser.processOption(Parser.java:363)
	at org.apache.commons.cli.Parser.parse(Parser.java:199)
	at org.apache.commons.cli.Parser.parse(Parser.java:85)
	at pt.ua.tm.neji.cli.Main.main(Main.java:157)

I get this error if I try the above steps but from within a cloned repo:

Exception in thread "main" java.lang.IllegalArgumentException: No enum constant pt.ua.tm.neji.context.InputFormat.raw
	at java.lang.Enum.valueOf(Enum.java:238)
	at pt.ua.tm.neji.context.InputFormat.valueOf(InputFormat.java:35)
	at pt.ua.tm.neji.cli.Main.main(Main.java:285)

Any advice?

@davidcampos
Copy link
Contributor

davidcampos commented Jul 10, 2017

@JohnGiorgi
Please make sure you are using the latest version of neji: 2.0.1.
This version includes some changes regarding the server generation.

@JohnGiorgi
Copy link
Author

@davidcampos

Sorry to be a pain, but I download the latest version (following your link above) and call the neji.sh script with the -s flag (and all the other arguments it requires) and I get the following Java Exception:

java.io.IOException: The neji-server jar file must be packaged first! Please run 'mvn clean install' first.
	at pt.ua.tm.neji.cli.Main.generateServer(Main.java:677)
	at pt.ua.tm.neji.cli.Main.main(Main.java:562)

This looks like a Maven command? I do not know much about Maven and so I do not know how to proceed with this error.

Any advice? Thanks so much for your patience and help.

@davidcampos
Copy link
Contributor

@JohnGiorgi
Can you please post the exact command that you are running to generate the server package?

@JohnGiorgi
Copy link
Author

@davidcampos

Yup. So I call ./neji.sh -s -i example/annotate/in/ -if RAW -o example/annotate/out/ -of JSON exactly and I get the error:

java.io.IOException: The neji-server jar file must be packaged first! Please run 'mvn clean install' first.
	at pt.ua.tm.neji.cli.Main.generateServer(Main.java:677)
	at pt.ua.tm.neji.cli.Main.main(Main.java:562)

If you are wondering why I am providing all the other arguments beside -s it is because Neji complains otherwise.

Thanks again!

@davidcampos
Copy link
Contributor

@JohnGiorgi
I have released Neji 2.0.2 fixing a minor issue with server generation.
Please test it and tell me if server generation is working properly.

@JohnGiorgi
Copy link
Author

@davidcampos
That seemed to do it! I was able to generate the .zip file.

Thanks so much for all of your help!

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