Skip to content

Commit

Permalink
Upgrade to MySQL 8 and upgrade all python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jbernal0019 committed Jun 30, 2021
1 parent 2bc3cd8 commit c45e69d
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 22 deletions.
4 changes: 2 additions & 2 deletions docker-compose_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ services:
role: "Development server"

chris_store_dev_db:
image: mysql:5
command: --character-set-server=utf8 --collation-server=utf8_bin
image: mysql:8
command: --collation-server=utf8mb4_0900_as_cs
volumes:
- chris_store_dev_db_data:/var/lib/mysql:z
environment:
Expand Down
4 changes: 2 additions & 2 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ if [[ "$1" == 'up' ]]; then

title -d 1 "Pulling core containers where needed..."
printf "${LightCyan}%40s${Green}%-40s${Yellow}\n" \
"docker pull" " mysql:5" | ./boxes.sh
docker pull mysql:5 | ./boxes.sh
"docker pull" " mysql:8" | ./boxes.sh
docker pull mysql:8 | ./boxes.sh
echo "" | ./boxes.sh
printf "${LightCyan}%40s${Green}%-40s${Yellow}\n" \
"docker pull " "fnndsc/docker-swift-onlyone" | ./boxes.sh
Expand Down
15 changes: 8 additions & 7 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Django==2.2.12
django-filter==2.2
djangorestframework==3.11.0
Django==2.2.24
django-filter==2.4.0
djangorestframework==3.12.4
django-cors-middleware==1.5.0
mysqlclient==1.4.6
python-swiftclient==3.9.0
mysqlclient==2.0.3
mysql-connector-python==8.0.25
python-swiftclient==3.12.0
django-storage-swift==1.2.19
mod-wsgi==4.7.1
environs==7.4.0
mod-wsgi==4.8.0
environs==9.3.2
12 changes: 6 additions & 6 deletions requirements/local.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Local development dependencies go here
-r base.txt
django-debug-toolbar==2.2
django-extensions==2.2.9
django-debug-toolbar==3.2.1
django-extensions==3.1.3
collection-json==0.1.1
coverage==5.1
pylint==2.5.2
flake8==3.7.9
isort==4.3.21
coverage==5.5
pylint==2.9.1
flake8==3.9.2
isort==5.9.1
4 changes: 2 additions & 2 deletions store_backend/config/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Django settings for ChRIS_store project.
Generated by 'django-admin startproject' using Django 2.2.12.
Generated by 'django-admin startproject' using Django 2.2.24.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
Expand Down Expand Up @@ -98,7 +98,7 @@

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'ENGINE': 'mysql.connector.django',
}
}

Expand Down
2 changes: 1 addition & 1 deletion store_backend/config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
DATABASES['default']['NAME'] = 'chris_store_dev'
DATABASES['default']['USER'] = 'chris'
DATABASES['default']['PASSWORD'] = 'Chris1234'
DATABASES['default']['TEST'] = {'NAME': 'test_chris_store_dev', 'CHARSET': 'utf8'}
DATABASES['default']['TEST'] = {'NAME': 'test_chris_store_dev'}
DATABASES['default']['HOST'] = 'chris_store_dev_db'
DATABASES['default']['PORT'] = '3306'

Expand Down
4 changes: 2 additions & 2 deletions swarm/prod/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ services:
role: "Production server using Apache's mod_wsgi"

chris_store_db:
image: mysql:5
command: --character-set-server=utf8 --collation-server=utf8_bin
image: mysql:8
command: --collation-server=utf8mb4_0900_as_cs
volumes:
- chris_store_db_data:/var/lib/mysql
env_file:
Expand Down

0 comments on commit c45e69d

Please sign in to comment.