@@ -23,6 +23,7 @@ RUN cd ./modules/oas-page-builder \
2323FROM ubuntu:20.04
2424ARG SNOOTY_PARSER_VERSION=0.13.18
2525ARG SNOOTY_FRONTEND_VERSION=0.13.43
26+ ARG MUT_VERSION=0.10.3
2627ARG REDOC_CLI_VERSION=1.0.0
2728ARG NPM_BASE_64_AUTH
2829ARG NPM_EMAIL
@@ -40,13 +41,10 @@ RUN /venv/bin/pip install --upgrade --force setuptools
4041RUN /venv/bin/pip install -r https://raw.githubusercontent.com/mongodb/docs-tools/master/giza/requirements.txt
4142
4243# helper libraries for docs builds
43- RUN apt-get update && apt-get install -y python3 python3-dev python3-pip
44- RUN apt-get -y install vim
45- RUN apt-get -y install git pkg-config libxml2-dev
46- RUN python3 -m pip install https://github.com/mongodb/mut/releases/download/v0.10.2/mut-0.10.2-py3-none-any.whl
44+ RUN apt-get update && apt-get install -y vim git
4745
4846
49- ENV PATH="${PATH}:/opt/snooty:/home/docsworker-xlarge/.local/bin:/usr/local/lib/python2.7/dist-packages/virtualenv/bin"
47+ ENV PATH="${PATH}:/opt/snooty:/opt/mut:/ home/docsworker-xlarge/.local/bin:/usr/local/lib/python2.7/dist-packages/virtualenv/bin"
5048
5149# get node 14
5250# https://gist.github.com/RinatMullayanov/89687a102e696b1d4cab
@@ -62,6 +60,10 @@ RUN npm install npm@7
6260RUN curl -L -o snooty-parser.zip https://github.com/mongodb/snooty-parser/releases/download/v${SNOOTY_PARSER_VERSION}/snooty-v${SNOOTY_PARSER_VERSION}-linux_x86_64.zip \
6361 && unzip -d /opt/ snooty-parser.zip
6462
63+ # install mut
64+ RUN curl -L -o mut.zip https://github.com/mongodb/mut/releases/download/v${MUT_VERSION}/mut-v${MUT_VERSION}-linux_x86_64.zip \
65+ && unzip -d /opt/ mut.zip
66+
6567# setup user and root directory
6668RUN useradd -ms /bin/bash docsworker-xlarge
6769USER docsworker-xlarge
0 commit comments