Add fmt-dev to build dependencies and fmt to runtime dependencies in Dockerfile and drone pipeline. This modern C++ formatting library will be used for improved string formatting and logging.
This commit is contained in:
parent
d3f59c0fb3
commit
8171f9666a
2 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ steps:
|
|||
- name: build hermes
|
||||
image: alpine
|
||||
commands:
|
||||
- apk add -t hermes-build-deps --no-cache graphviz doxygen gcc make openssl-dev libspf2-dev cmake g++ sqlite-dev gettext-dev python3 boost-dev
|
||||
- apk add -t hermes-build-deps --no-cache graphviz doxygen gcc make openssl-dev libspf2-dev cmake g++ sqlite-dev gettext-dev python3 boost-dev fmt-dev
|
||||
- cmake -B build_dir -D BUILD_DOCS=ON
|
||||
- cmake --build build_dir
|
||||
- name: docker image build
|
||||
|
@ -41,7 +41,7 @@ steps:
|
|||
- name: build hermes
|
||||
image: alpine
|
||||
commands:
|
||||
- apk add -t hermes-build-deps --no-cache graphviz doxygen gcc make openssl-dev libspf2-dev cmake g++ sqlite-dev gettext-dev python3 boost-dev
|
||||
- apk add -t hermes-build-deps --no-cache graphviz doxygen gcc make openssl-dev libspf2-dev cmake g++ sqlite-dev gettext-dev python3 boost-dev fmt-dev
|
||||
- cmake -B build_dir
|
||||
- cmake --build build_dir
|
||||
- name: docker image build
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
FROM alpine:3.18
|
||||
ADD . /hermes
|
||||
WORKDIR /hermes
|
||||
RUN apk add --no-cache graphviz doxygen gcc make openssl-dev libspf2-dev cmake g++ sqlite-dev gettext-dev python3 boost-dev
|
||||
RUN apk add --no-cache graphviz doxygen gcc make openssl-dev libspf2-dev cmake g++ sqlite-dev gettext-dev python3 boost-dev fmt-dev
|
||||
RUN cmake -B build
|
||||
RUN cmake --build build
|
||||
RUN mkdir /hermes-installation
|
||||
|
@ -10,5 +10,5 @@ RUN cmake --install build --prefix /hermes-installation
|
|||
FROM alpine:3.18
|
||||
EXPOSE 25
|
||||
COPY --from=0 /hermes-installation /hermes
|
||||
RUN apk add --no-cache openssl libspf2 sqlite-libs libstdc++ libgcc
|
||||
RUN apk add --no-cache openssl libspf2 sqlite-libs libstdc++ libgcc fmt
|
||||
CMD ["/hermes/bin/hermes", "/config/hermesrc"]
|
||||
|
|
Loading…
Add table
Reference in a new issue