Skip to content

Commit

Permalink
Update Dockerfile.podvm_builder
Browse files Browse the repository at this point in the history
  • Loading branch information
wainersm authored Sep 11, 2023
1 parent a1696db commit 42a84b4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion podvm/Dockerfile.podvm_builder
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,15 @@ RUN echo $CAA_SRC

RUN echo $CAA_SRC_REF

RUN git clone ${CAA_SRC} -b ${CAA_SRC_REF} cloud-api-adaptor
RUN if [ -n "${CAA_SRC}" ]; then \
rm -rf cloud-api-adaptor && \
git clone ${CAA_SRC} cloud-api-adaptor;\
fi && \
if [ -n "${CAA_SRC_REF}" ]; then \
cd cloud-api-adaptor && \
git fetch origin ${CAA_SRC_REF} && \
git checkout FETCH_HEAD -b ${CAA_SRC_REF} ;\
fi
RUN git clone ${KATA_SRC} kata-containers
RUN cd kata-containers && git checkout ${KATA_SRC_BRANCH}

Expand Down

0 comments on commit 42a84b4

Please sign in to comment.