Browse Source

Remove CI/CD related files

master
Lauri Võsandi 1 year ago
parent
commit
22290db3bb
  1. 32
      Dockerfile
  2. 7
      entrypoint-openvpn.sh
  3. 8
      entrypoint-strongswan.sh

32
Dockerfile

@ -1,32 +0,0 @@ @@ -1,32 +0,0 @@
ARG base_image=ubuntu:20.04
FROM $base_image as build
ENV PYTHONUNBUFFERED=1
ENV LC_ALL C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
# Make apt faster
RUN echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup \
&& echo "Dpkg::Use-Pty=0;" > /etc/apt/apt.conf.d/99quieter
RUN apt-get update -qq \
&& apt-get install -y -qq \
python3-pip \
openvpn \
strongswan \
libcharon-extra-plugins
# Dump on console what modules StrongSwan attempts to load
RUN echo '#!/bin/bash' > /usr/sbin/modprobe \
&& echo 'echo Attempting to load modules: $@' >> /usr/sbin/modprobe \
&& chmod +x /usr/sbin/modprobe
COPY entrypoint-openvpn.sh /entrypoint-openvpn.sh
COPY entrypoint-strongswan.sh /entrypoint-strongswan.sh
COPY pinecrypt/client/. /src/pinecrypt/client
COPY setup.py /src/
COPY README.md /src/
COPY misc/ /src/misc/
WORKDIR /src
RUN pip3 install . \
&& echo "#!/bin/sh" > /usr/bin/chcon \
&& chmod +x /usr/bin/chcon

7
entrypoint-openvpn.sh

@ -1,7 +0,0 @@ @@ -1,7 +0,0 @@
#!/bin/sh
set -e
sleep 10
$@
AUTHORITY=$3
test -f /etc/certidude/authority/$AUTHORITY/host_cert.pem
openvpn --config /etc/openvpn/$AUTHORITY.conf

8
entrypoint-strongswan.sh

@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
#!/bin/sh
set -e
sleep 10
$@
AUTHORITY=$3
test -f /etc/certidude/authority/$AUTHORITY/host_cert.pem
/usr/sbin/ipsec stop
/usr/sbin/ipsec start --nofork
Loading…
Cancel
Save