Skip to content

Commit

Permalink
Install netcat and jq in the common stage
Browse files Browse the repository at this point in the history
The wait-for.sh script requires netcat
  • Loading branch information
fortum-vaanavil committed Sep 16, 2023
1 parent 8c5c2c2 commit f7804a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ WORKDIR /opal
COPY scripts/wait-for.sh .
RUN chmod +x ./wait-for.sh
RUN ln -s /opal/wait-for.sh /usr/wait-for.sh

# netcat (nc) is used by the wait-for.sh script
RUN apt-get update && apt-get install -y netcat jq && apt-get clean

# copy startup script (create link at old path to maintain backward compatibility)
COPY ./scripts/start.sh .
RUN chmod +x ./start.sh
Expand Down Expand Up @@ -124,8 +128,6 @@ FROM client-standalone as client-cedar
# Temporarily move back to root for additional setup
USER root

RUN apt-get update && apt-get install -y netcat jq && apt-get clean

# Copy cedar from its build stage
COPY --from=cedar-builder /cedar-agent /bin/cedar-agent

Expand Down

0 comments on commit f7804a9

Please sign in to comment.