Skip to content

Commit

Permalink
Added MongoDB and PostgreSQL and MySQL sources for Ubuntu Jammy
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasua committed Apr 24, 2024
1 parent 7d8b4b2 commit 35e7c63
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
FROM ubuntu:18.04
FROM ubuntu:jammy

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y apt-transport-https wget lsb-release gnupg && \
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list && \
wget --quiet -O - https://www.mongodb.org/static/pgp/server-4.2.asc | apt-key add - && \
echo "deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main" >> /etc/apt/sources.list.d/postgresql.list && \
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list && \
wget --quiet -O - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add - && \
echo "deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main" >> /etc/apt/sources.list.d/postgresql.list && \
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
echo "deb http://repo.mysql.com/apt/ubuntu bionic mysql-5.7" >> /etc/apt/sources.list.d/mysql.list \
apt-key adv --keyserver pgp.mit.edu --recv-keys 3A79BD29 \
apt-get update && \
apt-get install -y \
mongodb-org-tools \
mongodb-database-tools \
postgresql-client-13 \
mysql-client \
mysql-client=5.7* \
nmap \
unzip && \
rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit 35e7c63

Please sign in to comment.