ci: Begin continuous integration setup

This commit is contained in:
2018-04-07 10:02:15 -05:00
parent 87b9b0c60d
commit 2272a9fedc
3 changed files with 65 additions and 0 deletions

14
ci/Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM fedora:27
RUN dnf install -y \
ansible \
openssh-clients \
python2-netaddr
# XXX These UID/GIDs must match the Jenkins UID/GID on the agent
RUN groupadd -g 992 jenkins
RUN useradd -u 995 -g jenkins -c Jenkins -d /var/lib/jenkins -m jenkins
RUN install -m 700 -o jenkins -g jenkins -d /var/lib/jenkins/.ssh
COPY known_hosts /var/lib/jenkins/.ssh/
RUN chown jenkins:jenkins /var/lib/jenkins/.ssh/known_hosts