-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Makefile target for building locally in containers
Builds are done in containers where dependencies can be met, for example `python-devel` (python2) on el7, which might not be available on host machine. For el7 builds CentOS 7 container is used, because `rpm-build` package is not available on ubi7. To build RPMs in a container use `make build_container`. The `BUILD_CONTAINER` variable must be set to either `el7` or `el8`. Also added .gitignore entries for subfolders in `packaging/` as packages and intermediate build files shouldn`t be in the repo.
- Loading branch information
1 parent
40af46c
commit aa4dbac
Showing
4 changed files
with
73 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM centos:7 | ||
|
||
VOLUME /repo | ||
|
||
RUN yum update -y && \ | ||
yum install -y rpm-build python-devel make git | ||
|
||
WORKDIR /repo | ||
ENV DIST_VERSION 7 | ||
ENTRYPOINT make _build_local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi:latest | ||
|
||
VOLUME /repo | ||
|
||
RUN dnf update -y && \ | ||
dnf install -y python3-devel rpm-build make git | ||
|
||
WORKDIR /repo | ||
ENV DIST_VERSION 8 | ||
ENTRYPOINT make _build_local |