Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fedora
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker Build Images
fedora
Commits
9bb9f1c4
Commit
9bb9f1c4
authored
5 years ago
by
Markus Frosch
Browse files
Options
Downloads
Patches
Plain Diff
Switch to build user and set USER
parent
5e6f0856
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
29/Dockerfile
+7
-5
7 additions, 5 deletions
29/Dockerfile
30/Dockerfile
+7
-5
7 additions, 5 deletions
30/Dockerfile
with
14 additions
and
10 deletions
29/Dockerfile
+
7
−
5
View file @
9bb9f1c4
...
@@ -18,14 +18,16 @@ RUN dnf install -y --allowerasing \
...
@@ -18,14 +18,16 @@ RUN dnf install -y --allowerasing \
&&
rm
-rf
/var/lib/dnf/
*
\
&&
rm
-rf
/var/lib/dnf/
*
\
&&
rm
-f
/var/lib/rpm/.
*
.lock
&&
rm
-f
/var/lib/rpm/.
*
.lock
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
\
RUN
wget
-O
/etc/yum.repos.d/ICINGA-release.repo
\
https://packages.icinga.com/fedora/ICINGA-release.repo
https://packages.icinga.com/fedora/ICINGA-release.repo
RUN
groupadd
-g
1000 build
\
&&
useradd
-u
1000
-g
1000
-m
build
\
&&
echo
'Defaults:build !requiretty'
|
tee
-a
/etc/sudoers
\
&&
echo
'build ALL=(ALL:ALL) NOPASSWD: ALL'
|
tee
-a
/etc/sudoers
\
&&
chown
build.build /usr/local/bin
USER
build
RUN
git clone https://git.icinga.com/build-docker/scripts.git /usr/local/bin
RUN
git clone https://git.icinga.com/build-docker/scripts.git /usr/local/bin
ENTRYPOINT
["/usr/local/bin/icinga-build-entrypoint"]
ENTRYPOINT
["/usr/local/bin/icinga-build-entrypoint"]
CMD
["icinga-build-package"]
CMD
["icinga-build-package"]
This diff is collapsed.
Click to expand it.
30/Dockerfile
+
7
−
5
View file @
9bb9f1c4
...
@@ -9,14 +9,16 @@ RUN dnf install -y --allowerasing \
...
@@ -9,14 +9,16 @@ RUN dnf install -y --allowerasing \
dnf-utils rpmdevtools createrepo
\
dnf-utils rpmdevtools createrepo
\
&&
dnf clean all
&&
dnf 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
\
RUN
wget
-O
/etc/yum.repos.d/ICINGA-release.repo
\
https://packages.icinga.com/fedora/ICINGA-release.repo
https://packages.icinga.com/fedora/ICINGA-release.repo
RUN
groupadd
-g
1000 build
\
&&
useradd
-u
1000
-g
1000
-m
build
\
&&
echo
'Defaults:build !requiretty'
|
tee
-a
/etc/sudoers
\
&&
echo
'build ALL=(ALL:ALL) NOPASSWD: ALL'
|
tee
-a
/etc/sudoers
\
&&
chown
build.build /usr/local/bin
USER
build
RUN
git clone https://git.icinga.com/build-docker/scripts.git /usr/local/bin
RUN
git clone https://git.icinga.com/build-docker/scripts.git /usr/local/bin
ENTRYPOINT
["/usr/local/bin/icinga-build-entrypoint"]
ENTRYPOINT
["/usr/local/bin/icinga-build-entrypoint"]
CMD
["icinga-build-package"]
CMD
["icinga-build-package"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment