-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BB2-2336] Upgrade Python from 3.7 to 3.8 (LTS) for BB2 web server (#…
…1113) * bb2 server changes per python 3.8 upgrade. * apps/dot_ext/migrations/0005_alter_application_client_secret.py * consolidate migration. * fix custom migrate on application model client_secret copy over. * fix lint * added tar ball for 2 dependencies. * add crytpo whl for amazon linux2. * add alt whl files. * whl update for new relic * remove py37 newrelic whl * Add client_secret_plain to app admin --------- Co-authored-by: JAMES FUQIAN <[email protected]> Co-authored-by: Don Seymour <[email protected]> Co-authored-by: Dave Tisza <[email protected]>
- Loading branch information
1 parent
119d69d
commit 70085e0
Showing
138 changed files
with
1,312 additions
and
941 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM python:3.8 | ||
# For build CBC Jenkins job ECR image | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
RUN mkdir /code | ||
ADD . /code/ | ||
WORKDIR /code | ||
|
||
RUN pip install --upgrade pip | ||
RUN apt-get update && apt-get install -yq git unzip curl | ||
# Install Chrome for Selenium | ||
RUN curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /chrome.deb \ | ||
&& dpkg -i /chrome.deb || apt-get install -yf \ | ||
&& rm /chrome.deb | ||
# Install chromedriver for Selenium | ||
RUN wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip \ | ||
&& unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ \ | ||
&& chmod +x /usr/local/bin/chromedriver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
Jenkinsfiles/cbc-pod-deployment-config-w-selenium-p38.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
spec: | ||
containers: | ||
- name: bb2-cbc-build-selenium-python38 | ||
image: "public.ecr.aws/f5g8o1y9/bb2-cbc-build-selenium-python38:latest" | ||
tty: true | ||
command: ["tail", "-f"] | ||
imagePullPolicy: Always | ||
nodeSelector: | ||
Agents: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Generated by Django 3.2.18 on 2023-05-13 07:18 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
migrations.swappable_dependency(settings.OAUTH2_PROVIDER_APPLICATION_MODEL), | ||
('authorization', '0002_auto_20221121_1516'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='archiveddataaccessgrant', | ||
name='application', | ||
field=models.ForeignKey(db_constraint=False, editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.OAUTH2_PROVIDER_APPLICATION_MODEL), | ||
), | ||
migrations.AlterField( | ||
model_name='archiveddataaccessgrant', | ||
name='beneficiary', | ||
field=models.ForeignKey(db_constraint=False, editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), | ||
), | ||
migrations.AlterField( | ||
model_name='dataaccessgrant', | ||
name='application', | ||
field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to=settings.OAUTH2_PROVIDER_APPLICATION_MODEL), | ||
), | ||
migrations.AlterField( | ||
model_name='dataaccessgrant', | ||
name='beneficiary', | ||
field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
apps/dot_ext/migrations/0005_alter_application_client_secret.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 3.2.18 on 2023-05-13 07:18 | ||
|
||
from django.db import migrations, models | ||
import oauth2_provider.generators | ||
import oauth2_provider.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('dot_ext', '0004_auto_20221117_2012'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='application', | ||
name='client_secret_plain', | ||
field=models.CharField(blank=True, default='', max_length=255), | ||
), | ||
migrations.RunSQL( | ||
"UPDATE dot_ext_application SET client_secret_plain=client_secret" | ||
), | ||
migrations.AlterField( | ||
model_name='application', | ||
name='client_secret', | ||
field=oauth2_provider.models.ClientSecretField(blank=True, db_index=True, default=oauth2_provider.generators.generate_client_secret, help_text='Hashed on Save. Copy it now if this is a new secret.', max_length=255), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.