-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- wait for istio-proxy container to be ready before starting producer container - stop istio-proxy container after producer completes execution
- Loading branch information
1 parent
7a4b43e
commit 80ad843
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
FROM node:lts-alpine | ||
|
||
WORKDIR / | ||
|
||
COPY package*.json ./ | ||
|
||
RUN apk --no-cache add curl | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
ENTRYPOINT ["node", "index.js"] | ||
# ENTRYPOINT ["node", "index.js"] | ||
CMD [ "/bin/sh", "-c", "until curl --head localhost:15000 ; do echo Waiting for Sidecar; sleep 3 ; done ; echo Sidecar available; node index.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters