File tree 2 files changed +32
-0
lines changed
2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
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" ]
Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments