Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Docker image should return correct exit code, based on Java errors etc #2

Open
CpuID opened this issue Sep 9, 2015 · 0 comments
Open

Comments

@CpuID
Copy link

CpuID commented Sep 9, 2015

Had a misconfigured IAM role, expected a non-zero exit code (running processor mode under Jenkins, which would detect and email on failure). Returned a zero exit code, ideally this should return non-zero on any Java errors.

Example:

| Error     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
| Error     at java.lang.Thread.run(Thread.java:745)
| Error 2015-09-09 00:43:41,425 [localhost-startStop-1] ERROR BootStrap  - Startup failed
Message: failed to poll reservation prices for You are not authorized to perform this operation. (Service: AmazonEC2; Status Code: 403; Error Code: UnauthorizedOperation; Request ID: ......)
    Line | Method
->>  110 | init                             in com.netflix.ice.basic.BasicReservationService
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|     95 | <init>                           in com.netflix.ice.processor.ProcessorConfig
|    186 | doCall . . . . . . . . . . . . . in BootStrap$_closure1
|    327 | evaluateEnvironmentSpecificBlock in grails.util.Environment
|    320 | executeForEnvironment . . . . .  in     ''
|    296 | executeForCurrentEnvironment     in     ''
|    262 | run . . . . . . . . . . . . . .  in java.util.concurrent.FutureTask
|   1145 | runWorker                        in java.util.concurrent.ThreadPoolExecutor
|    615 | run . . . . . . . . . . . . . .  in java.util.concurrent.ThreadPoolExecutor$Worker
^    745 | run                              in java.lang.Thread
[root@server ~]# echo $?
0

Started using docker run .... syntax.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant