forked from Framstag/libosmscout
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Framstag#1571 from Karry/docker-fixes
Docker build fixes, add Ubuntu 24.04
- Loading branch information
Showing
13 changed files
with
151 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM archlinux:base | ||
FROM archlinux:base-20231112.0.191179 | ||
|
||
RUN pacman --noconfirm --needed -Sy \ | ||
git \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM archlinux:base | ||
FROM archlinux:base-20231112.0.191179 | ||
|
||
RUN pacman --noconfirm --needed -Sy \ | ||
git \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM archlinux:base | ||
FROM archlinux:base-20231112.0.191179 | ||
|
||
RUN pacman --noconfirm --needed -Sy \ | ||
git \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM ubuntu:noble | ||
|
||
# disable interactive functions | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
git make libtool pkg-config \ | ||
libxml2-dev libprotobuf-dev protobuf-compiler \ | ||
libagg-dev \ | ||
libfreetype6-dev \ | ||
libcairo2-dev \ | ||
libpangocairo-1.0-0 libpango1.0-dev \ | ||
qtdeclarative5-dev libqt5svg5-dev \ | ||
qtlocation5-dev qtpositioning5-dev qttools5-dev-tools qttools5-dev qtmultimedia5-dev \ | ||
libglut3.12 libglut-dev \ | ||
libmarisa-dev \ | ||
doxygen \ | ||
swig openjdk-8-jdk \ | ||
locales \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN locale-gen en_US.UTF-8 | ||
ENV LANG en_US.utf8 | ||
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/ | ||
ENV QT_QPA_PLATFORM offscreen | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
cmake \ | ||
g++ \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir /work | ||
|
||
COPY data/build.sh /work | ||
RUN chmod +x /work/build.sh | ||
|
||
WORKDIR /work | ||
CMD ./build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
cd `dirname $0` | ||
docker build -t libosmscout/ubuntu_22.04_gcc_cmake . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
if [ $# -ge 1 ] ; then | ||
REPO="$1" | ||
else | ||
REPO="https://github.com/Framstag/libosmscout.git" | ||
fi | ||
|
||
if [ $# -ge 2 ] ; then | ||
BRANCH="$2" | ||
else | ||
BRANCH="master" | ||
fi | ||
|
||
git clone -b "$BRANCH" "$REPO" libosmscout | ||
|
||
export LANG=en_US.utf8 | ||
cd libosmscout | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_BUILD_TYPE=DEBUG -DOSMSCOUT_BUILD_BINDING_JAVA=OFF .. | ||
make -j $(nproc) install | ||
ctest --output-on-failure | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
docker run --rm=true -it libosmscout/ubuntu_22.04_gcc_cmake ./build.sh "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM ubuntu:noble | ||
|
||
# disable interactive functions | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
git make libtool pkg-config \ | ||
qmake6 libqt6svg6-dev libqt6core5compat6-dev qt6-declarative-dev qt6-positioning-dev qt6-tools-dev-tools \ | ||
qt6-l10n-tools qt6-tools-dev qt6-multimedia-dev \ | ||
libgl-dev \ | ||
locales \ | ||
meson ninja-build g++ \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN locale-gen en_US.UTF-8 | ||
ENV LANG en_US.utf8 | ||
ENV QT_QPA_PLATFORM offscreen | ||
|
||
# RUN apt-get update && apt-get install -y \ | ||
# g++ \ | ||
# python3-pip \ | ||
# && rm -rf /var/lib/apt/lists/* | ||
# | ||
# RUN pip install meson ninja | ||
|
||
RUN mkdir /work | ||
|
||
COPY data/build.sh /work | ||
RUN chmod +x /work/build.sh | ||
|
||
WORKDIR /work | ||
CMD ./build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
cd `dirname $0` | ||
docker build -t libosmscout/ubuntu_22.04_gcc_meson_qt6 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
if [ $# -ge 1 ] ; then | ||
REPO="$1" | ||
else | ||
REPO="https://github.com/Framstag/libosmscout.git" | ||
fi | ||
|
||
if [ $# -ge 2 ] ; then | ||
BRANCH="$2" | ||
else | ||
BRANCH="master" | ||
fi | ||
|
||
git clone -b "$BRANCH" "$REPO" libosmscout | ||
|
||
export LANG=en_US.utf8 | ||
cd libosmscout | ||
mkdir debug | ||
PATH=/usr/lib/qt6/bin:/usr/lib/qt6/libexec:$PATH meson setup --buildtype debugoptimized --unity on --wrap-mode=nofallback -D qtVersion=6 debug | ||
ninja -C debug | ||
meson test -C debug --print-errorlogs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
docker run --rm=true -it libosmscout/ubuntu_22.04_gcc_meson_qt6 ./build.sh "$@" |