Dockerfile 988 Bytes
Newer Older
1
FROM ubuntu:xenial-20180417
2 3 4

MAINTAINER VideoLAN roots <roots@videolan.org>

5
ENV IMAGE_DATE=20180529134500
6

7 8 9 10 11 12 13
# If someone wants to use VideoLAN docker images on a local machine and does
# not want to be disturbed by the jenkins user, we should not take an uid/gid
# in the user range of main distributions, which means:
# - Debian based: <1000
# - RPM based: <500 (CentOS, RedHat, etc.)
ARG JENKINS_UID=499

14
RUN apt-get update && apt-get -y upgrade && \
15 16 17 18 19 20
    apt-get install -y openssh-server openjdk-8-jdk lftp ca-certificates && \
    apt-get clean -y && rm -rf /var/lib/apt/lists/* && \
    sed -i 's|session    required     pam_loginuid.so|session    optional     pam_loginuid.so|g' /etc/pam.d/sshd && \
    sed -i 's,use_authtok ,,' /etc/pam.d/common-password && \
    ssh-keygen -A && \
    mkdir -p /var/run/sshd && \
21 22
    addgroup --quiet --gid ${JENKINS_UID} jenkins && \
    adduser --quiet --uid ${JENKINS_UID} --ingroup jenkins jenkins && \
23
    echo "jenkins:jenkins" | chpasswd