This repository was archived by the owner on Aug 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,11 @@ WORKDIR /home/docsworker
3333# install snooty parser
3434RUN python3 -m pip uninstall -y snooty
3535RUN 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
4142ENV PATH="${PATH}:/home/docsworker/.local/bin"
4243
@@ -56,8 +57,8 @@ COPY worker/ .
5657RUN 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
6263EXPOSE 3000
63- CMD ["npm" , "start" ]
64+ CMD ["npm" , "start" ]
Original file line number Diff line number Diff line change @@ -33,10 +33,11 @@ WORKDIR /home/docsworker-xlarge
3333# install snooty parser
3434RUN python3 -m pip uninstall -y snooty
3535RUN 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
4142ENV 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
6263EXPOSE 3000
63- CMD ["npm", "start"]
64+ CMD ["npm", "start"]
You can’t perform that action at this time.
0 commit comments