-
Notifications
You must be signed in to change notification settings - Fork 2
python upgrade #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
python upgrade #82
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,10 +8,11 @@ echo "CREATE DATABASE IF NOT EXISTS marketingsite;" | docker exec -i edx.devstac | |
|
|
||
| echo "** Marketing: Copy cacheed files to code dir **" | ||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'cp -Rn /cache/* /app/.' | ||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'pip3 install -r requirements.txt' | ||
| echo "** Marketing: Install requirements **" | ||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'pip install -r requirements.txt' | ||
|
|
||
| echo "** Marketing: Migrating databases **" | ||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'python3.8 manage.py migrate --settings=marketingsite.envs.dev' | ||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'python manage.py migrate --settings=marketingsite.envs.dev' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix unquoted backticks to prevent word splitting. The Shellcheck warning SC2046 indicates that backticks should be quoted to prevent word splitting if Apply this diff: -docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'python manage.py migrate --settings=marketingsite.envs.dev'
+docker compose $(echo ${DOCKER_COMPOSE_FILES}) exec mktg bash -c 'python manage.py migrate --settings=marketingsite.envs.dev'
🧰 Tools🪛 Shellcheck (0.11.0)[warning] 15-15: Quote this to prevent word splitting. (SC2046) 🤖 Prompt for AI Agents |
||
|
|
||
| echo "** Marketing: Compiling assets **" | ||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'rm -rf node_modules/' | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,14 +8,14 @@ echo "CREATE DATABASE IF NOT EXISTS edraakprograms;" | docker exec -i edx.devsta | |||||||||
|
|
||||||||||
|
|
||||||||||
| echo "** Progs: Setting correct python version **" | ||||||||||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec progs bash -c 'update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1' | ||||||||||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec progs bash -c 'update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1' | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix unquoted backticks to prevent word splitting. The Shellcheck warning SC2046 indicates that backticks should be quoted. Additionally, verify that the Apply this diff: -docker compose `echo ${DOCKER_COMPOSE_FILES}` exec progs bash -c 'update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1'
+docker compose $(echo ${DOCKER_COMPOSE_FILES}) exec progs bash -c 'update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1'📝 Committable suggestion
Suggested change
🧰 Tools🪛 Shellcheck (0.11.0)[warning] 11-11: Quote this to prevent word splitting. (SC2046) 🤖 Prompt for AI Agents |
||||||||||
|
|
||||||||||
| echo "** Progs: Copy cacheed files to code dir **" | ||||||||||
| #docker compose `echo ${DOCKER_COMPOSE_FILES}` exec progs bash -c 'cp -Rn /cache/* /app/.' | ||||||||||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec progs bash -c 'pip3 install -r requirements.txt' | ||||||||||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec progs bash -c 'pip install -r requirements.txt' | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix unquoted backticks to prevent word splitting. The Shellcheck warning SC2046 indicates that backticks should be quoted to prevent word splitting if Apply this diff: -docker compose `echo ${DOCKER_COMPOSE_FILES}` exec progs bash -c 'pip install -r requirements.txt'
+docker compose $(echo ${DOCKER_COMPOSE_FILES}) exec progs bash -c 'pip install -r requirements.txt'📝 Committable suggestion
Suggested change
🧰 Tools🪛 Shellcheck (0.11.0)[warning] 15-15: Quote this to prevent word splitting. (SC2046) 🤖 Prompt for AI Agents |
||||||||||
|
|
||||||||||
| echo "** Progs: Migrating databases **" | ||||||||||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec progs bash -c 'python3.8 manage.py migrate --settings=edraakprograms.dev' | ||||||||||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec progs bash -c 'python manage.py migrate --settings=edraakprograms.dev' | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix unquoted backticks to prevent word splitting. The Shellcheck warning SC2046 indicates that backticks should be quoted to prevent word splitting if Apply this diff: -docker compose `echo ${DOCKER_COMPOSE_FILES}` exec progs bash -c 'python manage.py migrate --settings=edraakprograms.dev'
+docker compose $(echo ${DOCKER_COMPOSE_FILES}) exec progs bash -c 'python manage.py migrate --settings=edraakprograms.dev'📝 Committable suggestion
Suggested change
Suggested change
🧰 Tools🪛 Shellcheck (0.11.0)[warning] 18-18: Quote this to prevent word splitting. (SC2046) 🤖 Prompt for AI Agents |
||||||||||
|
|
||||||||||
| echo "** Progs: Compiling assets **" | ||||||||||
| docker compose `echo ${DOCKER_COMPOSE_FILES}` exec progs bash -c 'npm rebuild node-sass' | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix unquoted backticks to prevent word splitting.
The Shellcheck warning SC2046 indicates that backticks should be quoted to prevent word splitting if
DOCKER_COMPOSE_FILEScontains spaces or special characters.Apply this diff:
Alternatively, if
DOCKER_COMPOSE_FILESis a single value or already properly quoted, consider using it directly:+docker compose ${DOCKER_COMPOSE_FILES} exec mktg bash -c 'pip install -r requirements.txt'📝 Committable suggestion
🧰 Tools
🪛 Shellcheck (0.11.0)
[warning] 12-12: Quote this to prevent word splitting.
(SC2046)
🤖 Prompt for AI Agents