Skip to content

Commit

Permalink
first cut setting liboqs&oqsprovider versions
Browse files Browse the repository at this point in the history
  • Loading branch information
baentsch committed Jan 17, 2024
1 parent 3e4e707 commit 2ea96d7
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 7 deletions.
12 changes: 10 additions & 2 deletions curl/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Multi-stage build: First the full builder image:

# define the liboqs tag to be used
ARG LIBOQS_TAG=main

# define the oqsprovider tag to be used
ARG OQSPROVIDER_TAG=main

# define the Curl version to be baked in
ARG CURL_VERSION=7.81.0

Expand All @@ -21,6 +27,8 @@ ARG MAKE_DEFINES="-j 4"

FROM alpine:3.11 as intermediate
# Take in all global args
ARG LIBOQS_TAG
ARG OQSPROVIDER_TAG
ARG CURL_VERSION
ARG INSTALLDIR
ARG LIBOQS_BUILD_DEFINES
Expand All @@ -43,9 +51,9 @@ RUN apk add build-base linux-headers \

# get all sources
WORKDIR /opt
RUN git clone --depth 1 --branch main https://github.com/open-quantum-safe/liboqs && \
RUN git clone --depth 1 --branch ${LIBOQS_TAG} https://github.com/open-quantum-safe/liboqs && \
git clone --depth 1 --branch master https://github.com/openssl/openssl.git && \
git clone --depth 1 --branch main https://github.com/open-quantum-safe/oqs-provider.git && \
git clone --depth 1 --branch ${OQSPROVIDER_TAG} https://github.com/open-quantum-safe/oqs-provider.git && \
wget https://curl.haxx.se/download/curl-${CURL_VERSION}.tar.gz && tar -zxvf curl-${CURL_VERSION}.tar.gz;

# build liboqs
Expand Down
10 changes: 9 additions & 1 deletion curl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ Information how to use the image is [available in the separate file USAGE.md](US

The Dockerfile provided allows for significant customization of the image built:


### LIBOQS_TAG

Tag of `liboqs` release to be used. Default "main".

### OQSPROVIDER_TAG

Tag of `oqsprovider` release to be used. Default "main".

### LIBOQS_BUILD_DEFINES

This permits changing the build options for the underlying library with the quantum safe algorithms. All possible options are documented [here](https://github.com/open-quantum-safe/liboqs/wiki/Customizing-liboqs).
Expand All @@ -67,7 +76,6 @@ This defines the quantum-safe cryptographic signature algorithm for the internal

The default value is 'dilithium3' but can be set to any value documented [here](https://github.com/open-quantum-safe/oqs-provider#algorithms).


### INSTALL_PATH

This defines the resultant location of the software installatiion.
Expand Down
12 changes: 10 additions & 2 deletions httpd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# First: global build arguments:

# define the liboqs tag to be used
ARG LIBOQS_TAG=main

# define the oqsprovider tag to be used
ARG OQSPROVIDER_TAG=main

# liboqs build type variant; maximum portability of image:
ARG LIBOQS_BUILD_DEFINES="-DOQS_DIST_BUILD=ON"

Expand Down Expand Up @@ -35,6 +41,8 @@ FROM alpine:3.13 as intermediate
# ToDo: Upgrade possible if https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2 addressed

# Take in global args
ARG LIBOQS_TAG
ARG OQSPROVIDER_TAG
ARG LIBOQS_BUILD_DEFINES
ARG OPENSSL_PATH
ARG HTTPD_PATH
Expand All @@ -55,9 +63,9 @@ RUN apk add build-base linux-headers \

# get sources
WORKDIR /opt
RUN git clone --depth 1 --branch main https://github.com/open-quantum-safe/liboqs && \
RUN git clone --depth 1 --branch ${LIBOQS_TAG} https://github.com/open-quantum-safe/liboqs && \
git clone --depth 1 --branch master https://github.com/openssl/openssl ossl-src && \
git clone --depth 1 --branch main https://github.com/open-quantum-safe/oqs-provider && \
git clone --depth 1 --branch ${OQSPROVIDER_TAG} https://github.com/open-quantum-safe/oqs-provider && \
wget ${APR_MIRROR}/apr/apr-${APR_VERSION}.tar.gz && tar xzvf apr-${APR_VERSION}.tar.gz && \
wget ${APR_MIRROR}/apr/apr-util-${APRU_VERSION}.tar.gz && tar xzvf apr-util-${APRU_VERSION}.tar.gz && \
wget --trust-server-names "https://archive.apache.org/dist/httpd/httpd-${HTTPD_VERSION}.tar.gz" && tar -zxvf httpd-${HTTPD_VERSION}.tar.gz;
Expand Down
8 changes: 8 additions & 0 deletions httpd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ Complete information how to use the image is [available in the separate file USA

The Dockerfile provided allows for significant customization of the image built:

### LIBOQS_TAG

Tag of `liboqs` release to be used. Default "main".

### OQSPROVIDER_TAG

Tag of `oqsprovider` release to be used. Default "main".

### LIBOQS_BUILD_DEFINES

This permits changing the build options for the underlying library with the quantum safe algorithms. All possible options are documented [here](https://github.com/open-quantum-safe/liboqs/wiki/Customizing-liboqs).
Expand Down
12 changes: 10 additions & 2 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# First: global build arguments:

# define the liboqs tag to be used
ARG LIBOQS_TAG=main

# define the oqsprovider tag to be used
ARG OQSPROVIDER_TAG=main

# liboqs build type variant; maximum portability of image:
ARG LIBOQS_BUILD_DEFINES="-DOQS_DIST_BUILD=ON"

Expand All @@ -27,6 +33,8 @@ ARG MAKE_DEFINES="-j 18"
FROM alpine:3.13 as intermediate
# ToDo: Upgrade possible if https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2 addressed
# Take in global args
ARG LIBOQS_TAG
ARG OQSPROVIDER_TAG
ARG BASEDIR
ARG LIBOQS_BUILD_DEFINES
ARG INSTALLDIR
Expand All @@ -46,8 +54,8 @@ RUN apk add build-base linux-headers \

# get OQS sources
WORKDIR /opt
RUN git clone --depth 1 --branch main https://github.com/open-quantum-safe/liboqs && \
git clone --depth 1 --branch main https://github.com/open-quantum-safe/oqs-provider.git && \
RUN git clone --depth 1 --branch ${LIBOQS_TAG} https://github.com/open-quantum-safe/liboqs && \
git clone --depth 1 --branch ${OQSPROVIDER_TAG} https://github.com/open-quantum-safe/oqs-provider.git && \
git clone --depth 1 --branch master https://github.com/openssl/openssl.git && \
wget nginx.org/download/nginx-${NGINX_VERSION}.tar.gz && tar -zxvf nginx-${NGINX_VERSION}.tar.gz;

Expand Down
8 changes: 8 additions & 0 deletions nginx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ Complete information how to use the image is [available in the separate file USA

The Dockerfile provided allows for significant customization of the image built:

### LIBOQS_TAG

Tag of `liboqs` release to be used. Default "main".

### OQSPROVIDER_TAG

Tag of `oqsprovider` release to be used. Default "main".

### LIBOQS_BUILD_DEFINES

This permits changing the build options for the underlying library with the quantum safe algorithms. All possible options are documented [here](https://github.com/open-quantum-safe/liboqs/wiki/Customizing-liboqs).
Expand Down

0 comments on commit 2ea96d7

Please sign in to comment.