Skip to content

Debian Dockerfile fixes #801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions build/docker/debian-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,27 @@ ADD . /nscp/

ARG DEBIAN_FRONTEND=noninteractive

#Debian moved sources to archive, see https://stackoverflow.com/questions/76094428/debian-stretch-repositories-404-not-found
RUN sed -i -e 's/deb.debian.org/archive.debian.org/g' \
-e 's|security.debian.org/|archive.debian.org/|g' \
-e '/stretch-updates/d' /etc/apt/sources.list

RUN apt-get update && apt-get install -y build-essential

RUN apt-get install -y cmake python python-dev libssl-dev libboost-all-dev protobuf-compiler python-protobuf libprotobuf-dev python-sphinx libcrypto++-dev libcrypto++ liblua5.1-0-dev libgtest-dev
RUN apt-get install -y cmake python python-dev libssl-dev libboost-all-dev protobuf-compiler python-protobuf libprotobuf-dev \
python-sphinx libcrypto++-dev libcrypto++ liblua5.1-0-dev libgtest-dev
RUN apt-get install -y git wget dos2unix debhelper dh-virtualenv python-pip zip devscripts

ENV GH_TOKEN=UPDATE_ME

RUN chmod u+x /nscp/ext/md-protobuf/protoc-gen-md
#get around Failed loading extension "toc(permalink=true)".
#see https://github.com/mkdocs/mkdocs/issues/1640#issue-364121171
RUN pip install Markdown==2.6.11
#mkdocs does not support python 2 after 0.16.x
RUN pip install jinja2 mkdocs==0.16.3 mkdocs-material==1.4.1

RUN pip install jinja2 mkdocs mkdocs-material github3.py
# pip package wrapt on arm64 fails, lock to older version to get things to install correctly
RUN apt-get install -y libffi-dev && pip install wrapt==1.12.1 cffi && pip install github3.py

RUN mkdir -p /build
RUN mkdir -p /packages
Expand All @@ -25,4 +36,3 @@ VOLUME /packages
WORKDIR /build

CMD /nscp/build/sh/build-debian.sh

2 changes: 1 addition & 1 deletion docs/docs/api/rest/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# NSClient++ API

NSClient++ provides its own HTTP API which can
be enabled with the [WEBServer module](../reference/generic/WEBServer.md#WEBServer).
be enabled with the [WEBServer module](../../reference/generic/WEBServer.md#WEBServer).

The new API is described in separate pages (on per object):

Expand Down