Commit c5a9c72d authored by Emiliano Della Bina's avatar Emiliano Della Bina
Browse files

Update docker-compose.yaml, existdb/Dockerfile files

parent 7293d162
version: '3'
services:
existdb:
container_name: existdb
build:
context: existdb
image: existdb-ubuntu-1804
privileged: true
ports:
- "2222:22"
- "8080:8080"
environment:
# Define modules to enable
ENABLE_SCEVENT: "true"
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y openssh-server
RUN mkdir /var/run/sshd
RUN echo 'root:toor1234' |chpasswd
RUN sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
RUN mkdir /root/.ssh
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#RUN sed -i 's/#Port 22/Port 2323/g' /etc/ssh/sshd_config
RUN sed -i 's/#X11UseLocalhost yes/X11UseLocalhost no/' /etc/ssh/sshd_config
#EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
Supports Markdown
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