Skip to content

Commit 749e9b3

Browse files
authored
H2O: Track image build timings (#10125)
Signed-off-by: Anton Kirilov <[email protected]>
1 parent fdf7264 commit 749e9b3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

frameworks/C/h2o/h2o.dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ARG H2O_APP_PREFIX=/opt/h2o-app
44

55
FROM "ubuntu:${UBUNTU_VERSION}" AS compile
66

7+
RUN echo "[timing] Installing system packages: $(date)"
78
ARG DEBIAN_FRONTEND=noninteractive
89
RUN apt-get -yqq update && \
910
apt-get -yqq install \
@@ -31,6 +32,7 @@ RUN apt-get -yqq update && \
3132
ruby \
3233
systemtap-sdt-dev
3334

35+
RUN echo "[timing] Building H2O: $(date)"
3436
ARG H2O_VERSION=3b9b6a53cac8bcc6a25fb28df81ad295fc5f9402
3537

3638
WORKDIR /tmp/h2o-build
@@ -47,6 +49,7 @@ RUN curl -LSs "https://github.com/h2o/h2o/archive/${H2O_VERSION}.tar.gz" | \
4749
cmake --build build -j && \
4850
cmake --install build
4951

52+
RUN echo "[timing] Building mustache-c: $(date)"
5053
ARG MUSTACHE_C_REVISION=7fe52392879d0188c172d94bb4fde7c513d6b929
5154

5255
WORKDIR /tmp/mustache-c-build
@@ -56,6 +59,7 @@ RUN curl -LSs "https://github.com/x86-64/mustache-c/archive/${MUSTACHE_C_REVISIO
5659
./autogen.sh && \
5760
make -j "$(nproc)" install
5861

62+
RUN echo "[timing] Building h2o-app: $(date)"
5963
ARG H2O_APP_PREFIX
6064
WORKDIR /tmp/build
6165
COPY CMakeLists.txt ../
@@ -69,16 +73,19 @@ RUN cmake \
6973
-S .. && \
7074
cmake --build . -j && \
7175
cmake --install .
76+
RUN echo "[timing] Finished compiling: $(date)"
7277

7378
FROM "ubuntu:${UBUNTU_VERSION}"
7479

80+
RUN echo "[timing] Installing final system packages: $(date)"
7581
ARG DEBIAN_FRONTEND=noninteractive
7682
RUN apt-get -yqq update && \
7783
apt-get -yqq install \
7884
libnuma1 \
7985
libpq5 \
8086
liburing2 \
8187
libyajl2
88+
RUN echo "[timing] Copying h2o-app to its final location: $(date)"
8289
ARG H2O_APP_PREFIX
8390
COPY --from=compile "${H2O_APP_PREFIX}" "${H2O_APP_PREFIX}/"
8491
COPY --from=compile /usr/local/lib/libmustache_c.so "${H2O_APP_PREFIX}/lib/"
@@ -87,6 +94,7 @@ EXPOSE 8080
8794
ARG BENCHMARK_ENV
8895
ARG TFB_TEST_DATABASE
8996
ARG TFB_TEST_NAME
97+
RUN echo "[timing] Running h2o-app: $(date)"
9098

9199
CMD ["taskset", \
92100
"-c", \

0 commit comments

Comments
 (0)