Skip to content

Commit

Permalink
updatre dockerfile for CiCd
Browse files Browse the repository at this point in the history
  • Loading branch information
benlabbe committed Oct 6, 2023
1 parent d504a30 commit 40d21e5
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@ SET(CPACK_PACKAGE_VERSION "${QHTTPSERVER_VERSION}")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "qhttpserver-${QHTTPSERVER_VERSION}")
#SET(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")
#SET(CPACK_NSIS_MODIFY_PATH "ON")
SET(CPACK_STRIP_FILES "")
SET(CPACK_SOURCE_STRIP_FILES "")
SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
#SET(CPACK_STRIP_FILES "")
#SET(CPACK_SOURCE_STRIP_FILES "")
#SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS OFF)
#SET(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS OFF)
SET(CPACK_GENERATOR ${SPECIFIC_SYSTEM_PREFERED_CPACK_GENERATOR})
# set(CPACK_RPM_PACKAGE_REQUIRES "qt5 >= 5.2")
# SET(CPACK_DEBIAN_PACKAGE_DEPENDS "")
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-debian11
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM debian:11

ARG TRAVIS_JOB_NUMBER
ARG TRAVIS_JOB_NUMBER
ENV DEBIAN_FRONTEND=noninteractive

# Setup
RUN apt-get update -y -qq
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-debian9.4
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM debian:9.4

ARG TRAVIS_JOB_NUMBER
ARG TRAVIS_JOB_NUMBER
ENV DEBIAN_FRONTEND=noninteractive

# Setup
RUN apt-get update -y -qq
Expand Down
1 change: 1 addition & 0 deletions Dockerfile-ubuntu14.04
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM ubuntu:14.04

ARG BINTRAYKEY
ARG TRAVIS_JOB_NUMBER
ENV DEBIAN_FRONTEND=noninteractive

# Setup
RUN apt-get update -y -qq
Expand Down
1 change: 1 addition & 0 deletions Dockerfile-ubuntu16.04
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:16.04

ARG TRAVIS_JOB_NUMBER
ENV DEBIAN_FRONTEND=noninteractive

# Setup
RUN apt-get update -y -qq
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile-ubuntu18.04
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

# Setup
RUN apt-get update -y -qq
RUN apt-get install -y apt-utils wget bzip2 git gcc g++ cmake cmake-data ninja-build qtbase5-dev-tools qtdeclarative5-dev- packaging-dev -qq
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile-ubuntu22.04
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

# Setup
RUN apt-get update -y -qq
RUN apt-get install -y apt-utils wget bzip2 git gcc g++ cmake cmake-data ninja-build qtbase5-dev-tools qtdeclarative5-dev packaging-dev -qq
Expand All @@ -11,7 +13,7 @@ RUN mkdir -p /src/qhttpserver/build
# Build
WORKDIR /src/qhttpserver/build
RUN cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
RUN ninja all && ninja test && ninja package
RUN ninja all && ninja package
RUN echo "export packagefile=`find /src/qhttpserver/build/ -maxdepth 1 -name *.deb`" > /envfile
RUN echo "export fullname=\$(basename -- \$packagefile)" >> /envfile
RUN echo "export extension=\${fullname##*.}" >> /envfile
Expand Down

0 comments on commit 40d21e5

Please sign in to comment.