Skip to content

Commit e195e47

Browse files
committed
Merge branch 'master' of https://github.com/CMSgov/bluebutton-web-server into feature/c4dic
2 parents fa4e0af + 64d3f45 commit e195e47

File tree

88 files changed

+970
-3553
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+970
-3553
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM --platform=linux/amd64 python:3.8
1+
FROM --platform=linux/amd64 python:3.11
22
ENV PYTHONUNBUFFERED 1
3+
ENV PYDEVD_DISABLE_FILE_VALIDATION 1
34
RUN useradd -m -s /bin/bash DEV
45
USER DEV
56
ADD . /code

Dockerfile.selenium

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM seleniarm/standalone-chromium
22

33
ENV PYTHONUNBUFFERED 1
44
USER root
5-
RUN apt-get update ; apt-get install -yq git curl libpq-dev libffi-dev
5+
#RUN apt-get update ; apt-get install -yq git curl libpq-dev libffi-dev
66
RUN apt-get update ; apt-get install -yq python3 python3-venv
77
RUN ln -s /usr/bin/python3 /usr/local/bin/python
88
RUN useradd -m -s /bin/bash DEV
@@ -13,5 +13,5 @@ RUN python -m venv /tmp/venv
1313
RUN . /tmp/venv/bin/activate
1414
ENV PATH="/tmp/venv/bin:${PATH}"
1515
RUN pip3 install --upgrade pip
16-
RUN pip3 install selenium pytest jsonschema
16+
RUN pip3 install selenium pytest debugpy jsonschema python-dateutil
1717

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM --platform=linux/amd64 python:3.11
2+
# For build CBC Jenkins job ECR image
3+
ENV PYTHONUNBUFFERED 1
4+
5+
RUN mkdir /code
6+
ADD . /code/
7+
WORKDIR /code
8+
9+
RUN pip install --upgrade pip
10+
RUN apt-get update && apt-get install -yq git unzip curl
11+
# Install Chrome for Selenium
12+
RUN curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /chrome.deb \
13+
&& dpkg -i /chrome.deb || apt-get install -yf \
14+
&& rm /chrome.deb
15+
# Install chromedriver for Selenium
16+
RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip \
17+
&& unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ \
18+
&& chmod +x /usr/local/bin/chromedriver

