Compare commits

..

1 Commits

Author SHA1 Message Date
joshua_schnabel b7bc8efb04 Initial commit 2021-03-14 01:04:10 +01:00
10 changed files with 21 additions and 175 deletions
+19
View File
@@ -0,0 +1,19 @@
MIT License Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+2
View File
@@ -0,0 +1,2 @@
# docker-images
-51
View File
@@ -1,51 +0,0 @@
FROM alpine:3.11 AS builder
ARG DNSDIST_VERSION
RUN apk --update upgrade && \
apk add ca-certificates curl jq && \
apk add --virtual .build-depends \
file gnupg g++ make \
boost-dev openssl-dev libsodium-dev lua-dev net-snmp-dev protobuf-dev \
libedit-dev re2-dev h2o-dev wslay-dev && \
[ -n "$DNSDIST_VERSION" ] || { curl -sSL 'https://api.github.com/repos/PowerDNS/pdns/tags?per_page=100&page={1,2}' | jq -rs '[.[][]]|map(select(has("name")))|map(select(.name|contains("dnsdist-")))|map(.version=(.name|ltrimstr("dnsdist-")))|map(select(true != (.version|contains("-"))))|map(.version)|"DNSDIST_VERSION="+.[0]' > /tmp/latest-dnsdist-tag.sh && . /tmp/latest-dnsdist-tag.sh; } && \
mkdir -v -m 0700 -p /root/.gnupg && \
curl -RL -O 'https://dnsdist.org/_static/dnsdist-keyblock.asc' && \
gpg2 --no-options --verbose --keyid-format 0xlong --keyserver-options auto-key-retrieve=true \
--import *.asc && \
curl -RL -O "https://downloads.powerdns.com/releases/dnsdist-${DNSDIST_VERSION}.tar.bz2{.asc,.sig,}" && \
gpg2 --no-options --verbose --keyid-format 0xlong --keyserver-options auto-key-retrieve=true \
--verify *.sig && \
rm -rf /root/.gnupg *.asc *.sig && \
tar -xpf "dnsdist-${DNSDIST_VERSION}.tar.bz2" && \
rm -f "dnsdist-${DNSDIST_VERSION}.tar.bz2" && \
( \
cd "dnsdist-${DNSDIST_VERSION}" && \
./configure --sysconfdir=/etc/dnsdist --mandir=/usr/share/man \
--enable-dnscrypt --enable-dns-over-tls --enable-dns-over-https --with-libsodium --with-re2 --with-net-snmp && \
make -j 2 && \
make install-strip \
) && \
apk del --purge .build-depends && rm -rf /var/cache/apk/*
FROM alpine:3.11
LABEL maintainer="https://keybase.io/tcely"
RUN apk --update upgrade && \
apk add ca-certificates curl less man \
openssl libsodium lua net-snmp protobuf \
libedit re2 && \
rm -rf /var/cache/apk/*
ENV PAGER less
RUN addgroup -S dnsdist && \
adduser -S -D -G dnsdist dnsdist
COPY --from=builder /usr/local/bin /usr/local/bin/
COPY --from=builder /usr/share/man/man1 /usr/share/man/man1/
RUN /usr/local/bin/dnsdist --version
ENTRYPOINT ["/usr/local/bin/dnsdist"]
CMD ["--help"]
-16
View File
@@ -1,16 +0,0 @@
FROM nginx:alpine
WORKDIR /var/www/
RUN apk add --update curl \
&& rm -rf /var/cache/apk/* \
&& wget https://github.com/hivemq/hivemq-mqtt-web-client/archive/master.zip \
&& unzip master.zip \
&& mv hivemq-mqtt-web-client-master hivemq-mqtt-web-client \
&& rm master.zip
ADD nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx"]
-24
View File
@@ -1,24 +0,0 @@
worker_processes 1;
daemon off;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
multi_accept off;
}
http {
include /etc/nginx/mime.types;
index index.html;
server {
listen *:80;
location / {
root /var/www/hivemq-mqtt-web-client;
}
}
}
-26
View File
@@ -1,26 +0,0 @@
FROM nodered/node-red:2.2.0
USER root
RUN apk update && apk upgrade && \
apk --no-cache add perl libpcap libpcap-dev bluez tcpdump iputils wget sshpass sudo && \
apk --no-cache add -X http://dl-cdn.alpinelinux.org/alpine/edge/testing arp-scan && \
apk --no-cache add -X http://dl-cdn.alpinelinux.org/alpine/edge/community awake
RUN cd /tmp && \
wget http://www.mavetju.org/download/dhcpdump-1.8.tar.gz && \
tar -xzf ./dhcpdump-1.8.tar.gz && \
cd ./dhcpdump-1.8 && \
wget https://raw.githubusercontent.com/alexeicolin/dhcpdump-PKGBUILD/master/dhcpdump-1.8-includes.patch && \
patch -p1 < ./dhcpdump-1.8-includes.patch && \
ls && \
make && \
install -D dhcpdump /usr/bin/dhcpdump
RUN addgroup node-red dialout
RUN echo "node-red ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/node-red \
&& chmod 0440 /etc/sudoers.d/node-red
WORKDIR /usr/src/node-red
USER node-red
-35
View File
@@ -1,35 +0,0 @@
{
"name": "node-red-docker",
"version": "1.0.6",
"description": "Low-code programming for event-driven applications",
"homepage": "http://nodered.org",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/node-red/node-red-docker.git"
},
"main": "node_modules/node-red/red/red.js",
"scripts": {
"start": "node $NODE_OPTIONS node_modules/node-red/red.js $FLOWS"
},
"contributors": [
{
"name": "Dave Conway-Jones"
},
{
"name": "Nick O'Leary"
},
{
"name": "James Thomas"
},
{
"name": "Raymond Mouthaan"
}
],
"dependencies": {
"node-red": "^1.0.6"
},
"engines": {
"node": ">=10"
}
}
-10
View File
@@ -1,10 +0,0 @@
#!/bin/bash
set -ex
# Installing Devtools
if [[ ${TAG_SUFFIX} != "minimal" ]]; then
echo "Installing devtools"
apt-get install --yes build-essential linux-headers-$(uname -r) udev python python3
else
echo "Skip installing devtools"
fi
-10
View File
@@ -1,10 +0,0 @@
#!/bin/bash
set -ex
# Remove native GPIO node if exists
if [[ -d "/usr/src/node-red/node_modules/@node-red/nodes/core/hardware" ]]; then
echo "Removing native GPIO node"
rm -r /usr/src/node-red/node_modules/@node-red/nodes/core/hardware
else
echo "Skip removing native GPIO node"
fi
-3
View File
@@ -1,3 +0,0 @@
FROM telegraf:alpine
RUN apk update && apk upgrade && \
apk --no-cache add unbound