Skip to content

Commit 744097b

Browse files
committed
Added libyang (with yanglint) to the Dockerfile
- Legacy-Id: 13881
1 parent ce9291d commit 744097b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

docker/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,17 @@ RUN apt-get update
105105
RUN apt-get install -qy mysql-apt-config
106106
RUN rm /etc/apt/sources.list.d/mysql-apt-config.list
107107

108+
# Get the key used to sign the libyang repo
109+
RUN wget -nv http://download.opensuse.org/repositories/home:liberouter/Debian_9.0/Release.key
110+
RUN apt-key add - < Release.key
111+
RUN rm Release.key
112+
113+
# Add apt source entry for libyang
114+
RUN echo "deb http://download.opensuse.org/repositories/home:/liberouter/Debian_8.0/ /" >> /etc/apt/sources.list.d/libyang.list
115+
108116
# Update the package defs, and install the desired mysql from the mysql repo
109117
RUN apt-get update
110-
RUN apt-get install -qy mysql-community-server libmysqlclient-dev
118+
RUN apt-get install -qy mysql-community-server libmysqlclient-dev libyang
111119

112120
# This is expected to exist by the mysql startup scripts:
113121
RUN touch /etc/mysql/debian.cnf

0 commit comments

Comments
 (0)