Commit 43b81880 authored by Markus Frosch's avatar Markus Frosch 📣

git init

parents
## Editors
*~
.*.sw[op]
.idea/
FROM fedora:26
RUN dnf update -y
# TODO: Remove this once the build deps for boost have been cleaned up...
RUN echo '%build_icinga_org 1' >/etc/rpm/macros.icinga_build
RUN dnf install -y \
sudo wget curl which tar expect git \
patch rpm-build redhat-rpm-config rpmlint \
patch ccache make util-linux \
dnf-utils yum-plugin-ovl \
&& yum clean all
RUN groupadd -g 1000 jenkins \
&& useradd -u 1000 -g 1000 -m jenkins \
&& echo 'Defaults:jenkins !requiretty' | tee -a /etc/sudoers \
&& echo 'jenkins ALL=(ALL:ALL) NOPASSWD: ALL' | tee -a /etc/sudoers
RUN wget -O /etc/yum.repos.d/ICINGA-release.repo \
https://packages.icinga.com/fedora/ICINGA-release.repo
IMAGE_SUFFIX := -x86_64
include ../image.mk
FROM fedora:27
RUN dnf update -y
# TODO: Remove this once the build deps for boost have been cleaned up...
RUN echo '%build_icinga_org 1' >/etc/rpm/macros.icinga_build
RUN dnf install -y \
sudo wget curl which tar expect git \
patch rpm-build redhat-rpm-config rpmlint \
patch ccache make util-linux \
dnf-utils yum-plugin-ovl \
&& yum clean all
RUN groupadd -g 1000 jenkins \
&& useradd -u 1000 -g 1000 -m jenkins \
&& echo 'Defaults:jenkins !requiretty' | tee -a /etc/sudoers \
&& echo 'jenkins ALL=(ALL:ALL) NOPASSWD: ALL' | tee -a /etc/sudoers
RUN wget -O /etc/yum.repos.d/ICINGA-release.repo \
https://packages.icinga.com/fedora/ICINGA-release.repo
IMAGE_SUFFIX := -x86_64
include ../image.mk
This diff is collapsed.
all:
$(MAKE) -C 26
$(MAKE) -C 27
push:
$(MAKE) -C 26 push
$(MAKE) -C 27 push
Docker package build environment for Fedora
===========================================
These images are our build environment for package builds with Jenkins.
Please note:
* This is for an internal build environment
* Image names are not best practice
## Building
```
#export DOCKER_REGISTRY=registry.example.com/
#export DOCKER_IMAGE_PREFIX=icinga/
make all
make push
```
## License
Icinga, all tools and documentation are licensed under the terms of the GNU
General Public License Version 2, you will find a copy of this license in the
COPYING file included in the source package.
OS := fedora
IMAGE_PREFIX := ${DOCKER_IMAGE_PREFIX}
ifeq ($(IMAGE_PREFIX),)
IMAGE_PREFIX := icinga/
endif
REGISTRY := ${DOCKER_REGISTRY}
ifneq ($(REGISTRY),)
IMAGE_PREFIX := $(REGISTRY)/$(IMAGE_PREFIX)
endif
FROM := $(shell grep FROM Dockerfile | cut -d" " -f2)
VERSION := $(shell basename `pwd`)
IMAGE := $(IMAGE_PREFIX)$(OS)-$(VERSION)$(IMAGE_SUFFIX)
all: pull build
pull:
docker pull "$(FROM)"
build:
docker build -t "$(IMAGE)" .
push:
docker push "$(IMAGE)"
clean:
if (docker inspect --type image "$(IMAGE)" >/dev/null 2>&1); then docker rmi "$(IMAGE)"; fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment