Skip to content

Commit

Permalink
update openlitespeed demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbozarth committed Oct 25, 2024
1 parent 9a9696f commit 5957ca3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions openlitespeed/Dockerfile-server
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
ARG LIBOQS_TAG=main
# define the boringssl tag to be used
ARG BORINGSSL_TAG=OQS-BoringSSL-snapshot-2024-10

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

# define the openlitespeed tag to be used
ARG OPENLITESPEED_TAG=v1.8.1

FROM ubuntu:focal as builder

ARG OPENLITESPEED_TAG
ARG BORINGSSL_TAG
ARG LIBOQS_TAG

ENV TZ=Europe/Zurich
Expand All @@ -16,16 +25,17 @@ RUN apt install git libz-dev libevent-dev cmake gcc ninja-build libunwind-dev pk
WORKDIR /opt

# Download openlitespeed repository
RUN git clone https://github.com/litespeedtech/openlitespeed.git
RUN git clone --depth 1 --branch ${OPENLITESPEED_TAG} https://github.com/litespeedtech/openlitespeed.git

COPY build.sh.patch /opt/
COPY build_bssl.sh.patch /opt/

# Apply patch to build.sh
RUN cd openlitespeed && git apply --reject --whitespace=fix /opt/build.sh.patch


ENV BORINGSSL_TAG=${BORINGSSL_TAG}
ENV LIBOQS_TAG=${LIBOQS_TAG}

# Build and install openlitespeed
RUN cd openlitespeed && ./build.sh && ./install.sh

Expand Down
2 changes: 1 addition & 1 deletion openlitespeed/build_bssl.sh.patch
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ index cb7f229..60e0822 100755
- git clone https://github.com/google/boringssl.git
+ # download boringssl and liboqs from oqs
+ echo "Downloading oqs boringssl"
+ git clone --branch master https://github.com/open-quantum-safe/boringssl.git
+ git clone --branch $BORINGSSL_TAG --single-branch --depth 1 https://github.com/open-quantum-safe/boringssl.git
+
+ git clone --branch $LIBOQS_TAG --single-branch --depth 1 https://github.com/open-quantum-safe/liboqs.git
fi
Expand Down

0 comments on commit 5957ca3

Please sign in to comment.