@@ -12,20 +12,18 @@ RUN npm run build
12
12
FROM ubuntu:20.04
13
13
ARG SNOOTY_PARSER_VERSION=0.13.13
14
14
ARG SNOOTY_FRONTEND_VERSION=0.13.32
15
- ARG FLIT_VERSION=3.0.0
16
15
ARG NPM_BASE_64_AUTH
17
16
ARG NPM_EMAIL
18
17
ENV DEBIAN_FRONTEND=noninteractive
19
- ENV FLIT_ROOT_INSTALL=1
20
18
21
19
# install legacy build environment for docs
22
20
RUN apt-get -o Acquire::Check-Valid-Until=false update
23
21
RUN apt-get -y install libpython2.7-dev python2.7 git rsync
24
- RUN apt-get -y install curl
22
+ RUN apt-get -y install curl unzip
25
23
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
26
24
RUN python2.7 get-pip.py
27
25
RUN pip install requests virtualenv virtualenvwrapper py-dateutil
28
- RUN python2.7 -m pip install python-dateutil
26
+ RUN python2.7 -m pip install python-dateutil
29
27
RUN virtualenv /venv
30
28
RUN /venv/bin/pip install --upgrade --force setuptools
31
29
RUN /venv/bin/pip install -r https://raw.githubusercontent.com/mongodb/docs-tools/master/giza/requirements.txt
@@ -37,7 +35,7 @@ RUN apt-get -y install git pkg-config libxml2-dev
37
35
RUN python3 -m pip install https://github.com/mongodb/mut/releases/download/v0.10.2/mut-0.10.2-py3-none-any.whl
38
36
39
37
40
- ENV PATH="${PATH}:/home/docsworker-xlarge/.local/bin:/usr/local/lib/python2.7/dist-packages/virtualenv/bin"
38
+ ENV PATH="${PATH}:/home/docsworker-xlarge/.local/bin:/home/docsworker-xlarge/.local/snooty/:/ usr/local/lib/python2.7/dist-packages/virtualenv/bin"
41
39
42
40
# get node 14
43
41
# https://gist.github.com/RinatMullayanov/89687a102e696b1d4cab
@@ -60,10 +58,9 @@ WORKDIR /home/docsworker-xlarge
60
58
RUN curl https://raw.githubusercontent.com/mongodb/docs-worker-pool/meta/makefiles/shared.mk -o shared.mk
61
59
62
60
# install snooty parser
63
- RUN git clone -b v${SNOOTY_PARSER_VERSION} --depth 1 https://github.com/mongodb/snooty-parser.git \
64
- && python3 -m pip install pip==20.2 flit==${FLIT_VERSION} \
65
- && cd snooty-parser \
66
- && python3 -m flit install
61
+ RUN curl -OL "https://github.com/mongodb/snooty-parser/releases/download/v${SNOOTY_PARSER_VERSION}/snooty-v${SNOOTY_PARSER_VERSION}-linux_x86_64.zip" \
62
+ && mkdir -p ~/.local/snooty \
63
+ && unzip "snooty-v${SNOOTY_PARSER_VERSION}-linux_x86_64.zip" -d ~/.local/snooty
67
64
68
65
# install snooty frontend and docs-tools
69
66
RUN git clone -b v${SNOOTY_FRONTEND_VERSION} --depth 1 https://github.com/mongodb/snooty.git \
0 commit comments