Skip to content

Commit

Permalink
Merge pull request #676 from ondrej-fabry/remove-submodule
Browse files Browse the repository at this point in the history
Remove vpp git submodule (in master)
  • Loading branch information
VladoLavor authored Jun 7, 2018
2 parents 02c62e4 + b9d458d commit f874458
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

3 changes: 2 additions & 1 deletion docker/dev_vpp_agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ RUN mkdir -p /opt/vpp-agent/dev /opt/vpp-agent/plugin
WORKDIR /opt/vpp-agent/dev

ARG VPP_COMMIT
ARG VPP_REPO_URL

RUN /bin/bash -c "\
git clone https://github.com/ligato/vpp.git \
git clone ${VPP_REPO_URL} \
&& cd vpp \
&& git checkout ${VPP_COMMIT} \
&& UNATTENDED=y make vpp_configure_args_vpp='--disable-japi --disable-vom' install-dep bootstrap dpdk-install-dev build build-release;"
Expand Down
11 changes: 9 additions & 2 deletions docker/dev_vpp_agent/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ VPP_DEBUG_DEB=${VPP_DEBUG_DEB:-}
IMAGE_TAG=${IMAGE_TAG:-dev_vpp_agent}

AGENT_COMMIT=`git rev-parse HEAD`
VPP_COMMIT=`cd ../.. && git submodule status|grep vpp|cut -c2-41`

source ../../vpp.env

echo "repo agent commit: ${AGENT_COMMIT}"
echo "repo vpp commit: ${VPP_COMMIT}"
echo "repo vpp repo url: ${VPP_REPO_URL}"

while [ "$1" != "" ]; do
case $1 in
Expand All @@ -30,4 +32,9 @@ done
echo
echo "building docker image: ${IMAGE_TAG}"

sudo docker build --tag ${IMAGE_TAG} --build-arg VPP_DEBUG_DEB=${VPP_DEBUG_DEB} --build-arg AGENT_COMMIT=${AGENT_COMMIT} --build-arg VPP_COMMIT=${VPP_COMMIT} .
sudo docker build --tag ${IMAGE_TAG} \
--build-arg VPP_DEBUG_DEB=${VPP_DEBUG_DEB} \
--build-arg AGENT_COMMIT=${AGENT_COMMIT} \
--build-arg VPP_COMMIT=${VPP_COMMIT} \
--build-arg VPP_REPO_URL=${VPP_REPO_URL} \
.
1 change: 0 additions & 1 deletion vpp
Submodule vpp deleted from ac2b73
2 changes: 2 additions & 0 deletions vpp.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VPP_REPO_URL=https://gerrit.fd.io/r/vpp.git
VPP_COMMIT=2302d0dfa27a348d96a6c9a7d667bd910280a098

0 comments on commit f874458

Please sign in to comment.