-
Notifications
You must be signed in to change notification settings - Fork 5
docker compose not working on Ubuntu 24.04.4 LTS #3
Copy link
Copy link
Open
Description
I am on the beta branch at commit 06eb6cec90a5199ac685eda55ae7ba2a5a84a4c6
I am using Rancher Desktop by SUSE Version 1.19.3
docker --version
# Docker version 28.1.1-rd, build 4d7f01eI get a warning when I run docker compose
WARN[0000] ... docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
After docker compose build and docker compose up I get:
web-1 | ModuleNotFoundError: No module named 'pkg_resources'
Based on a thread on the goolge group I updated the Dockerfile to install wheel and setuptools
diff --git a/Dockerfile b/Dockerfile
index d2e2aa0..689129d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y netcat-traditional && apt-get install -
# RUN apt-get update && apt-get install -y netcat && apt-get install -y vim
COPY gcd-django/requirements.txt .
RUN pip install -r requirements.txt
+RUN pip install wheel==0.45.0 setuptools==75.5.0
COPY gcd-django gcd-django
COPY wait.sh .
COPY setup_initial_changesets.py .After docker compose build and up, it is working. You might be able to recreate this with
docker compose pull --policy always
docker compose build --no-cacheI also tweaked apps/gcd/views/search_haystack.py to use raw strings to silence a waning there. I'm not sure tht is the right fix there though.
diff --git a/apps/gcd/views/search_haystack.py b/apps/gcd/views/search_haystack.py
index fc7274ae..7a14333c 100644
--- a/apps/gcd/views/search_haystack.py
+++ b/apps/gcd/views/search_haystack.py
@@ -39,13 +39,13 @@ class GcdNameQuery(AutoQuery):
def prepare(self, query_obj):
query_string = super(GcdNameQuery, self).prepare(query_obj)
query_return = ''
- query_string = query_string.replace('[', '\[')\
- .replace(']', '\]')\
- .replace('{', '\{')\
- .replace('}', '\}')\
- .replace(':', '\:')\
- .replace('!', '\!')\
- .replace('/', ' ')
+ query_string = query_string.replace(r'[', r'\[')\
+ .replace(r']', r'\]')\
+ .replace(r'{', r'\{')\
+ .replace(r'}', r'\}')\
+ .replace(r':', r'\:')\
+ .replace(r'!', r'\!')\
+ .replace(r'/', ' ')
if ((query_string[0] == '"' and query_string[-1] == '"') or
(query_string[0] == "'" and query_string[-1] == "'")):
query_return = query_string
@@ -60,8 +60,8 @@ class GcdNameQuery(AutoQuery):
class GcdAutoQuery(AutoQuery):
def prepare(self, query_obj):
query_string = super(GcdAutoQuery, self).prepare(query_obj)
- if '\*' in query_string and len(query_string) > 2:
- query_string = query_string.replace('\*', '*')
+ if r'\*' in query_string and len(query_string) > 2:
+ query_string = query_string.replace(r'\*', r'*')
if ' ' in query_string:
query_string = '"' + query_string + '"'
return query_stringAll is working now but not sure if I should open a PR or should I post in the mailing list first?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels