Skip to content

Instantly share code, notes, and snippets.

@askb
Created July 19, 2018 22:13
Show Gist options
  • Save askb/fd7c92b0bcd2436e70d099a1a61a5923 to your computer and use it in GitHub Desktop.
Save askb/fd7c92b0bcd2436e70d099a1a61a5923 to your computer and use it in GitHub Desktop.
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
FROM centos:7
MAINTAINER askb <[email protected]>
RUN yum update -y \
&& yum install -y \
facter \
libffi-dev \
libssl-dev \
python \
python-pip \
python-tox \
python-dev \
xmlstarlet \
zip \
ansible \
sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN adduser -m -s /bin/bash centos && echo "centos:centos" | chpasswd && usermod -aG wheel centos
RUN adduser -m -s /bin/bash jenkins && echo "jenkins:jenkins" | chpasswd && usermod -aG wheel centos
RUN adduser -m -s /bin/bash docker && echo "docker:docker" | chpasswd && usermod -aG wheel centos
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment