-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'middleware' into merge-middleware
- Loading branch information
Showing
16 changed files
with
1,152 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# gvm-libs-main-debian-buster-gcc-test | ||
|
||
# please follow docker best practices | ||
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/ | ||
|
||
# Use '-slim' image for reduced image size | ||
FROM debian:buster-slim | ||
|
||
# Provides a Debian buster image with the core build dependencies for gvm-libs | ||
LABEL module="gvm-libs" | ||
LABEL branch="main" | ||
LABEL platform="debian-buster" | ||
LABEL compiler="clang" | ||
LABEL configuration="deploy" | ||
|
||
# This will make apt-get install without question | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install core dependencies required for building gvm-libs | ||
RUN apt-get update && apt-get install --assume-yes \ | ||
clang \ | ||
clang-format \ | ||
clang-tools \ | ||
cmake \ | ||
git \ | ||
libglib2.0-dev \ | ||
libgnutls28-dev \ | ||
libgpgme-dev \ | ||
libhiredis-dev \ | ||
libpcap-dev \ | ||
libnet1-dev \ | ||
libssh-gcrypt-dev \ | ||
libxml2-dev \ | ||
pkg-config \ | ||
uuid-dev \ | ||
libssl-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# clone and install mqtt paho | ||
# workaround otherwise paho.mqtt.c creates man1 as a file | ||
RUN mkdir /usr/local/share/man/man1 | ||
|
||
RUN git clone --depth 1 https://github.com/eclipse/paho.mqtt.c \ | ||
&& cd paho.mqtt.c \ | ||
&& make \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& rm -rf paho.mqtt.c | ||
|
||
ENV LD_LIBRARY_PATH="/usr/local/lib" | ||
|
||
# clone and install gvm-libs | ||
RUN git clone --depth 1 \ | ||
https://github.com/greenbone/gvm-libs.git \ | ||
cd gvm-libs && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake -DCMAKE_BUILD_TYPE=Release .. && \ | ||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# gvm-libs-main-debian-buster-gcc-deploy | ||
|
||
# please follow docker best practices | ||
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/ | ||
|
||
# Use '-slim' image for reduced image size | ||
FROM debian:buster-slim | ||
|
||
# Provides a Debian buster image with the core build dependencies for gvm-libs | ||
LABEL module="gvm-libs" | ||
LABEL branch="main" | ||
LABEL platform="debian-buster" | ||
LABEL compiler="gcc" | ||
LABEL configuration="deploy" | ||
|
||
# This will make apt-get install without question | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install core dependencies required for building gvm-libs | ||
RUN apt-get update && apt-get install --no-install-recommends --assume-yes \ | ||
ca-certificates \ | ||
cmake \ | ||
gcc \ | ||
git \ | ||
libglib2.0-dev \ | ||
libgnutls28-dev \ | ||
libgpgme-dev \ | ||
libhiredis-dev \ | ||
libpcap-dev \ | ||
libssh-gcrypt-dev \ | ||
libxml2-dev \ | ||
libnet1-dev \ | ||
make \ | ||
pkg-config \ | ||
uuid-dev \ | ||
libssl-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# clone and install mqtt paho | ||
# workaround otherwise paho.mqtt.c creates man1 as a file | ||
RUN mkdir /usr/local/share/man/man1 | ||
|
||
RUN git clone --depth 1 https://github.com/eclipse/paho.mqtt.c \ | ||
&& cd paho.mqtt.c \ | ||
&& make \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& rm -rf paho.mqtt.c | ||
|
||
ENV LD_LIBRARY_PATH="/usr/local/lib" | ||
|
||
# clone and install gvm-libs | ||
RUN git clone --depth 1 \ | ||
https://github.com/greenbone/gvm-libs.git \ | ||
cd gvm-libs && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake -DCMAKE_BUILD_TYPE=Release .. && \ | ||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# gvm-libs-main-debian-buster-gcc-test | ||
|
||
# please follow docker best practices | ||
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/ | ||
|
||
# Use '-slim' image for reduced image size | ||
FROM debian:buster-slim | ||
|
||
# Provides a Debian buster image with the core build dependencies for gvm-libs | ||
LABEL module="gvm-libs" | ||
LABEL branch="main" | ||
LABEL platform="debian-buster" | ||
LABEL compiler="clang" | ||
LABEL configuration="test" | ||
|
||
# This will make apt-get install without question | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install core dependencies required for building gvm-libs | ||
RUN apt-get update && apt-get install --assume-yes \ | ||
clang \ | ||
clang-format \ | ||
clang-tools \ | ||
cmake \ | ||
git \ | ||
libglib2.0-dev \ | ||
libgnutls28-dev \ | ||
libgpgme-dev \ | ||
libhiredis-dev \ | ||
libpcap-dev \ | ||
libnet1-dev \ | ||
libssh-gcrypt-dev \ | ||
libxml2-dev \ | ||
pkg-config \ | ||
uuid-dev \ | ||
libssl-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# clone and install mqtt paho | ||
# workaround otherwise paho.mqtt.c creates man1 as a file | ||
RUN mkdir /usr/local/share/man/man1 | ||
|
||
RUN git clone --depth 1 https://github.com/eclipse/paho.mqtt.c \ | ||
&& cd paho.mqtt.c \ | ||
&& make \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& rm -rf paho.mqtt.c | ||
|
||
ENV LD_LIBRARY_PATH="/usr/local/lib" | ||
|
||
# Install Debian core dependencies required for testing gvm-libs | ||
# support and not yet installed as dependencies of gvm-libs-core | ||
RUN apt-get update && apt-get install --assume-yes \ | ||
lcov \ | ||
libical-dev \ | ||
libpq-dev \ | ||
libnet1-dev \ | ||
postgresql-server-dev-all \ | ||
xsltproc \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# install cgreen for unit tests | ||
RUN git clone --depth 1 https://github.com/cgreen-devs/cgreen.git \ | ||
&& cd cgreen \ | ||
&& make \ | ||
&& make test \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& rm -rf cgreen | ||
|
||
ENV LD_LIBRARY_PATH="/usr/local/lib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# gvm-libs-main-debian-buster-gcc-test | ||
|
||
# please follow docker best practices | ||
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/ | ||
|
||
# Use '-slim' image for reduced image size | ||
FROM debian:buster-slim | ||
|
||
# Provides a Debian buster image with the core build dependencies for gvm-libs | ||
LABEL module="gvm-libs" | ||
LABEL branch="main" | ||
LABEL platform="debian-buster" | ||
LABEL compiler="gcc" | ||
LABEL configuration="test" | ||
|
||
# This will make apt-get install without question | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install core dependencies required for building gvm-libs | ||
RUN apt-get update && apt-get install --no-install-recommends --assume-yes \ | ||
ca-certificates \ | ||
cmake \ | ||
gcc \ | ||
git \ | ||
libglib2.0-dev \ | ||
libgnutls28-dev \ | ||
libgpgme-dev \ | ||
libhiredis-dev \ | ||
libpcap-dev \ | ||
libssh-gcrypt-dev \ | ||
libxml2-dev \ | ||
libnet1-dev \ | ||
make \ | ||
pkg-config \ | ||
uuid-dev \ | ||
libssl-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# clone and install mqtt paho | ||
# workaround otherwise paho.mqtt.c creates man1 as a file | ||
RUN mkdir /usr/local/share/man/man1 | ||
|
||
RUN git clone --depth 1 https://github.com/eclipse/paho.mqtt.c \ | ||
&& cd paho.mqtt.c \ | ||
&& make \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& rm -rf paho.mqtt.c | ||
|
||
# Install Debian core dependencies required for testing gvm-libs | ||
# support and not yet installed as dependencies of gvm-libs-core | ||
RUN apt-get update && apt-get install --assume-yes \ | ||
g++ \ | ||
lcov \ | ||
libical-dev \ | ||
libpq-dev \ | ||
libnet1-dev \ | ||
postgresql-server-dev-all \ | ||
xsltproc \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# install cgreen for unit tests | ||
RUN git clone --depth 1 https://github.com/cgreen-devs/cgreen.git \ | ||
&& cd cgreen \ | ||
&& make \ | ||
&& make test \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& rm -rf cgreen | ||
|
||
ENV LD_LIBRARY_PATH="/usr/local/lib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
build/ | ||
.ccls | ||
# clangd | ||
# generated by | ||
# cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 | ||
compile_commands.json | ||
.cache/ | ||
# cmake | ||
CMakeFiles/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.