From 787746dd91ddcc64f5d56f5b7904cfc0906abe8b Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 1 Jul 2020 15:37:07 +0200 Subject: [PATCH] ci: add new minimal build --- .gitlab-ci.yml | 24 ++++++++++++++- packaging/docker/Dockerfile.dev-minimal | 40 +++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 packaging/docker/Dockerfile.dev-minimal diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 34748fb48..eb2cca3f1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,6 +42,12 @@ prepare:fedora:docker-dev: DOCKER_FILE: packaging/docker/Dockerfile.dev DOCKER_IMAGE_DEV: ${DOCKER_IMAGE}/dev +prepare:fedora:docker-dev-minimal: + <<: *prepare_docker_dev + variables: + DOCKER_FILE: packaging/docker/Dockerfile.dev-minimal + DOCKER_IMAGE_DEV: ${DOCKER_IMAGE}/dev-minimal + prepare:ubuntu:docker-dev: <<: *prepare_docker_dev variables: @@ -91,7 +97,23 @@ build:fedora:x86_64: build:fedora-minimal:x86_64: <<: *build variables: - CMAKE_OPTS: -DWITH_HOOKS=OFF -DWITH_WEB=OFF -DWITH_API=OFF -DWITH_CONFIG=OFF -DWITH_SRC=OFF -DWITH_TOOLS=OFF -DWITH_TESTS=OFF -DWITH_PLUGINS=OFF -DWITH_CLIENTS=OFF -DWITH_DOC=OFF + DOCKER_IMAGE_DEV: ${DOCKER_IMAGE}/dev-minimal + CMAKE_OPTS: -DWITH_GRAPHVIZ=OFF + -DWITH_HOOKS=OFF + -DWITH_WEB=OFF + -DWITH_API=OFF + -DWITH_CONFIG=OFF + -DWITH_SRC=OFF + -DWITH_TOOLS=OFF + -DWITH_TESTS=OFF + -DWITH_PLUGINS=OFF + -DWITH_CLIENTS=OFF + -DWITH_DOC=OFF + +build:fedora-minimal-default:x86_64: + <<: *build + variables: + DOCKER_IMAGE_DEV: ${DOCKER_IMAGE}/dev-minimal build:ubuntu:x86_64: <<: *build diff --git a/packaging/docker/Dockerfile.dev-minimal b/packaging/docker/Dockerfile.dev-minimal new file mode 100644 index 000000000..765edb6ea --- /dev/null +++ b/packaging/docker/Dockerfile.dev-minimal @@ -0,0 +1,40 @@ +# Minimal Dockerfile for building VILLASnode +# +# @author Steffen Vogel +# @copyright 2014-2020, Institute for Automation of Complex Power Systems, EONERC +# @license GNU General Public License (version 3) +# +# VILLASnode +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +################################################################################### + +FROM fedora:32 + +# Toolchain +RUN dnf -y install \ + gcc gcc-c++ \ + pkgconfig \ + cmake make \ + git + +# Dependencies +RUN dnf -y install \ + openssl-devel \ + libuuid-devel \ + libcurl-devel \ + jansson-devel \ + spdlog-devel \ + fmt-devel \ + libwebsockets-devel