-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
executable file
·40 lines (34 loc) · 1.49 KB
/
dockerfile
File metadata and controls
executable file
·40 lines (34 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM ubuntu
MAINTAINER Mansur Ul Hasan <[email protected]>
RUN apt-get update -y
RUN apt-get install openssh-server -y
RUN mkdir /var/run/sshd
RUN echo 'root:Password1' |chpasswd
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
#SSH login Fix Otherwise user is kicked off after Login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
####### Setting up JAVA #########
##RUN echo "Downloading JAVA JDK 1.8 from Local repository ########
RUN wget https://www.dropbox.com/s/dwsqw6gofynaf5e/jdk1.8.0_91.tar?dl=0
RUN mv jdk1.8.0_91.tar?dl=0 jdk1.8.0_91.tar
##RUN echo "Installing JAVA JDK 1.8"
RUN mkdir -p /usr/java
RUN mv jdk1.8.0_91.tar /usr/java
##RUN of /usr/java
RUN tar xvf /usr/java/jdk1.8.0_91.tar -C /usr/java/
RUN ln -s /usr/java/jdk1.8.0_91 /usr/java/latest
##echo "Creating links of binaries"
RUN ln -s /usr/java/latest/bin/java /usr/bin/java
RUN ln -s /usr/java/latest/bin/javac /usr/bin/javac
RUN ln -s /usr/java/latest/bin/javah /usr/bin/javah
RUN ln -s /usr/java/latest/bin/javap /usr/bin/javap
RUN ln -s /usr/java/latest/bin/javadoc /usr/bin/javadoc
RUN ln -s /usr/java/latest/bin/javaws /usr/bin/javaws
#echo "Checking JAVA version"
RUN java -version
##### I am going to make changes to this file and to see if GIT will actually work###
This is the change I'm making on Jan 6 20188