Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ansible
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
docker
ansible
Commits
4f0baebf
Commit
4f0baebf
authored
Sep 16, 2020
by
Dan Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sudoers file permissions
parent
f24ca312
Pipeline
#25102
passed with stage
in 6 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
Dockerfile.centos7
Dockerfile.centos7
+4
-3
Dockerfile.centos8
Dockerfile.centos8
+1
-1
Dockerfile.debian10
Dockerfile.debian10
+1
-1
No files found.
Dockerfile.centos7
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
...
...
Dockerfile.centos8
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
...
...
Dockerfile.debian10
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment