blob: d56d20a00a6a6eed855c194f84707aa73469dada (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
FROM docker.io/sysrepo/sysrepo-netopeer2:latest
RUN apt-get update && apt-get install -y python3 python3-pip
RUN mkdir /logs
COPY ./models /resources/models
COPY ./scripts ./scripts
COPY ./src/python/netconf_server ./application/netconf_server
COPY src/python/netconf_change_listener_application.py ./application/netconf_change_listener_application.py
COPY ./src/python/netconf_rest_application.py ./application/netconf_rest_application.py
COPY ./src/python/requirements.txt ./application/requirements.txt
COPY ./src/python/setup.py ./application/setup.py
RUN pip3 install -e ./application/
RUN mkdir -p /resources/certs && \
./scripts/generate-certificates.sh /resources/certs
ENV ENABLE_TLS=false
ENTRYPOINT ["./scripts/set-up-netopeer.sh", "/resources/models", "/resources/certs"]
|