mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-14 06:48:16 +08:00
full-test, unix-test: modified to operate in Fedora as well
That also enables a check for ping in the IPv6 address.
This commit is contained in:
41
tests/docker-ocserv/Dockerfile-debian-unix
Normal file
41
tests/docker-ocserv/Dockerfile-debian-unix
Normal file
@@ -0,0 +1,41 @@
|
||||
FROM debian:jessie
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y haproxy
|
||||
RUN apt-get install -y libgnutls-deb0-28
|
||||
RUN apt-get install -y libprotobuf-c1
|
||||
RUN apt-get install -y libwrap0 libpam0g libseccomp2 libdbus-1-3 libreadline5 libnl-route-3-200
|
||||
RUN apt-get install -y libhttp-parser2.1 libpcl1 libopts25 autogen
|
||||
RUN apt-get install -y libsystemd-daemon0 valgrind nuttcp openssh-server bash
|
||||
RUN apt-get install -y libtalloc2
|
||||
RUN sed 's/PermitRootLogin without-password/PermitRootLogin yes/g' -i /etc/ssh/sshd_config
|
||||
|
||||
RUN echo 'root:root' |chpasswd
|
||||
RUN useradd -m -d /home/admin -s /bin/bash admin
|
||||
RUN echo 'admin:admin' |chpasswd
|
||||
EXPOSE 6000
|
||||
EXPOSE 6000/udp
|
||||
EXPOSE 6001
|
||||
EXPOSE 6001/udp
|
||||
EXPOSE 6551
|
||||
EXPOSE 6551/udp
|
||||
EXPOSE 22
|
||||
|
||||
RUN mkdir /etc/ocserv
|
||||
|
||||
|
||||
ADD key.pem /etc/ocserv/
|
||||
ADD cert.pem /etc/ocserv/
|
||||
ADD combo.pem /etc/ocserv/
|
||||
ADD haproxy.cfg /etc/haproxy/
|
||||
ADD ocserv-unix.conf /etc/ocserv/ocserv.conf
|
||||
ADD passwd /etc/ocserv/
|
||||
ADD ocserv /usr/sbin/
|
||||
ADD ocpasswd /usr/bin/
|
||||
ADD occtl /usr/bin/
|
||||
ADD myscript /usr/bin/
|
||||
# It's not possible to use mknod inside a container with the default LXC
|
||||
# template, so we untar it from this archive.
|
||||
ADD dev-tun.tgz /dev/
|
||||
|
||||
CMD nuttcp -S;/etc/init.d/ssh restart;mkdir -p /tmp/disconnect/;/usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg;/usr/sbin/ocserv -d 1 -f;sleep 3600
|
||||
Reference in New Issue
Block a user