I have to start a container, which should run COMMAND_1 and COMMAND_2 [Only after COMMAND_1 is done]. But I am getting Promise rejection error. How to solve this. Kindly help.
Things I tried:
ENTRYPOINT ["./entrypoint.sh"]
OR
CMD ["./entrypoint.sh"]
Where entrypoint.sh containes two commands
#!/bin/bash
COMMAND_1
COMMAND_2
ERROR while running container:
(node:48) UnhandledPromiseRejectionWarning: Error: Exited with code 3
at ChildProcess.cp.once.code (/usr/local/lib/node_modules/artillery/node_modules/opn/index.js:85:13)
at Object.onceWrapper (events.js:286:20)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Socket.stream.socket.on (internal/child_process.js:389:11)
at Socket.emit (events.js:198:13)
at Pipe._handle.close (net.js:607:12)
(node:48) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:48) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.`