Closed kushnertodd closed 1 year ago
The cmake and Ubuntu versions used are:
$ cmake --version cmake version 3.27.0-rc4
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy
Builds and runs fine outside docker.
the cmake image they use is outdated which which causes the install-oatpp-modules.sh to break partly through
you can fix it by going into the .dockerfile
and replacing
FROM lganzzzo/alpine-cmake:latest
with
FROM gcc:latest
RUN set -ex; \
apt-get update; \
apt-get install -y cmake libzmq3-dev;
you also might need to prune the build catches
Perfect.
Works as intended. Thanks.
oatpp-starter builds and runs from the commandline in Ubuntu, but docker build fails. Latest commit:
commit 2eab7b49ad52507a1f9d7324db22908ab735c00c (HEAD -> master, origin/master, origin/HEAD) Author: Leonid Stryzhevskyi lganzzzo@gmail.com Date: Fri Dec 17 02:58:18 2021 +0200
output:
$ oatpp-starter (master)]$ docker run -p 8000:8000 -t oatpp-starter
=> ERROR [6/7] RUN cmake ..
Dockerfile:11
9 | WORKDIR /service/build 10 | 11 | >>> RUN cmake .. 12 | RUN make 13 |
ERROR: failed to solve: process "/bin/sh -c cmake .." did not complete successfully: exit code: 1