From e22332069a3a45c0f84ddf1875cc484fc4819f5e Mon Sep 17 00:00:00 2001 From: clfreville2 Date: Tue, 22 Nov 2022 16:36:10 +0100 Subject: [PATCH] Initial commit --- .drone.yml | 20 ++++++++++++++++++++ Dockerfile | 5 +++++ 2 files changed, 25 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..cb57eab --- /dev/null +++ b/.drone.yml @@ -0,0 +1,20 @@ +kind: pipeline +type: docker +name: build + +trigger: + event: + - push + +steps: + - name: docker-build + image: plugins/docker + settings: + dockerfile: Dockerfile + context: . + registry: hub.codefirst.iut.uca.fr + repo: hub.codefirst.iut.uca.fr/clfreville2/oki-build-image + username: + from_secret: SECRET_REGISTRY_USERNAME + password: + from_secret: SECRET_REGISTRY_PASSWORD diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3f38377 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM gcc:12 +RUN apt-get update \ + && apt-get -y --no-install-recommends install nlohmann-json3-dev libcurl4-openssl-dev libminizip-dev doctest-dev gcovr \ + && rm -rf /var/lib/apt/lists/* +RUN wget -q 'https://raw.githubusercontent.com/marzer/tomlplusplus/v3.2.0/toml.hpp' -O /usr/local/include/toml.hpp