Skip to content

Commit 435a176

Browse files
committed
Workaround to OpenSSL incompatibility package versions
`nodejs` and `npm` are not compatible with `libssl-dev` and `libxmlsec1-dev` which are required to build Python versions with pyenv. We first build the Python versions and then install the incompatible packages.
1 parent a827da7 commit 435a176

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

Dockerfile

+16-8
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,6 @@ RUN apt-get -y install \
146146
auxlib \
147147
virtualenv==$RTD_VIRTUALENV_VERSION
148148

149-
# sphinx-js dependencies: jsdoc and typedoc (TypeScript support)
150-
RUN apt-get -y install \
151-
nodejs \
152-
npm \
153-
&& npm install --global \
154-
155-
156-
157149
# UID and GID from readthedocs/user
158150
RUN groupadd --gid 205 docs
159151
RUN useradd -m --uid 1005 --gid 205 docs
@@ -251,6 +243,22 @@ RUN pyenv local $PYPY_VERSION_35 && \
251243
pyenv exec pip install --no-cache-dir -U setuptools==$RTD_SETUPTOOLS_VERSION && \
252244
pyenv exec pip install --no-cache-dir virtualenv==$RTD_VIRTUALENV_VERSION
253245

246+
# NOTE: this is moved to the bottom because apt-get finds some incompatibilities
247+
# between packages and uninstall them:
248+
# The following packages will be REMOVED:
249+
# libmysqlclient-dev libssl-dev libxmlsec1-dev
250+
# As libssl-dev and libxmlsec1-dev are required to build Python with pyenv,
251+
# we first build Python versions and then install these packages
252+
# sphinx-js dependencies: jsdoc and typedoc (TypeScript support)
253+
USER root
254+
RUN apt-get -y install \
255+
nodejs \
256+
npm \
257+
&& npm install --global \
258+
259+
260+
261+
USER docs
254262
WORKDIR /
255263

256264
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)