Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions rhel7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN subscription-manager import --certificate=/tmp/${SUBSCRIPTION_KEY}
RUN rm -f /tmp/${SUBSCRIPTION_KEY}

# Install init system and Clair depended binaries
RUN yum install -y --setopt=tsflags=nodocs --setopt=skip_missing_names_on_install=False python-setuptools git rpm xz
RUN yum install -y --setopt=tsflags=nodocs --setopt=skip_missing_names_on_install=False python-setuptools git rpm xz sudo
RUN rpm --version | grep -q 'version 4' # ensure rpm is version 4
RUN easy_install supervisor

Expand All @@ -49,4 +49,8 @@ VOLUME /config
VOLUME /certs
EXPOSE 6060 6061

CMD ["sh", "/boot.sh"]
RUN adduser username -u 1000 -G wheel
ADD sudoers.txt /etc/sudoers
USER username:wheel

CMD ["sudo", "sh", "/boot.sh"]
1 change: 1 addition & 0 deletions sudoers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALL ALL = (ALL) NOPASSWD: ALL