This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3861 from robaerd/release-docker-images
docker: add release images for distributions packages are generated for
- Loading branch information
Showing
18 changed files
with
550 additions
and
187 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,44 @@ | ||
FROM debian:bullseye | ||
|
||
ENV LANG C.UTF-8 | ||
ENV LANGUAGE C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get -y install strace \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Create User:Group | ||
# The id is important as jenkins docker agents use the same id that is running | ||
# on the slaves to execute containers | ||
ARG JENKINS_GROUPID | ||
RUN groupadd \ | ||
-g ${JENKINS_GROUPID} \ | ||
-f \ | ||
jenkins | ||
|
||
ARG JENKINS_USERID | ||
RUN useradd \ | ||
--create-home \ | ||
--uid ${JENKINS_USERID} \ | ||
--gid ${JENKINS_GROUPID} \ | ||
--shell "/bin/bash" \ | ||
jenkins | ||
|
||
ENV ELEKTRA_ROOT=/opt/elektra/ | ||
RUN mkdir -p ${ELEKTRA_ROOT} | ||
COPY ./*.deb ${ELEKTRA_ROOT} | ||
COPY ./*.ddeb ${ELEKTRA_ROOT} | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y install ${ELEKTRA_ROOT}/* \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN kdb mount-info \ | ||
&& mkdir -p `kdb sget system:/info/elektra/constants/cmake/KDB_DB_SPEC .` || true \ | ||
&& chown -R ${JENKINS_USERID} `kdb sget system:/info/elektra/constants/cmake/KDB_DB_SPEC .` \ | ||
&& chown -R ${JENKINS_USERID} `kdb sget system:/info/elektra/constants/cmake/KDB_DB_SYSTEM .` \ | ||
&& chown -R ${JENKINS_USERID} `kdb sget system:/info/elektra/constants/cmake/BUILTIN_DATA_FOLDER .` | ||
|
||
USER ${JENKINS_USERID} |
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,44 @@ | ||
FROM debian:buster | ||
|
||
ENV LANG C.UTF-8 | ||
ENV LANGUAGE C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get -y install strace \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Create User:Group | ||
# The id is important as jenkins docker agents use the same id that is running | ||
# on the slaves to execute containers | ||
ARG JENKINS_GROUPID | ||
RUN groupadd \ | ||
-g ${JENKINS_GROUPID} \ | ||
-f \ | ||
jenkins | ||
|
||
ARG JENKINS_USERID | ||
RUN useradd \ | ||
--create-home \ | ||
--uid ${JENKINS_USERID} \ | ||
--gid ${JENKINS_GROUPID} \ | ||
--shell "/bin/bash" \ | ||
jenkins | ||
|
||
ENV ELEKTRA_ROOT=/opt/elektra/ | ||
RUN mkdir -p ${ELEKTRA_ROOT} | ||
COPY ./*.deb ${ELEKTRA_ROOT} | ||
COPY ./*.ddeb ${ELEKTRA_ROOT} | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y install ${ELEKTRA_ROOT}/* \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN kdb mount-info \ | ||
&& mkdir -p `kdb sget system:/info/elektra/constants/cmake/KDB_DB_SPEC .` || true \ | ||
&& chown -R ${JENKINS_USERID} `kdb sget system:/info/elektra/constants/cmake/KDB_DB_SPEC .` \ | ||
&& chown -R ${JENKINS_USERID} `kdb sget system:/info/elektra/constants/cmake/KDB_DB_SYSTEM .` \ | ||
&& chown -R ${JENKINS_USERID} `kdb sget system:/info/elektra/constants/cmake/BUILTIN_DATA_FOLDER .` | ||
|
||
USER ${JENKINS_USERID} |
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,37 @@ | ||
FROM fedora:33 | ||
|
||
RUN dnf upgrade --refresh -y \ | ||
&& dnf install -y strace \ | ||
&& dnf clean all -y | ||
|
||
# Create User:Group | ||
# The id is important as jenkins docker agents use the same id that is running | ||
# on the slaves to execute containers | ||
ARG JENKINS_GROUPID | ||
RUN groupadd \ | ||
-g ${JENKINS_GROUPID} \ | ||
-f \ | ||
jenkins | ||
|
||
ARG JENKINS_USERID | ||
RUN useradd \ | ||
--create-home \ | ||
--uid ${JENKINS_USERID} \ | ||
--gid ${JENKINS_GROUPID} \ | ||
--shell "/bin/bash" \ | ||
jenkins | ||
|
||
ENV ELEKTRA_ROOT=/opt/elektra/ | ||
RUN mkdir -p ${ELEKTRA_ROOT} | ||
COPY ./*.rpm ${ELEKTRA_ROOT} | ||
|
||
RUN yum localinstall -y ${ELEKTRA_ROOT}/* \ | ||
&& dnf clean all -y | ||
|
||
RUN kdb mount-info \ | ||
&& mkdir -p `kdb sget system:/info/elektra/constants/cmake/KDB_DB_SPEC .` || true \ | ||
&& chown -R ${JENKINS_USERID} `kdb sget system:/info/elektra/constants/cmake/KDB_DB_SPEC .` \ | ||
&& chown -R ${JENKINS_USERID} `kdb sget system:/info/elektra/constants/cmake/KDB_DB_SYSTEM .` \ | ||
&& chown -R ${JENKINS_USERID} `kdb sget system:/info/elektra/constants/cmake/BUILTIN_DATA_FOLDER .` | ||
|
||
USER ${JENKINS_USERID} |
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,37 @@ | ||
FROM fedora:34 | ||
|
||
RUN dnf upgrade --refresh -y \ | ||
&& dnf install -y strace \ | ||
&& dnf clean all -y | ||
|
||
# Create User:Group | ||
# The id is important as jenkins docker agents use the same id that is running | ||
# on the slaves to execute containers | ||
ARG JENKINS_GROUPID | ||
RUN groupadd \ | ||
-g ${JENKINS_GROUPID} \ | ||
-f \ | ||
jenkins | ||
|
||
ARG JENKINS_USERID | ||
RUN useradd \ | ||
--create-home \ | ||
--uid ${JENKINS_USERID} \ | ||
--gid ${JENKINS_GROUPID} \ | ||
--shell "/bin/bash" \ | ||
jenkins | ||
|
||
ENV ELEKTRA_ROOT=/opt/elektra/ | ||
RUN mkdir -p ${ELEKTRA_ROOT} | ||
COPY ./*.rpm ${ELEKTRA_ROOT} | ||
|
||
RUN yum localinstall -y ${ELEKTRA_ROOT}/* \ | ||
&& dnf clean all -y | ||
|
||
RUN kdb mount-info \ | ||
&& mkdir -p `kdb sget system:/info/elektra/constants/cmake/KDB_DB_SPEC .` || true \ | ||
&& chown -R ${JENKINS_USERID} `kdb sget system:/info/elektra/constants/cmake/KDB_DB_SPEC .` \ | ||
&& chown -R ${JENKINS_USERID} `kdb sget system:/info/elektra/constants/cmake/KDB_DB_SYSTEM .` \ | ||
&& chown -R ${JENKINS_USERID} `kdb sget system:/info/elektra/constants/cmake/BUILTIN_DATA_FOLDER .` | ||
|
||
USER ${JENKINS_USERID} |
Oops, something went wrong.