diff -r a278d16bd2d0 docker/alpine.Dockerfile
-
|
+
|
|
| 1 | FROM alpine:edge |
| 2 | |
| 3 | RUN apk add --no-cache git build-base cmake mercurial |
| 4 | |
| 5 | # Create lib directory |
| 6 | WORKDIR /home/lib |
| 7 | COPY . . |
| 8 | |
| 9 | RUN cmake -S . -Bbuild |
| 10 | RUN cmake --build build --target all |
| 11 | RUN cd build && ctest --verbose |
| 12 | RUN cmake --build build --target install -v -- DESTDIR=install |
diff -r a278d16bd2d0 docker/archlinux.Dockerfile
-
|
+
|
|
| 1 | FROM archlinux:latest |
| 2 | |
| 3 | RUN pacman -Syu --noconfirm git base-devel cmake |
| 4 | |
| 5 | # Create lib directory |
| 6 | WORKDIR /home/lib |
| 7 | COPY . . |
| 8 | |
| 9 | RUN cmake -S . -Bbuild |
| 10 | RUN cmake --build build --target all |
| 11 | RUN cd build && ctest --verbose |
| 12 | RUN cmake --build build --target install -v -- DESTDIR=install |
diff -r a278d16bd2d0 docker/debian.Dockerfile
-
|
+
|
|
| 1 | FROM debian:latest AS base |
| 2 | |
| 3 | RUN apt-get update -qq \ |
| 4 | && apt-get install -yq \ |
| 5 | git wget build-essential cmake mercurial \ |
| 6 | # Comment to try with gcc/g++-10 |
| 7 | gcc-9 g++-9 \ |
| 8 | && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 10 \ |
| 9 | && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 10 \ |
| 10 | && apt-get clean \ |
| 11 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
| 12 | |
| 13 | # Create lib directory |
| 14 | WORKDIR /home/lib |
| 15 | COPY . . |
| 16 | RUN cmake -S . -Bbuild |
| 17 | RUN cmake --build build --target all |
| 18 | RUN cd build && ctest --verbose |
| 19 | RUN cmake --build build --target install -v -- DESTDIR=install |
diff -r a278d16bd2d0 docker/docker-compose.yml
-
|
+
|
|
| 1 | version: "2.3" |
| 2 | |
| 3 | services: |
| 4 | |
| 5 | lemon-alpine: |
| 6 | image: lemon-alpine:latest |
| 7 | build: |
| 8 | context: ../ |
| 9 | dockerfile: docker/alpine.Dockerfile |
| 10 | cache_from: |
| 11 | - lemon-alpine:latest |
| 12 | |
| 13 | lemon-ubuntu: |
| 14 | image: lemon-ubuntu:latest |
| 15 | build: |
| 16 | context: ../ |
| 17 | dockerfile: docker/ubuntu.Dockerfile |
| 18 | cache_from: |
| 19 | - lemon-ubuntu:latest |
| 20 | |
| 21 | lemon-debian: |
| 22 | image: lemon-debian:latest |
| 23 | build: |
| 24 | context: ../ |
| 25 | dockerfile: docker/debian.Dockerfile |
| 26 | cache_from: |
| 27 | - lemon-debian:latest |
| 28 | |
| 29 | lemon-archlinux: |
| 30 | image: lemon-archlinux:latest |
| 31 | build: |
| 32 | context: ../ |
| 33 | dockerfile: docker/archlinux.Dockerfile |
| 34 | cache_from: |
| 35 | - lemon-archlinux:latest |
diff -r a278d16bd2d0 docker/ubuntu.Dockerfile
-
|
+
|
|
| 1 | FROM ubuntu:20.04 |
| 2 | |
| 3 | RUN apt-get update -qq \ |
| 4 | && DEBIAN_FRONTEND=noninteractive apt-get install -yq \ |
| 5 | git wget build-essential cmake mercurial \ |
| 6 | # Comment to try with gcc/g++-9 |
| 7 | # gcc-10 g++-10 \ |
| 8 | # && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 \ |
| 9 | # && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10 \ |
| 10 | && apt-get clean \ |
| 11 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
| 12 | |
| 13 | # Create lib directory |
| 14 | WORKDIR /home/lib |
| 15 | COPY . . |
| 16 | RUN cmake -S . -Bbuild |
| 17 | RUN cmake --build build --target all |
| 18 | RUN cd build && ctest --verbose |
| 19 | RUN cmake --build build --target install -v -- DESTDIR=install |