Skip to content

Commit bbcd91b

Browse files
Merge pull request #6621 from bandi13/addPKIXSSH
Add in PKIXSSH
2 parents d3d131d + 300c183 commit bbcd91b

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

Docker/Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ USER root
55

66
ARG DEPS_WOLFSSL="build-essential autoconf libtool clang clang-tools zlib1g-dev libuv1-dev libpam0g-dev valgrind git linux-headers-generic gcc-multilib g++-multilib libpcap-dev bubblewrap gdb iputils-ping lldb bsdmainutils netcat binutils-arm-linux-gnueabi binutils-aarch64-linux-gnu"
77
ARG DEPS_LIBOQS="astyle cmake gcc ninja-build libssl-dev python3-pytest python3-pytest-xdist unzip xsltproc doxygen graphviz python3-yaml valgrind git"
8+
ARG DEPS_UDP_PROXY="wget libevent-dev"
89
ARG DEPS_TESTS="abi-dumper libcurl4-openssl-dev tcpdump"
910
RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y apt-utils \
10-
&& apt install -y ${DEPS_WOLFSSL} ${DEPS_LIBOQS} ${DEPS_TESTS} \
11+
&& apt install -y ${DEPS_WOLFSSL} ${DEPS_LIBOQS} ${DEPS_UDP_PROXY} ${DEPS_TESTS} \
1112
&& apt clean -y && rm -rf /var/lib/apt/lists/*
1213

1314
ARG USER=docker
@@ -25,7 +26,16 @@ RUN mkdir /opt/sources
2526
RUN cd /opt/sources && git clone --single-branch https://github.com/cisco/hash-sigs.git && cd hash-sigs && git checkout b0631b8891295bf2929e68761205337b7c031726 \
2627
&& sed -i 's/USE_OPENSSL 1/USE_OPENSSL 0/g' sha256.h && make -j4 hss_lib_thread.a
2728

29+
# Install pkixssh to /opt/pkixssh for X509 interop testing with wolfSSH
30+
RUN mkdir /var/empty
31+
RUN cd /opt/sources && wget -q -O- https://roumenpetrov.info/secsh/src/pkixssh-14.1.1.tar.gz | tar xzf - && cd pkixssh-14.1.1 && ./configure --prefix=/opt/pkixssh/ --exec-prefix=/opt/pkixssh/ && make install
32+
33+
# Install udp/tcp-proxy
34+
RUN cd /opt/sources && git clone --depth=1 --single-branch --branch=main http://github.com/wolfssl/udp-proxy && cd udp-proxy && make && cp tcp_proxy udp_proxy /bin/.
35+
2836
# Allow non-root to use tcpdump (will need NET_RAW and NET_ADMIN capability when running the container)
2937
RUN setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/tcpdump
38+
# Allow non-root to use gdb on processes (will need SYS_PTRACE capability when running the container)
39+
RUN setcap 'CAP_SYS_PTRACE+eip' /usr/bin/gdb
3040

3141
USER ${UID}:${GID}

Docker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Overview
2-
This is a simple Docker environment for compiling and running WolfSSL. Use `run.sh` to build everything (Docker container, WolfSSL, etc.). This script takes in arguments that can be passed to `./configure`. For example: `run.sh --enable-all`
2+
This is a Docker environment for compiling, testing and running WolfSSL. Use `run.sh` to build everything (Docker container, WolfSSL, etc.). This script takes in arguments that can be passed to `./configure`. For example: `run.sh --enable-all`
33

4-
When the compilation and tests succeed, you will be dropped in to a shell environment within the container. This can be useful to build other things within the environment.
4+
When the compilation and tests succeed, you will be dropped in to a shell environment within the container. This can be useful to build other things within the environment. Additional tests can be run as well as debugging of code.
55

66
# FAQ
77
## permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock

0 commit comments

Comments
 (0)