Skip to content

Commit cff719a

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 cff719a

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

Dockerfile

+14-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,20 @@ 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+
RUN apt-get -y install \
254+
nodejs \
255+
npm \
256+
&& npm install --global \
257+
258+
259+
254260
WORKDIR /
255261

256262
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)