├── LICENSE ├── README.md └── jenkins-slave └── Dockerfile /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 miyo@eficode.com 4 | Copyright (c) 2014 Ervin Varga 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | the Software, and to permit persons to whom the Software is furnished to do so, 11 | subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Docker Images Project 2 | ===================== 3 | 4 | Contains various [Docker][1] build files for creating Docker images (base images, intermediate images, etc.). Each folder is designated to one particular image, and has a Dockerfile (besides other build related stuff). Every Dockerfile is well commented and should be consulted for more information what it represents. 5 | 6 | **This repository is archived and is only kept public for historical reasons.** 7 | 8 | [1]: http://docker.io 9 | -------------------------------------------------------------------------------- /jenkins-slave/Dockerfile: -------------------------------------------------------------------------------- 1 | # This Dockerfile is used to build an image containing basic stuff to be used as a Jenkins slave build node. 2 | FROM ubuntu:bionic 3 | MAINTAINER Ervin Varga 4 | MAINTAINER Sylvain Maucourt 5 | 6 | # In case you need proxy 7 | #RUN echo 'Acquire::http::Proxy "http://127.0.0.1:8080";' >> /etc/apt/apt.conf 8 | 9 | # Add locales after locale-gen as needed 10 | # Upgrade packages on image 11 | # Preparations for sshd 12 | RUN apt-get -q update &&\ 13 | apt-get install -y locales 14 | RUN locale-gen en_US.UTF-8 &&\ 15 | DEBIAN_FRONTEND="noninteractive" apt-get -q upgrade -y -o Dpkg::Options::="--force-confnew" --no-install-recommends &&\ 16 | DEBIAN_FRONTEND="noninteractive" apt-get -q install -y -o Dpkg::Options::="--force-confnew" --no-install-recommends openssh-server &&\ 17 | apt-get -q autoremove &&\ 18 | apt-get -q clean -y && rm -rf /var/lib/apt/lists/* && rm -f /var/cache/apt/*.bin &&\ 19 | sed -i 's|session required pam_loginuid.so|session optional pam_loginuid.so|g' /etc/pam.d/sshd &&\ 20 | mkdir -p /var/run/sshd 21 | 22 | ENV LANG en_US.UTF-8 23 | ENV LANGUAGE en_US:en 24 | ENV LC_ALL en_US.UTF-8 25 | 26 | # Install JDK 8 (latest edition) 27 | RUN apt-get -q update &&\ 28 | DEBIAN_FRONTEND="noninteractive" apt-get -q install -y -o Dpkg::Options::="--force-confnew" --no-install-recommends software-properties-common &&\ 29 | add-apt-repository -y ppa:openjdk-r/ppa &&\ 30 | apt-get -q update &&\ 31 | DEBIAN_FRONTEND="noninteractive" apt-get -q install -y -o Dpkg::Options::="--force-confnew" --no-install-recommends openjdk-8-jre-headless &&\ 32 | apt-get -q clean -y && rm -rf /var/lib/apt/lists/* && rm -f /var/cache/apt/*.bin 33 | 34 | # Set user jenkins to the image 35 | RUN useradd -m -d /home/jenkins -s /bin/sh jenkins &&\ 36 | echo "jenkins:jenkins" | chpasswd 37 | 38 | # Standard SSH port 39 | EXPOSE 22 40 | 41 | # Default command 42 | CMD ["/usr/sbin/sshd", "-D"] 43 | --------------------------------------------------------------------------------