remove opensnitch

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-04-09 14:50:49 -04:00
parent 3301233387
commit 2bf9642576
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
3 changed files with 0 additions and 92 deletions

View File

@ -1,24 +0,0 @@
# Usage:
# docker run -d \
# -v /etc/localtime:/etc/localtime:ro \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# -e "DISPLAY=unix${DISPLAY}" \
# -v /usr/share/X11:/usr/share/X11:ro \
# --net host \
# --cap-add NET_ADMIN \
# --name opensnitch \
# r.j3ss.co/opensnitch
#
FROM r.j3ss.co/opensnitchd:latest
ENV HOME /home/user
RUN useradd --create-home --home-dir $HOME user \
&& mkdir -p $HOME/.cache/dconf \
&& mkdir -p $HOME/.dbus \
&& chown -R user:user $HOME
WORKDIR $HOME
USER user
ENTRYPOINT ["/usr/local/bin/opensnitch-qt", "--debug"]

View File

@ -1,55 +0,0 @@
# Usage:
# docker run -d \
# --name=opensnitchd \
# --net host \
# --cap-add NET_ADMIN \
# r.j3ss.co/opensnitchd
#
FROM debian:sid
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir -p /etc/xdg/QtProject && \
apt-get update && apt-get install -y \
ca-certificates \
iptables \
libcap2 \
libnetfilter-queue1 \
libnfnetlink0 \
python3 \
python3-dbus \
python3-dev \
python3-gi \
python3-pyinotify \
python3-pyqt5 \
python3-setuptools \
tcpdump \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV XTABLES_LIBDIR "/usr/lib/xtables"
ENV OPENSNITCH_VERSION master
RUN buildDeps=' \
build-essential \
git \
libcap-dev \
libnetfilter-queue-dev \
libnfnetlink-dev \
python3-dev \
' \
set -x \
&& apt-get update && apt-get install -y \
$buildDeps \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& git clone --depth 1 --branch ${OPENSNITCH_VERSION} https://github.com/evilsocket/opensnitch.git /usr/src/opensnitch \
&& ( \
cd /usr/src/opensnitch \
&& python3 setup.py install \
&& rm -rf /usr/src/opensnitch \
) \
&& apt-get purge -y $buildDeps \
&& echo "Build complete."
ENTRYPOINT ["/usr/local/bin/opensnitchd", "--debug"]

View File

@ -1,13 +0,0 @@
#!/bin/sh
# From http://wiki.musl-libc.org/wiki/FAQ#Q:_where_is_ldd_.3F
#
# Musl's dynlinker comes with ldd functionality built in. just create a
# symlink from ld-musl-$ARCH.so to /bin/ldd. If the dynlinker was started
# as "ldd", it will detect that and print the appropriate DSO information.
#
# Instead, this string replaced "ldd" with the package so that pyinstaller
# can find the actual lib.
exec /usr/bin/ldd "$@" | \
sed -r 's/([^[:space:]]+) => ldd/\1 => \/lib\/\1/g' | \
sed -r 's/ldd \(.*\)//g'