commit e22332069a3a45c0f84ddf1875cc484fc4819f5e Author: clfreville2 Date: Tue Nov 22 16:36:10 2022 +0100 Initial commit 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