Created
July 19, 2018 22:13
-
-
Save askb/fd7c92b0bcd2436e70d099a1a61a5923 to your computer and use it in GitHub Desktop.
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
# 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