use local yangmodels/openconfig (if present) instead of github
This commit is contained in:
parent
794a17c2bb
commit
06d8e85290
9 changed files with 58 additions and 39 deletions
|
|
@ -46,23 +46,13 @@ RUN apk add --update net-snmp net-snmp-dev
|
|||
|
||||
# Checkout standard YANG models for tests (note >1G for full repo)
|
||||
RUN mkdir -p /usr/local/share/yang
|
||||
|
||||
WORKDIR /usr/local/share/yang
|
||||
COPY yang .
|
||||
|
||||
RUN git config --global init.defaultBranch master
|
||||
RUN git init
|
||||
RUN git remote add -f origin https://github.com/YangModels/yang
|
||||
RUN git config core.sparseCheckout true
|
||||
RUN echo "standard/" >> .git/info/sparse-checkout
|
||||
RUN echo "experimental/" >> .git/info/sparse-checkout
|
||||
|
||||
RUN git pull origin main
|
||||
|
||||
# Checkout OPENCONFIG YANG models for tests
|
||||
RUN mkdir -p /usr/local/share/openconfig
|
||||
WORKDIR /usr/local/share/openconfig
|
||||
|
||||
# Checkut Openconfig models for tests
|
||||
RUN git clone https://github.com/openconfig/public
|
||||
COPY openconfig .
|
||||
|
||||
# Create a directory to hold source-code, dependencies etc
|
||||
RUN mkdir -p /clixon/build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue