-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.Dockerfile
55 lines (45 loc) · 1.25 KB
/
build.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# SPDX-FileCopyrightText: Copyright (c) 2024 Cisco Systems
# SPDX-License-Identifier: BSD-2-Clause
# Build libquicr
#
# BUILD:
# DOCKER_BUILDKIT=1
# tar -c -C ../ ./quicrq ./libquicr \
# | docker buildx build --progress=plain \
# --output type=docker \
# -f libquicr/build.Dockerfile -t quicr/libquicr:latest -
#
# RUN and build code
# docker run --rm \
# -v $(pwd):/ws/src -v $(pwd)/../:/ws/libs \
# quicr/libquicr:latest
#
FROM alpine:latest
VOLUME /ws/src
VOLUME /ws/libs
WORKDIR /ws/src
COPY libquicr/ /ws/src
COPY quicrq /ws/quicrq
RUN apk update \
&& apk add --no-cache cmake alpine-sdk openssl-dev doctest-dev bash \
&& apk add ca-certificates clang lld curl
# Build PicoTLS, PicoQuic, and quicrq
RUN cd /ws \
&& echo "Building PicoTLS" \
&& git clone https://github.com/h2o/picotls.git \
&& cd picotls \
&& git submodule init \
&& git submodule update \
&& cmake . \
&& make
RUN cd /ws \
&& echo "Building PicoQuic" \
&& git clone https://github.com/private-octopus/picoquic.git \
&& cd picoquic \
&& cmake . \
&& make
RUN echo "Building Quicrq" \
&& cd /ws/quicrq \
&& rm -rf CMakeCache.txt CMakeFiles build \
&& cmake . \
&& make