Skip to content

Commit

Permalink
exec
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Oct 8, 2024
1 parent bb1cb16 commit 638853b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build-context/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ RUN sed -i "s/\(namespace.*{\)/\1\n\tstrong-consistency-allow-expunge true/" $AE
ARG ROSTER_FILE_NAME=roster.smd
COPY $ROSTER_FILE_NAME .

FROM busybox as get-sh
# There's no tag for the latest major version to prevent breaking changes in jq
# This is the next best thing
FROM busybox as get-sh
FROM ghcr.io/jqlang/jq:1.7 as get-node-id
COPY $ROSTER_FILE_NAME .
COPY --from=get-sh /bin/busybox .
ARG NODE_ID_FILE_NAME=node_id
RUN busybox sh -c jq --raw-output '.[1].value' $ROSTER_FILE_NAME > $NODE_ID_FILE_NAME
RUN ["./busybox", "sh", "-c", "\"jq --raw-output '.[1].value' $ROSTER_FILE_NAME > $NODE_ID_FILE_NAME\""]

FROM configure-server as set-node-id
COPY --from=get-node-id $NODE_ID_FILE_NAME .
Expand Down

0 comments on commit 638853b

Please sign in to comment.