Skip to content

Commit 5cb6d43

Browse files
authored
Solve a problem building the containers
websockify have a dependency of numpy and show this error: ``` vsoch#5 191.8 Complete! vsoch#5 192.1 Collecting websockify vsoch#5 193.7 Downloading https://files.pythonhosted.org/packages/1e/2c/ac19ddaeb9aa76b6ce6678f073008a4123050001a812a5d173189fc4440a/websockify-0.10.0.tar.gz (40kB) vsoch#5 194.1 Collecting numpy (from websockify) vsoch#5 195.7 Downloading https://files.pythonhosted.org/packages/64/4a/b008d1f8a7b9f5206ecf70a53f84e654707e7616a771d84c05151a4713e9/numpy-1.22.3.zip (11.5MB) vsoch#5 203.1 Complete output from command python setup.py egg_info: vsoch#5 203.1 Traceback (most recent call last): vsoch#5 203.1 File "<string>", line 1, in <module> vsoch#5 203.1 File "/tmp/pip-build-Y1mFtC/numpy/setup.py", line 59 vsoch#5 203.1 raise RuntimeError(f'Cannot parse version {FULLVERSION}') vsoch#5 203.1 ``` If I add a version of numpy with pip, i.e. 1.12 before websockify dependency issue is not appearing and build is complete without errors.
1 parent 44d689b commit 5cb6d43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile.node

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ FROM vanessa/slurm:18.08.6
22

33
# This container will be built on docker-compose up -d
44

5+
RUN pip install numpy==1.12 && pip install websockify
6+
57
RUN yum install -y nc && \
68
wget https://turbovnc.org/pmwiki/uploads/Downloads/TurboVNC.repo && \
79
mv TurboVNC.repo /etc/yum.repos.d/ && \
8-
yum install -y turbovnc && \
9-
pip install websockify
10+
yum install -y turbovnc
1011

1112

1213
# Install for Rstudio App

0 commit comments

Comments
 (0)