Closed senhao-xu closed 1 year ago
I modified the settings. py
file with reference to 623, but there was an error
127 STATIC_URL = "/static/"
128
129 STATIC_ROOT = "static"
130
131 STATICFILES_DIRS = [
132 Path.joinpath(BASE_DIR, "webvirtcloud/static"),
133 ]
134
135
136 BS_ICONS_CACHE = Path.joinpath(BASE_DIR, 'static/icon_cache')
[root@localhost webvirtcloud]# docker build -t retspen/webvirtcloud:1 .
[+] Building 271.5s (11/20) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.88kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 425B 0.0s
=> [internal] load metadata for docker.io/phusion/baseimage:jammy-1.0.1 3.6s
=> [ 1/16] FROM docker.io/phusion/baseimage:jammy-1.0.1@sha256:7faf4efcd96870fe090d969703ef8e727cc9de4f465c8442047ffd26f8094e6b 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 128.23kB 0.1s
=> CACHED [ 2/16] RUN echo 'APT::Get::Clean=always;' >> /etc/apt/apt.conf.d/99AutomaticClean 0.0s
=> CACHED [ 3/16] RUN apt-get update -qqy && DEBIAN_FRONTEND=noninteractive apt-get -qyy install --no-install-recommends git python3-venv python3-dev python3-lxml lib 0.0s
=> [ 4/16] COPY . /srv/webvirtcloud 1.0s
=> [ 5/16] RUN chown -R www-data:www-data /srv/webvirtcloud 1.6s
=> [ 6/16] WORKDIR /srv/webvirtcloud 0.1s
=> ERROR [ 7/16] RUN python3 -m venv venv && . venv/bin/activate && pip3 install -U pip && pip3 install wheel && pip3 install -r conf/requirements.txt && pip3 cache purg 264.9s
------
> [ 7/16] RUN python3 -m venv venv && . venv/bin/activate && pip3 install -U pip && pip3 install wheel && pip3 install -r conf/requirements.txt && pip3 cache purge && chown -R www-data:www-data /srv/webvirtcloud:
8.239 Requirement already satisfied: pip in ./venv/lib/python3.10/site-packages (22.0.2)
28.27 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f601ce23280>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
48.79 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f601ce235b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
69.81 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f601ce23760>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
91.84 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f601ce23910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
115.9 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f601ce23ac0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
157.0 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f012a4cf3a0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/wheel/
177.6 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f012a4cf5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/wheel/
198.6 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f012a4cf7c0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/wheel/
220.7 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f012a4cfa60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/wheel/
244.7 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f012a4cfc10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/wheel/
264.7 ERROR: Could not find a version that satisfies the requirement wheel (from versions: none)
264.7 ERROR: No matching distribution found for wheel
------
Dockerfile:35
--------------------
34 | WORKDIR /srv/webvirtcloud
35 | >>> RUN python3 -m venv venv && \
36 | >>> . venv/bin/activate && \
37 | >>> pip3 install -U pip && \
38 | >>> pip3 install wheel && \
39 | >>> pip3 install -r conf/requirements.txt && \
40 | >>> pip3 cache purge && \
41 | >>> chown -R www-data:www-data /srv/webvirtcloud
42 |
--------------------
ERROR: failed to solve: process "/bin/sh -c python3 -m venv venv && \t. venv/bin/activate && \tpip3 install -U pip && \tpip3 install wheel && \tpip3 install -r conf/requirements.txt && \tpip3 cache purge && \tchown -R www-data:www-data /srv/webvirtcloud" did not complete successfully: exit code: 1
[root@localhost webvirtcloud]#
I referenced this Wiki for image construction, but the following error occurred