iron-io / dockerworker

The new IronWorker workflow examples. Test locally, then upload and start queuing jobs!
http://www.iron.io
232 stars 47 forks source link

using java-dev images #20

Closed arschles closed 8 years ago

arschles commented 8 years ago

we now have iron/java-dev images that contain the JDK. will have new iron/java images (will open a PR in https://github.com/iron-io/dockers with those changes) that only contain the JRE (minus the GUI components) as well, which should be smaller than current.

cc/ @treeder

arschles commented 8 years ago

@treeder this is now ready

Aarons-MBP:java arschles$ docker run --rm -v "$(pwd)":/worker -w /worker iron/java-dev:1.8 sh -c 'javac -cp "json-java.jar:gson-2.2.4.jar:ironworker.jar" Worker101.java PayloadData.java'
Aarons-MBP:java arschles$ docker run --net=host -e PAYLOAD_FILE=hello.payload.json --rm -v "$(pwd)":/worker -w /worker iron/java:1.8 sh -c 'java -cp gson-2.2.4.jar:json-java.jar:ironworker.jar:. Worker101 -config hello.config.yml -id 123'
Running worker
http://httpbin.org/get?query=meerkats
{"query":"meerkats"}
treeder commented 8 years ago

Can't merge.

arschles commented 8 years ago

@treeder all good now

treeder commented 8 years ago

Can't merge again, another update please. ;)

arschles commented 8 years ago

Will do this afternoon

Sent from my iPhone

On Oct 2, 2015, at 11:41, Travis Reeder notifications@github.com wrote:

Can't merge again, another update please. ;)

— Reply to this email directly or view it on GitHub.

arschles commented 8 years ago

@treeder good to go