Skip to content

Commit ebf7fa5

Browse files
author
Andras Fekete
committed
First attempt
1 parent 9bc3b86 commit ebf7fa5

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

Docker/wolfCLU/Dockerfile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM ubuntu as BUILDER
2+
3+
ARG DEPS_WOLFSSL="build-essential autoconf libtool zlib1g-dev libuv1-dev libpam0g-dev git libpcap-dev libcurl4-openssl-dev bsdmainutils netcat iputils-ping bubblewrap"
4+
RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y apt-utils \
5+
&& apt install -y ${DEPS_WOLFSSL} ${DEPS_LIBOQS} \
6+
&& apt clean -y && rm -rf /var/lib/apt/lists/*
7+
8+
ARG NUM_CPU=16
9+
10+
# This arg is to force a rebuild starting from this line
11+
ARG DUMMY=date
12+
# install wolfssl
13+
RUN DUMMY=${DUMMY} git clone --depth=1 --single-branch --branch=master http://github.com/wolfssl/wolfssl && cd wolfssl && ./autogen.sh && ./configure --enable-all && make -j $NUM_CPU && make install && ldconfig
14+
15+
# install wolfCLU
16+
RUN git clone --depth=1 --single-branch --branch=main http://github.com/wolfssl/wolfCLU && cd wolfCLU && ./autogen.sh && ./configure && make -j $NUM_CPU && make install
17+
18+
FROM ubuntu
19+
COPY --from=BUILDER /usr/local/lib/libwolfssl.so /usr/local/lib/
20+
COPY --from=BUILDER /usr/local/bin/wolfssl* /usr/local/bin/
21+
RUN ldconfig
22+
ENTRYPOINT ["/usr/local/bin/wolfssl"]

Docker/wolfCLU/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
This is a small container that has wolfCLU installed for quick access. To build your own run the following:
2+
```
3+
docker build --pull --build-arg DUMMY=$(date +%s) -t wolfclu .
4+
```
5+
6+
To run the container, you can use:
7+
```
8+
docker run -it --rm -v $(pwd):/ws -w /ws wolfclu version
9+
```
10+
This command will allow you to use the certs/keys in your local directory.

0 commit comments

Comments
 (0)