Jenkinsfiles/Jenkinsfile.cbc-run-multi-pr-checks-w-selenium

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
pipeline {
22
agent {
33
kubernetes {
4-
defaultContainer "bb2-cbc-build-selenium-python38"
5-
yamlFile "Jenkinsfiles/cbc-pod-deployment-config-w-selenium-p38.yaml"
4+
defaultContainer "bb2-cbc-build-selenium-python311"
5+
yamlFile "Jenkinsfiles/cbc-pod-deployment-config-w-selenium-p311.yaml"
66
}
77
}
88

99
environment {
10-
USE_MSLSX = false
10+
USE_MSLSX = true
1111
DJANGO_LOG_JSON_FORMAT_PRETTY = true
1212
DJANGO_SETTINGS_MODULE = "hhs_oauth_server.settings.logging_it"
1313
OAUTHLIB_INSECURE_TRANSPORT = true
@@ -55,6 +55,7 @@ pipeline {
5555
sh """
5656
python -m venv venv
5757
. venv/bin/activate
58+
python -m pip install --upgrade pip setuptools wheel cryptography
5859
make reqs-download
5960
make reqs-install-dev
6061
"""
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Pod
3+
spec:
4+
containers:
5+
- name: bb2-cbc-build-selenium-python311
6+
image: "public.ecr.aws/f5g8o1y9/bb2-cbc-build-selenium-python311:latest"
7+
tty: true
8+
command: ["tail", "-f"]
9+
imagePullPolicy: Always
10+
nodeSelector:
11+
Agents: true

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ reqs-compile:
44

55
# Note: requirements.dev.txt includes packages from requirements.txt also.
66
reqs-download:
7-
pip download -r requirements/requirements.dev.txt --dest vendor --platform manylinux2014_x86_64 --abi cp38 --no-deps
7+
pip download -r requirements/requirements.dev.txt --dest vendor --platform manylinux2014_x86_64 --abi cp311 --no-deps
88

99
#Note: Only installs prod requirements NOT RECOMMENDED FOR DEVELOPMENT.
1010
reqs-download-prod:
11-
pip download -r requirements/requirements.txt --dest vendor --platform manylinux2014_x86_64 --abi cp38 --no-deps
11+
pip download -r requirements/requirements.txt --dest vendor --platform manylinux2014_x86_64 --abi cp311 --no-deps
1212

1313
reqs-install:
1414
pip install -r requirements/requirements.txt --no-index --find-links ./vendor/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,4 @@ by their respective authors.
167167
License
168168
-------
169169

170-
This project is free and open source software under the Apache 2 license. See LICENSE for more information.
170+
This project is free and open source software under the Apache 2 license. See LICENSE for more information.

apps/accounts/management/commands/create_super_user_from_envars.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import logging
2-
2+
import os
33
import apps.logging.request_logger as bb2logging
44

5-
from getenv import env
65
from django.contrib.auth.models import User
76
from django.core.management.base import BaseCommand
87

@@ -30,9 +29,9 @@ class Command(BaseCommand):
3029
def handle(self, *args, **options):
3130

3231
# get variables
33-
super_username = env("DJANGO_SUPERUSER_USERNAME", "")
34-
super_password = env("DJANGO_SUPERUSER_PASSWORD", "")
35-
super_email = env("DJANGO_SUPERUSER_EMAIL", "")
32+
super_username = os.environ.get("DJANGO_SUPERUSER_USERNAME", "")
33+
super_password = os.environ.get("DJANGO_SUPERUSER_PASSWORD", "")
34+
super_email = os.environ.get("DJANGO_SUPERUSER_EMAIL", "")
3635
if super_username and super_password and super_email:
3736
# create a super user
3837
r = create_superuser(super_username, super_password, super_email)

apps/accounts/templates/account-settings.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% extends "oauth2_provider/base.html" %}
22
{% load i18n %}
3+
{% load bootstrap5 %}
34

45
{% block bannerBackButton %}
56
<a class="banner-back-button" href="/" style="outline-color: transparent; background-color: transparent"><i data-feather="arrow-left"></i>Back to Dashboard</a>
@@ -43,10 +44,7 @@ <h4 class="ds-h4">{%trans "Important" %}</h4>
4344

4445
<form class="well ds-u-margin-y--2" method="post" action="" enctype="multipart/form-data">
4546
{% csrf_token %}
46-
47-
{% load bootstrap %}
48-
{{ form|bootstrap }}
49-
47+
{% bootstrap_form form %}
5048
<input type="submit" class="ds-c-button ds-c-button--solid ds-u-margin-y--2" value="{% trans 'Update Information' %}" /><br>
5149
</form>
5250

apps/accounts/templates/registration/login.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% extends "base.html" %}
22
{% load i18n %}
3+
{% load bootstrap5 %}
34

45
<!-- Ignore Banner Code -->
56
{% block banner %}{% endblock %}
@@ -14,7 +15,7 @@
1415
<h1>Sandbox Login</h1>
1516
<p>Register applications, make sample API calls, manage tokens, and more.</p>
1617

17-
{% include "include/messages-new-fmt.html" %}
18+
{% include "include/messages-new-fmt.html" %}
1819

1920
<!-- Content Card -->
2021
<div class="gradient-content-card">
@@ -23,8 +24,7 @@ <h1>Sandbox Login</h1>
2324
<form class="" method="post" action="">
2425
{% csrf_token %}
2526
<table>
26-
{% load bootstrap %}
27-
{{ form|bootstrap }}
27+
{% bootstrap_form form %}
2828
</table>
2929
<input type="submit" class="ds-c-button ds-u-margin-y--2 ds-c-button--solid" value="Login" />
3030
</form>

0 commit comments

Comments
 (0)