-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error during deploy #24
Comments
Hello, I haven't deployed a java app yet, but I am testing with one, so I hope I can help. What does your boxfile look like? Are you using maven as a build tool? Are you packaging your application into a final fat .jar? Are you using any kind of framework, like http://sparkjava.com/? I generate a fat jar file with maven and have it configured so I can run a server with
It might be faster / get more awareness if you ask around in the #java channel on slack. |
Hi @bnunamak, thanks for the reply! I'm not a java dev, I was just trying to deploy Graylog which is a bunch of jar files. Turns out I was missing these strings: engine.config:
runtime: oracle-jdk8
gradle_version: '4.2' So only run.config:
engine: java is not enough, and Here is my boxfile for Graylog: run.config:
engine: java
engine.config:
compile: 'echo "skip compile"'
runtime: oracle-jdk8
gradle_version: '4.2'
extra_path_dirs:
- dist/bin
data.elasticsearch:
image: nanobox/elasticsearch:5
data.mongodb:
image: nanobox/mongodb:3.4
data.storage:
image: nanobox/unfs
web.main:
start: graylogctl run
network_dirs:
data.storage:
- server
ports:
# Plaintext UDP
- udp:5555:5555
# nginx via Syslog UDP
- udp:12401:12401
- udp:12402:12402
deploy.config:
transform:
- bash ./setup.sh # generates config file from env vars |
@minibikini Good catch. This is actually a use-case to allow users to disable the compile step so you can just use pre-built JARs that don't require compilation. cc @sanderson |
Hi,
Strangely, I can’t deploy java apps at all, here is what I get:
I have tried to
nanobox destroy
. I've even tried to deploy an empty java app, whereboxfile.yml
was the only file in the project/directory and it contained these two lines only:Nanobox Version 2.3.0-171031T1616 (80207fe)
macos 10.13 High Sierra 😢
The text was updated successfully, but these errors were encountered: