bastion: move to mongodb6 + python2 -> 3 + set mongodb to use always the same log file

This commit is contained in:
Quinten
2022-12-18 10:57:10 +01:00
committed by GitHub
parent a7c48061ba
commit 7d739dac17
2 changed files with 5 additions and 5 deletions

View File

@@ -3,12 +3,12 @@ FROM --platform=$TARGETOS/$TARGETARCH node:18-bullseye
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
## install mongo
RUN wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | apt-key add - \
&& echo "deb http://repo.mongodb.org/apt/debian bullseye/mongodb-org/5.0 main" | tee /etc/apt/sources.list.d/mongodb-org-5.0.list \
RUN wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | apt-key add - \
&& echo "deb http://repo.mongodb.org/apt/debian bullseye/mongodb-org/6.0 main" | tee /etc/apt/sources.list.d/mongodb-org-6.0.list \
&& apt update \
&& apt install -y mongodb-org mongodb-org-server mongodb-org-shell mongodb-org-mongos mongodb-org-tools \
## install bastion reqs
&& apt install -y python build-essential git libtool netcat ffmpeg iproute2 curl tzdata \
&& apt install -y python3 build-essential git libtool netcat ffmpeg iproute2 curl tzdata \
## add container user
&& useradd -d /home/container -m container -s /bin/bash