Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MongoDB Signature Key Issue and Resolution #62

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions docker/pymongo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
# This provides the base support for Python 3.8 and MongoDB 4.4

FROM mongo:4.4
FROM ubuntu:focal
# VOLUME /data
MAINTAINER Ray Plante <[email protected]>
COPY mongod.conf /etc/mongod.conf
COPY mongod_ctl.sh /usr/local/bin

# Set the timezone to stop tcaza package from hanging
ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get update && apt-get install -y gnupg curl

# Add the MongoDB GPG key
RUN curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -

# Add MongoDB repository
RUN echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list

RUN apt-get update && apt-get install -y ca-certificates locales python3.8 python3-pip python3.8-dev

RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1; \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1; \
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
Expand All @@ -20,4 +33,3 @@ ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN python -m pip install pymongo

Loading