add more images
This commit is contained in:
parent
3241a41ae6
commit
dbb5d933c5
180 changed files with 4993 additions and 999 deletions
26
bot/bastion/Dockerfile
Normal file
26
bot/bastion/Dockerfile
Normal file
|
@ -0,0 +1,26 @@
|
|||
FROM --platform=$TARGETOS/$TARGETARCH mongo:7-jammy
|
||||
|
||||
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
|
||||
|
||||
## install nodejs 20
|
||||
RUN apt update && apt install --no-install-recommends -y curl apt-transport-https ca-certificates gnupg \
|
||||
&& mkdir -p /usr/share/keyrings \
|
||||
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg \
|
||||
&& echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
|
||||
&& apt update && apt install -y nodejs \
|
||||
&& npm install -g npm@latest \
|
||||
## install bastion reqs
|
||||
&& apt install -y python3 build-essential git libtool netcat ffmpeg iproute2 tzdata tini \
|
||||
## add container user
|
||||
&& useradd -d /home/container -m container -s /bin/bash
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
STOPSIGNAL SIGINT
|
||||
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
42
bot/bastion/entrypoint.sh
Normal file
42
bot/bastion/entrypoint.sh
Normal file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/bash
|
||||
#Variables
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
BLUE='\033[0;34m'
|
||||
NC='\033[0m'
|
||||
|
||||
clear
|
||||
#show versions
|
||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
echo -e "${YELLOW}BastionBot Installation${NC}"
|
||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
echo -e "${YELLOW}MongoDB Version:${NC} " && mongod --version
|
||||
echo -e "${YELLOW}NodeJS Version:${NC} " && node -v
|
||||
echo -e "${YELLOW}Python Version:${NC} " && python3 --version
|
||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
|
||||
cd /home/container
|
||||
|
||||
# Set environment variable that holds the Internal Docker IP
|
||||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||
export INTERNAL_IP
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=$(echo -e $(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g'))
|
||||
echo -e "${YELLOW}:/home/container${NC} ${MODIFIED_STARTUP}"
|
||||
|
||||
# start mongo
|
||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
echo -e "${YELLOW}starting MongoDB...${NC}"
|
||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
mongod --fork --dbpath /home/container/mongodb/ --port 27017 --logpath /home/container/mongod.log --logRotate reopen --logappend && until nc -z -v -w5 127.0.0.1 27017; do echo 'Waiting for mongodb connection...'; sleep 5; done
|
||||
|
||||
# Run the Server
|
||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
echo -e "${YELLOW}BastionBot starting...${NC}"
|
||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
eval ${MODIFIED_STARTUP}
|
||||
|
||||
# stop mongo
|
||||
mongod --eval "db.adminCommand({ "shutdown" : 1 })"
|
20
bot/parkertron/Dockerfile
Normal file
20
bot/parkertron/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm
|
||||
|
||||
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt update -y \
|
||||
# general packages
|
||||
&& apt install -y iproute2 ca-certificates \
|
||||
# additional packages for tesseract and eng lang support
|
||||
libtesseract-dev tesseract-ocr-eng \
|
||||
# add container user to run application
|
||||
&& useradd -m -d /home/container container
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
13
bot/parkertron/entrypoint.sh
Normal file
13
bot/parkertron/entrypoint.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
cd /home/container
|
||||
|
||||
# Set environment variable that holds the Internal Docker IP
|
||||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||
export INTERNAL_IP
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
eval ${MODIFIED_STARTUP}
|
56
bot/red/Dockerfile
Normal file
56
bot/red/Dockerfile
Normal file
|
@ -0,0 +1,56 @@
|
|||
FROM --platform=$TARGETOS/$TARGETARCH python:3.11-slim-bookworm
|
||||
|
||||
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
|
||||
|
||||
|
||||
RUN mkdir -p /usr/share/man/man1
|
||||
RUN apt update \
|
||||
&& apt -y upgrade \
|
||||
&& apt -y install \
|
||||
git \
|
||||
ca-certificates \
|
||||
dnsutils \
|
||||
iproute2 \
|
||||
wget \
|
||||
curl \
|
||||
xz-utils \
|
||||
openjdk-17-jre-headless \
|
||||
zlib1g-dev \
|
||||
libffi-dev \
|
||||
libmagickwand-dev \
|
||||
unzip \
|
||||
libaa1-dev \
|
||||
build-essential \
|
||||
tk-dev \
|
||||
libncurses5-dev \
|
||||
libncursesw5-dev \
|
||||
libreadline6-dev \
|
||||
libdb5.3-dev \
|
||||
libgdbm-dev \
|
||||
libsqlite3-dev \
|
||||
libssl-dev \
|
||||
libbz2-dev \
|
||||
libexpat1-dev \
|
||||
liblzma-dev \
|
||||
ffmpeg \
|
||||
imagemagick \
|
||||
tini
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install python-forecastio tweepy unidecode mcstatus bs4 sqlalchemy geocoder valve python-valve py-cpuinfo psutil
|
||||
|
||||
RUN mkdir -p /home/container/.config/Red-DiscordBot/
|
||||
RUN ln -s /home/container/.config/Red-DiscordBot/ /usr/local/share/Red-DiscordBot
|
||||
|
||||
## Setup user and working directory
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
STOPSIGNAL SIGINT
|
||||
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
13
bot/red/entrypoint.sh
Normal file
13
bot/red/entrypoint.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
cd /home/container
|
||||
|
||||
# Set environment variable that holds the Internal Docker IP
|
||||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||
export INTERNAL_IP
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=$(echo -e $(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g'))
|
||||
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
eval ${MODIFIED_STARTUP}
|
29
bot/sinusbot/Dockerfile
Normal file
29
bot/sinusbot/Dockerfile
Normal file
|
@ -0,0 +1,29 @@
|
|||
FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim
|
||||
|
||||
LABEL org.opencontainers.image.authors="i2007@damw.eu"
|
||||
LABEL version="1.0"
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install Dependencies
|
||||
RUN apt update \
|
||||
&& apt upgrade -y \
|
||||
&& apt install -y ca-certificates less locales pulseaudio python3 python3-pip sudo x11vnc x11-xkb-utils xvfb iproute2 ffmpeg curl liblcms2-2 libatomic1 libxcb-xinerama0 \
|
||||
fontconfig libasound2 libegl1-mesa libglib2.0-0 libnss3 libpci3 libpulse0 libxcursor1 libxslt1.1 libx11-xcb1 libxkbcommon0 bzip2 libxss1 libxcomposite1 libevent-2.1-7 \
|
||||
libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0 tini \
|
||||
&& useradd -m -d /home/container container
|
||||
#RUN python3 -m pip install requests
|
||||
|
||||
ENV LANG=C.UTF-8
|
||||
ENV LC_ALL=C.UTF-8
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
STOPSIGNAL SIGINT
|
||||
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
14
bot/sinusbot/entrypoint.sh
Normal file
14
bot/sinusbot/entrypoint.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
cd /home/container
|
||||
|
||||
# Set environment variable that holds the Internal Docker IP
|
||||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||
export INTERNAL_IP
|
||||
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
eval ${MODIFIED_STARTUP}
|
Loading…
Add table
Add a link
Reference in a new issue