Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 8e3ad7a

Browse files
committed
xlarge dockerfile
1 parent ce01381 commit 8e3ad7a

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ WORKDIR /home/docsworker
3333
# install snooty parser
3434
RUN python3 -m pip uninstall -y snooty
3535
RUN python3 -m pip install --upgrade pip flit
36-
RUN git clone https://github.com/mongodb/snooty-parser.git snooty-parser && \
36+
RUN git clone https://github.com/mongodb/snooty-parser.git && \
3737
cd snooty-parser && \
38-
git fetch --all && \
39-
git reset --hard origin/master && \
38+
git fetch --tags && \
39+
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) && \
40+
git checkout "$latestTag" && \
4041
FLIT_ROOT_INSTALL=1 python3 -m flit install
4142
ENV PATH="${PATH}:/home/docsworker/.local/bin"
4243

@@ -56,8 +57,8 @@ COPY worker/ .
5657
RUN npm install
5758

5859
# where repo work will happen
59-
RUN mkdir repos && chmod 777 repos
60+
RUN mkdir repos && chmod 755 repos
6061

6162
# entry to kick-off the worker
6263
EXPOSE 3000
63-
CMD ["npm", "start"]
64+
CMD ["npm", "start"]

Dockerfile.xlarge

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ WORKDIR /home/docsworker-xlarge
3333
# install snooty parser
3434
RUN python3 -m pip uninstall -y snooty
3535
RUN python3 -m pip install --upgrade pip flit
36-
RUN git clone https://github.com/mongodb/snooty-parser.git snooty-parser && \
36+
RUN git clone https://github.com/mongodb/snooty-parser.git && \
3737
cd snooty-parser && \
38-
git fetch --all && \
39-
git reset --hard origin/master && \
38+
git fetch --tags && \
39+
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) && \
40+
git checkout "$latestTag" && \
4041
FLIT_ROOT_INSTALL=1 python3 -m flit install
4142
ENV PATH="${PATH}:/home/docsworker-xlarge/.local/bin"
4243

@@ -60,4 +61,4 @@ RUN mkdir repos && chmod 755 repos
6061

6162
# entry to kick-off the worker
6263
EXPOSE 3000
63-
CMD ["npm", "start"]
64+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)