Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ansible
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
docker
ansible
Commits
4f0baebf
Verified
Commit
4f0baebf
authored
4 years ago
by
Dan Thomson
Browse files
Options
Downloads
Patches
Plain Diff
Fix sudoers file permissions
parent
f24ca312
No related branches found
Branches containing commit
Tags
18
Tags containing commit
No related merge requests found
Pipeline
#25102
passed
4 years ago
Stage: deploy
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile.centos7
+4
-3
4 additions, 3 deletions
Dockerfile.centos7
Dockerfile.centos8
+1
-1
1 addition, 1 deletion
Dockerfile.centos8
Dockerfile.debian10
+1
-1
1 addition, 1 deletion
Dockerfile.debian10
with
6 additions
and
5 deletions
Dockerfile.centos7
+
4
−
3
View file @
4f0baebf
...
...
@@ -35,9 +35,10 @@ RUN sed -i '/^ip_resolve=/{h;s/=.*/=4/};${x;/^$/{s//ip_resolve=4/;H};x}' /etc/yu
rm -f /tmp/requirements.txt && \
yum -y clean all
COPY /entrypoint.sh /entrypoint.sh
COPY /sudoers /etc/sudoers.d/ansible
RUN chmod 755 /entrypoint.sh
COPY entrypoint.sh /entrypoint.sh
COPY sudoers /etc/sudoers.d/ansible
RUN chmod 755 /entrypoint.sh && chmod 600 /etc/sudoers.d/ansible
RUN groupadd --gid $GID ansible && \
adduser --home /home/ansible --shell /bin/bash --gid $GID --uid $UID ansible
...
...
This diff is collapsed.
Click to expand it.
Dockerfile.centos8
+
1
−
1
View file @
4f0baebf
...
...
@@ -35,7 +35,7 @@ RUN sed -i '/^ip_resolve=/{h;s/=.*/=4/};${x;/^$/{s//ip_resolve=4/;H};x}' /etc/yu
COPY entrypoint.sh /entrypoint.sh
COPY sudoers /etc/sudoers.d/ansible
RUN chmod 755 /entrypoint.sh
RUN chmod 755 /entrypoint.sh
&& chmod 600 /etc/sudoers.d/ansible
RUN groupadd --gid $GID ansible && \
adduser --home /home/ansible --shell /bin/bash --gid $GID --uid $UID ansible
...
...
This diff is collapsed.
Click to expand it.
Dockerfile.debian10
+
1
−
1
View file @
4f0baebf
...
...
@@ -40,7 +40,7 @@ RUN apt-get -y update && \
COPY entrypoint.sh /entrypoint.sh
COPY sudoers /etc/sudoers.d/ansible
RUN chmod 755 /entrypoint.sh
RUN chmod 755 /entrypoint.sh
&& chmod 600 /etc/sudoers.d/ansible
RUN addgroup --gid $GID ansible && \
adduser --home /home/ansible --shell /bin/bash --disabled-password --gecos '' --gid $GID --uid $UID ansible
...
...
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