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

Commit 5ac8d6e

Browse files
authored
Use mut binary build 0.10.3 (#781)
1 parent 0471a6f commit 5ac8d6e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RUN cd ./modules/oas-page-builder \
2323
FROM ubuntu:20.04
2424
ARG SNOOTY_PARSER_VERSION=0.13.18
2525
ARG SNOOTY_FRONTEND_VERSION=0.13.43
26+
ARG MUT_VERSION=0.10.3
2627
ARG REDOC_CLI_VERSION=1.0.0
2728
ARG NPM_BASE_64_AUTH
2829
ARG NPM_EMAIL
@@ -40,13 +41,10 @@ RUN /venv/bin/pip install --upgrade --force setuptools
4041
RUN /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
6260
RUN 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
6668
RUN useradd -ms /bin/bash docsworker-xlarge
6769
USER docsworker-xlarge

0 commit comments

Comments
 (0)