Use nodejs 18 and mongo 6.0 for open5gs v2.5.6
This commit is contained in:
@@ -60,7 +60,7 @@ RUN apt-get update && \
|
||||
libidn11-dev \
|
||||
libtalloc-dev
|
||||
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs
|
||||
|
||||
# Get open5gs code and install
|
||||
RUN git clone --recursive https://github.com/open5gs/open5gs && cd open5gs && \
|
||||
@@ -69,7 +69,7 @@ RUN git clone --recursive https://github.com/open5gs/open5gs && cd open5gs && \
|
||||
mkdir -p /open5gs/install/include
|
||||
|
||||
# Building WebUI of open5gs
|
||||
RUN cd open5gs/webui && npm ci --no-optional
|
||||
RUN cd open5gs/webui && npm clean-install && npm run build
|
||||
|
||||
# Build final image
|
||||
FROM ubuntu:focal
|
||||
@@ -102,7 +102,7 @@ RUN apt-get update && \
|
||||
|
||||
RUN pip3 install click
|
||||
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs && \
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs && \
|
||||
apt-get remove -y curl && apt-get autoremove -y && apt-get autoclean
|
||||
|
||||
RUN update-ca-certificates
|
||||
|
@@ -29,7 +29,11 @@ FROM ubuntu:focal
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends mongodb && \
|
||||
apt-get install -y wget gnupg && \
|
||||
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | apt-key add - && \
|
||||
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-6.0.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --no-install-recommends mongodb-org && \
|
||||
apt-get autoremove -y && apt-get autoclean
|
||||
|
||||
CMD /mnt/mongo/mongo_init.sh
|
||||
|
@@ -29,4 +29,4 @@
|
||||
# Sync docker time
|
||||
#ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
mongod --smallfiles --dbpath /var/lib/mongodb --logpath /var/log/mongodb/mongodb.log --bind_ip 0.0.0.0
|
||||
mongod --dbpath /var/lib/mongodb --logpath /var/log/mongodb/mongodb.log --bind_ip 0.0.0.0
|
||||
|
Reference in New Issue
Block a user