-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved Docker setup into Dockerfile (#1)
To make local testing easier.
- Loading branch information
Showing
2 changed files
with
35 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ubuntu:16.04 | ||
|
||
# Update apt | ||
RUN apt-get -qq update | ||
|
||
# Install sudo | ||
RUN apt-get -qq -y install sudo | ||
RUN sudo -V | ||
|
||
# Install ansible | ||
RUN apt-get -qq -y install ansible | ||
|
||
# Configure test user | ||
RUN useradd --home /home/test_usr test_usr | ||
RUN bash -c "echo 'test_usr ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/test_usr" | ||
RUN mkdir -p /home/test_usr/.ansible/tmp | ||
RUN chown root:root /home | ||
RUN chmod 'u=rwx,go=rx' /home | ||
RUN chown -R test_usr:test_usr /home/test_usr | ||
RUN chmod -R 'u=rwx,go=rx' /home/test_usr |