Skip to content

Commit

Permalink
use command substitution inside RUN cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Oct 7, 2024
1 parent 318ad8a commit 0ab5761
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker-build-context/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ ENV ROSTER_FILE_NAME=roster.smd
COPY $ROSTER_FILE_NAME .
# TODO: uninstall jq
RUN sudo apt-get install -y jq
ENV NODE_ID=$(jq ".[1].value" $SMD_FOLDER/$ROSTER_FILE_NAME)
RUN sed -i "s/\(^service {\)/\1\n\tnode-id $NODE_ID/" /etc/aerospike/aerospike.template.conf
RUN sed -i "s/\(^service {\)/\1\n\tnode-id $(jq --raw-output ".[1].value" $SMD_FOLDER/$ROSTER_FILE_NAME)/" /etc/aerospike/aerospike.template.conf

0 comments on commit 0ab5761

Please sign in to comment.