Last change
on this file since 11541 was
11434,
checked in by landauf, 7 years ago
|
install java 8 to run jetty slave in docker container
|
File size:
615 bytes
|
Line | |
---|
1 | FROM ubuntu:14.04 |
---|
2 | |
---|
3 | MAINTAINER Fabian 'x3n' Landau |
---|
4 | |
---|
5 | RUN apt-get update && apt-get install -y --no-install-recommends \ |
---|
6 | software-properties-common \ |
---|
7 | && rm -rf /var/lib/apt/lists/* |
---|
8 | |
---|
9 | RUN add-apt-repository --yes ppa:openjdk-r/ppa |
---|
10 | |
---|
11 | RUN apt-get update && apt-get install -y --no-install-recommends \ |
---|
12 | openssh-server \ |
---|
13 | openjdk-8-jdk \ |
---|
14 | && rm -rf /var/lib/apt/lists/* |
---|
15 | |
---|
16 | RUN mkdir -p /var/run/sshd |
---|
17 | RUN sed -i 's|session required pam_loginuid.so|session optional pam_loginuid.so|g' /etc/pam.d/sshd |
---|
18 | |
---|
19 | RUN adduser --quiet jenkins |
---|
20 | RUN echo "jenkins:jenkins" | chpasswd |
---|
21 | |
---|
22 | EXPOSE 22 |
---|
23 | |
---|
24 | CMD ["/usr/sbin/sshd", "-D"] |
---|
Note: See
TracBrowser
for help on using the repository browser.