Skip to content

Commit

Permalink
Fix: docker image update mongodb version
Browse files Browse the repository at this point in the history
  • Loading branch information
rdig committed Oct 30, 2024
1 parent bb25194 commit 767b800
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ RUN apt-get install -y \
build-essential \
curl \
file \
zip \
multiarch-support
zip

# Reconfigure locales
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
Expand All @@ -21,14 +20,30 @@ RUN locale-gen
# Install new version of NPM
RUN npm i -g npm@8 --registry=https://registry.npmjs.org

# RUN wget http://security.debian.org/debian-security/pool/updates/main/g/glibc/multiarch-support_2.28-10+deb10u4_amd64.deb
# RUN dpkg -i multiarch-support_2.28-10+deb10u4_amd64.deb

# RUN wget http://ftp.ro.debian.org/debian/pool/main/c/curl/libcurl3-gnutls_7.74.0-1.3+deb11u13_amd64.deb
# RUN dpkg -i libcurl3-gnutls_7.74.0-1.3+deb11u13_amd64.deb

# Install version 1.0.0 of libssl
# Required by Mongo
RUN wget http://archive.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb
RUN dpkg -i libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb
# RUN wget http://archive.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb
# RUN dpkg -i libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb

# Install MongoDB
RUN wget https://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/4.2/multiverse/binary-amd64/mongodb-org-server_4.2.2_amd64.deb
RUN dpkg -i mongodb-org-server_4.2.2_amd64.deb
# RUN wget https://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/4.4/multiverse/binary-amd64/mongodb-org-server_4.4.29_amd64.deb
# RUN dpkg -i mongodb-org-server_4.4.29_amd64.deb

# RUN wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add - && \
# echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list && \

# Add MongoDB 4.4 repository and install
RUN wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add - && \
echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list && \
apt-get update && \
apt-get install -y mongodb-org && \
rm -rf /var/lib/apt/lists/*

# Copy colonyServer
COPY . ./colonyServer
Expand All @@ -42,7 +57,7 @@ RUN npm i --force
RUN npm run build

# Create mongo's data and logs folders
RUN mkdir mongo-data logs
RUN mkdir logs

# Expose the Apollo Server's port
EXPOSE 3000
Expand Down

0 comments on commit 767b800

Please sign in to comment.