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

Commit b66b192

Browse files
committed
Dockerfile: need python-wheel for bdist_wheel
This commit fixes errors related to bdist_wheel, similar to the fragment below running ./dev-start.sh on a fresh install of the kernelci-docker: ---------------------------------------- Failed building wheel for scandir Running setup.py clean for scandir Running setup.py bdist_wheel for sphinx-bootstrap-theme: started Running setup.py bdist_wheel for sphinx-bootstrap-theme: finished with status 'error' Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-f7uhVd/sphinx-bootstrap-theme/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-k9kl2O --python-tag cp27: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- This was reproduced in: ArchLinux Docker version 20.10.3, build 48d30b5b32 docker-compose version 1.28.2, build unknow Ubuntu 20.04 (Virtual Machine) Docker version 19.03.8, build afacb8b7f0 docker-compose version 1.25.0, build unknown
1 parent 73e4566 commit b66b192

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM bitnami/minideb:buster
22

33
# Install dependencies
4-
RUN install_packages git python python-pip python-setuptools python-dev build-essential wget gnupg2
4+
RUN install_packages git python python-pip python-setuptools python-dev build-essential wget gnupg2 python-wheel
55
RUN pip install python-dateutil
66

77
# Install Node.js / nodemon

backend/Dockerfile-celery

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM bitnami/minideb:buster
22

33
# Install dependencies
4-
RUN install_packages git python python-pip python-setuptools python-dev build-essential wget gnupg2
4+
RUN install_packages git python python-pip python-setuptools python-dev build-essential wget gnupg2 python-wheel
55

66
# Configuration
77
COPY celery/celery-config.cfg /etc/kernelci/kernelci-celery.cfg
@@ -21,7 +21,7 @@ RUN pip install -r /srv/kernelci-backend/requirements.txt
2121
COPY celery/entrypoint.sh /srv/entrypoint.sh
2222

2323
# kcidb (NOTE: requires python3)
24-
RUN install_packages python3 python3-pip python3-setuptools python3-dev
24+
RUN install_packages python3 python3-pip python3-setuptools python3-dev python3-wheel
2525
RUN git clone -b v5 https://github.com/kernelci/kcidb.git /etc/kernelci/kcidb; \
2626
cd /etc/kernelci/kcidb; python3 -m pip install -r requirements.txt; \
2727
python3 -m pip install --upgrade google-cloud-pubsub; \

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM bitnami/minideb:buster
22

33
# Install dependencies
44

5-
RUN install_packages build-essential git python python-pip python-setuptools python-dev uwsgi-plugin-python curl redis-tools wget
5+
RUN install_packages build-essential git python python-pip python-setuptools python-dev uwsgi-plugin-python curl redis-tools wget python-wheel
66

77
# Install Node.js / nodemon
88
RUN wget --no-check-certificate -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/node-8.9.3-0-linux-x64-debian-8.tar.gz && \

proxy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN node /front/app/dashboard/static/js/lib/r.js -o /front/app/dashboard/static/
1010

1111
FROM bitnami/minideb:buster as backend
1212

13-
RUN install_packages git python python-pip python-setuptools python-dev build-essential
13+
RUN install_packages git python python-pip python-setuptools python-dev build-essential python-wheel
1414
RUN git clone https://github.com/kernelci/kernelci-backend.git /tmp/kernelci-backend
1515
RUN pip install -r /tmp/kernelci-backend/requirements.txt
1616
RUN cd /tmp/kernelci-backend/doc && make html

0 commit comments

Comments
 (0)