-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#45: updated docker compose image of elasticsearch and mongodb; still…
… need to work around the main Dockerfile
- Loading branch information
Showing
3 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:8-jessie | ||
FROM node:18-bullseye | ||
LABEL maintainer="Emerson Rocha <[email protected]>" | ||
|
||
# see https://github.com/nodejs/docker-node#how-to-use-this-image | ||
|
@@ -11,16 +11,29 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \ | |
libpng-dev \ | ||
poppler-utils | ||
|
||
RUN curl -fsSL https://pgp.mongodb.com/server-4.2.asc | \ | ||
gpg -o /usr/share/keyrings/mongodb-server-4.2.gpg \ | ||
--dearmor | ||
|
||
RUN echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-4.2.gpg ] http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.2 main" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list | ||
RUN apt-get update | ||
RUN apt-get install -y mongodb-org-shell mongodb-org-tools | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
# Install mongo & mongorestore (this is used only for database initialization, not on runtime) | ||
# So much space need, see 'After this operation, 184 MB of additional disk space will be used.' | ||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 \ | ||
&& echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | tee /etc/apt/sources.list.d/mongodb-org-3.6.list \ | ||
&& apt-get update \ | ||
&& apt-get install -y mongodb-org-shell mongodb-org-tools \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
# RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 20691EEC35216C63CAF66CE1656408E390CFB1F5 \ | ||
# && echo "deb http://repo.mongodb.org/apt/debian bullseye/mongodb-org/4.2 main" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list \ | ||
# RUN echo "deb http://repo.mongodb.org/apt/debian bullseye/mongodb-org/4.2 main" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list \ | ||
# && apt-get update \ | ||
# && apt-get install -y mongodb-org-shell mongodb-org-tools \ | ||
# && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# ## Download Uwazi v1.4 | ||
# RUN git clone -b v1.4 --single-branch --depth=1 https://github.com/huridocs/uwazi.git /home/node/uwazi/ \ | ||
## Download Uwazi v1.4 | ||
RUN git clone -b v1.4 --single-branch --depth=1 https://github.com/huridocs/uwazi.git /home/node/uwazi/ \ | ||
RUN git clone -b production --single-branch --depth=1 https://github.com/huridocs/uwazi.git /home/node/uwazi/ \ | ||
&& chown node:node -R /home/node/uwazi/ \ | ||
&& cd /home/node/uwazi/ \ | ||
&& yarn install \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters