Commit 0d45e40a authored by Joseph Noir's avatar Joseph Noir

Remove SSH related setup

parent e3de3102
...@@ -19,7 +19,6 @@ RUN yum update -y \ ...@@ -19,7 +19,6 @@ RUN yum update -y \
RUN yum install -y git \ RUN yum install -y git \
wget \ wget \
make \ make \
openssh-server \
sudo \ sudo \
java-1.8.0-openjdk \ java-1.8.0-openjdk \
cmake3 \ cmake3 \
...@@ -32,15 +31,6 @@ RUN yum install -y git \ ...@@ -32,15 +31,6 @@ RUN yum install -y git \
####################### SETUP SSH ######################### ####################### SETUP SSH #########################
# gen dummy keys, centos doesn't autogen them like ubuntu does
RUN ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh_host_dsa_key
RUN ssh-keygen -q -N "" -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key
RUN ssh-keygen -q -N "" -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key
# Set SSH Configuration to allow remote logins without /proc write access
RUN sed -ri 's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
/etc/pam.d/sshd
# Create Jenkins User # Create Jenkins User
RUN useradd jenkins -m -s /bin/bash RUN useradd jenkins -m -s /bin/bash
......
...@@ -19,7 +19,6 @@ RUN yum update -y \ ...@@ -19,7 +19,6 @@ RUN yum update -y \
RUN yum install -y git \ RUN yum install -y git \
wget \ wget \
make \ make \
openssh-server \
sudo \ sudo \
java-1.8.0-openjdk \ java-1.8.0-openjdk \
cmake3 \ cmake3 \
...@@ -32,13 +31,6 @@ RUN yum install -y git \ ...@@ -32,13 +31,6 @@ RUN yum install -y git \
####################### SETUP SSH ######################### ####################### SETUP SSH #########################
# gen dummy keys, centos doesn't autogen them like ubuntu does
RUN /usr/bin/ssh-keygen -A
# Set SSH Configuration to allow remote logins without /proc write access
RUN sed -ri 's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
/etc/pam.d/sshd
# Create Jenkins User # Create Jenkins User
RUN useradd jenkins -m -s /bin/bash RUN useradd jenkins -m -s /bin/bash
......
...@@ -17,7 +17,6 @@ RUN apt-get update -y && \ ...@@ -17,7 +17,6 @@ RUN apt-get update -y && \
# Install Packages # Install Packages
RUN apt-get install -y git \ RUN apt-get install -y git \
wget \ wget \
openssh-server \
openjdk-11-jdk \ openjdk-11-jdk \
cmake \ cmake \
gcc g++ \ gcc g++ \
...@@ -28,13 +27,6 @@ RUN apt-get install -y git \ ...@@ -28,13 +27,6 @@ RUN apt-get install -y git \
####################### SETUP SSH ######################### ####################### SETUP SSH #########################
# gen dummy keys, centos doesn't autogen them like ubuntu does
RUN /usr/bin/ssh-keygen -A
# Set SSH Configuration to allow remote logins without /proc write access
RUN sed -ri 's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
/etc/pam.d/sshd
# Create Jenkins User # Create Jenkins User
RUN useradd jenkins -m -s /bin/bash RUN useradd jenkins -m -s /bin/bash
......
...@@ -25,7 +25,6 @@ RUN apt-get update && \ ...@@ -25,7 +25,6 @@ RUN apt-get update && \
# Install Packages # Install Packages
RUN apt-get install -y git \ RUN apt-get install -y git \
wget \ wget \
openssh-server \
cmake \ cmake \
gcc g++ \ gcc g++ \
clang-4.0 \ clang-4.0 \
...@@ -41,13 +40,6 @@ RUN apt-get install -y -t jessie-backports openjdk-8-jdk ...@@ -41,13 +40,6 @@ RUN apt-get install -y -t jessie-backports openjdk-8-jdk
####################### SETUP SSH ######################### ####################### SETUP SSH #########################
# gen dummy keys, centos doesn't autogen them like ubuntu does
RUN /usr/bin/ssh-keygen -A
# Set SSH Configuration to allow remote logins without /proc write access
RUN sed -ri 's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
/etc/pam.d/sshd
# Create Jenkins User # Create Jenkins User
RUN useradd jenkins -m -s /bin/bash RUN useradd jenkins -m -s /bin/bash
......
...@@ -17,7 +17,6 @@ RUN apt-get update -y && \ ...@@ -17,7 +17,6 @@ RUN apt-get update -y && \
# Install Packages # Install Packages
RUN apt-get install -y git \ RUN apt-get install -y git \
wget \ wget \
openssh-server \
openjdk-8-jdk \ openjdk-8-jdk \
cmake \ cmake \
gcc g++ \ gcc g++ \
...@@ -28,13 +27,6 @@ RUN apt-get install -y git \ ...@@ -28,13 +27,6 @@ RUN apt-get install -y git \
####################### SETUP SSH ######################### ####################### SETUP SSH #########################
# gen dummy keys, centos doesn't autogen them like ubuntu does
RUN /usr/bin/ssh-keygen -A
# Set SSH Configuration to allow remote logins without /proc write access
RUN sed -ri 's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
/etc/pam.d/sshd
# Create Jenkins User # Create Jenkins User
RUN useradd jenkins -m -s /bin/bash RUN useradd jenkins -m -s /bin/bash
......
...@@ -15,7 +15,6 @@ RUN dnf update -y && \ ...@@ -15,7 +15,6 @@ RUN dnf update -y && \
# Install Packages # Install Packages
RUN dnf install -y git \ RUN dnf install -y git \
wget \ wget \
openssh-server \
sudo \ sudo \
java-9-openjdk \ java-9-openjdk \
cmake \ cmake \
...@@ -29,13 +28,6 @@ RUN dnf install -y git \ ...@@ -29,13 +28,6 @@ RUN dnf install -y git \
####################### SETUP SSH ######################### ####################### SETUP SSH #########################
# gen dummy keys, centos doesn't autogen them like ubuntu does
RUN /usr/bin/ssh-keygen -A
# Set SSH Configuration to allow remote logins without /proc write access
RUN sed -ri 's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
/etc/pam.d/sshd
# Create Jenkins User # Create Jenkins User
RUN useradd jenkins -m -s /bin/bash RUN useradd jenkins -m -s /bin/bash
......
...@@ -16,7 +16,6 @@ RUN dnf update -y && \ ...@@ -16,7 +16,6 @@ RUN dnf update -y && \
RUN dnf install -y git \ RUN dnf install -y git \
wget \ wget \
make \ make \
openssh-server \
sudo \ sudo \
java-9-openjdk \ java-9-openjdk \
cmake \ cmake \
...@@ -36,13 +35,6 @@ RUN pip install --upgrade gcovr ...@@ -36,13 +35,6 @@ RUN pip install --upgrade gcovr
####################### SETUP SSH ######################### ####################### SETUP SSH #########################
# gen dummy keys, centos doesn't autogen them like ubuntu does
RUN /usr/bin/ssh-keygen -A
# Set SSH Configuration to allow remote logins without /proc write access
RUN sed -ri 's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
/etc/pam.d/sshd
# Create Jenkins User # Create Jenkins User
RUN useradd jenkins -m -s /bin/bash RUN useradd jenkins -m -s /bin/bash
......
...@@ -16,7 +16,6 @@ RUN dnf update -y && \ ...@@ -16,7 +16,6 @@ RUN dnf update -y && \
RUN dnf install -y git \ RUN dnf install -y git \
wget \ wget \
make \ make \
openssh-server \
sudo \ sudo \
java-11-openjdk \ java-11-openjdk \
cmake \ cmake \
...@@ -36,13 +35,6 @@ RUN pip install --upgrade gcovr ...@@ -36,13 +35,6 @@ RUN pip install --upgrade gcovr
####################### SETUP SSH ######################### ####################### SETUP SSH #########################
# gen dummy keys, centos doesn't autogen them like ubuntu does
RUN /usr/bin/ssh-keygen -A
# Set SSH Configuration to allow remote logins without /proc write access
RUN sed -ri 's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
/etc/pam.d/sshd
# Create Jenkins User # Create Jenkins User
RUN useradd jenkins -m -s /bin/bash RUN useradd jenkins -m -s /bin/bash
......
...@@ -16,7 +16,6 @@ RUN dnf update -y && \ ...@@ -16,7 +16,6 @@ RUN dnf update -y && \
RUN dnf install -y git \ RUN dnf install -y git \
wget \ wget \
make \ make \
openssh-server \
sudo \ sudo \
java-11-openjdk \ java-11-openjdk \
cmake \ cmake \
...@@ -36,13 +35,6 @@ RUN pip install --upgrade gcovr ...@@ -36,13 +35,6 @@ RUN pip install --upgrade gcovr
####################### SETUP SSH ######################### ####################### SETUP SSH #########################
# gen dummy keys, centos doesn't autogen them like ubuntu does
RUN /usr/bin/ssh-keygen -A
# Set SSH Configuration to allow remote logins without /proc write access
RUN sed -ri 's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
/etc/pam.d/sshd
# Create Jenkins User # Create Jenkins User
RUN useradd jenkins -m -s /bin/bash RUN useradd jenkins -m -s /bin/bash
......
...@@ -17,7 +17,6 @@ RUN apt-get update -y && \ ...@@ -17,7 +17,6 @@ RUN apt-get update -y && \
# Install Packages # Install Packages
RUN apt-get install -y git \ RUN apt-get install -y git \
wget \ wget \
openssh-server \
openjdk-8-jdk \ openjdk-8-jdk \
cmake \ cmake \
gcc g++ \ gcc g++ \
...@@ -28,13 +27,6 @@ RUN apt-get install -y git \ ...@@ -28,13 +27,6 @@ RUN apt-get install -y git \
####################### SETUP SSH ######################### ####################### SETUP SSH #########################
# gen dummy keys, centos doesn't autogen them like ubuntu does
RUN /usr/bin/ssh-keygen -A
# Set SSH Configuration to allow remote logins without /proc write access
RUN sed -ri 's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
/etc/pam.d/sshd
# Create Jenkins User # Create Jenkins User
RUN useradd jenkins -m -s /bin/bash RUN useradd jenkins -m -s /bin/bash
......
...@@ -17,7 +17,6 @@ RUN apt-get update -y && \ ...@@ -17,7 +17,6 @@ RUN apt-get update -y && \
# Install Packages # Install Packages
RUN apt-get install -y git \ RUN apt-get install -y git \
wget \ wget \
openssh-server \
openjdk-11-jdk \ openjdk-11-jdk \
cmake \ cmake \
gcc g++ \ gcc g++ \
...@@ -28,13 +27,6 @@ RUN apt-get install -y git \ ...@@ -28,13 +27,6 @@ RUN apt-get install -y git \
####################### SETUP SSH ######################### ####################### SETUP SSH #########################
# gen dummy keys, centos doesn't autogen them like ubuntu does
RUN /usr/bin/ssh-keygen -A
# Set SSH Configuration to allow remote logins without /proc write access
RUN sed -ri 's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
/etc/pam.d/sshd
# Create Jenkins User # Create Jenkins User
RUN useradd jenkins -m -s /bin/bash RUN useradd jenkins -m -s /bin/bash
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment