Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
3d6ebda
Fix submodule linkage for EVI-EnSitePy
Bill-Becker Apr 30, 2025
eec88f3
Add git submodule for EVI-EnSitePy for ...barebone branch compat with…
Bill-Becker Apr 30, 2025
40e6a4d
Conditionally install EVI-EnSitePy in Django container if submodule d…
Bill-Becker Apr 30, 2025
ea1786c
Add mock barebones ensitepy view/URL in load_builder app available at…
Bill-Becker Apr 30, 2025
ce10756
Avoid trying to install EVI-EnSitePy if not cloned/initialized with g…
Bill-Becker Apr 30, 2025
d814a95
Wrap ensitepy and modules inside a function to avoid errors when not …
Bill-Becker May 1, 2025
5f69a4a
Merge branch 'develop' into ensitepy
Bill-Becker Aug 29, 2025
65b20c5
Update github submodule for EVI-EnLitePy
Bill-Becker Sep 2, 2025
581fc31
Update base image Dockerfile to use python v3.11
Bill-Becker Sep 2, 2025
f7f722f
Update most package versions in requirements.txt after upgrade to pyt…
Bill-Becker Sep 2, 2025
96c6b1f
Update deprecated django models class method for django 5.2
Bill-Becker Sep 2, 2025
85c71b7
Comment-out v1/v2 emissions code which had incompatibility issues wit…
Bill-Becker Sep 2, 2025
2357bdd
Update to avoid deprecation FutureWarning with T -> min
Bill-Becker Sep 2, 2025
e2d9959
Small update to Dockerfile for newer syntax warning
Bill-Becker Sep 2, 2025
a5d0a70
Django version to 4.2 (LTS release) instead of 5.2, for PostgreSQL 12…
Bill-Becker Sep 2, 2025
d9b69bc
WIP EnLitePy install and view
Bill-Becker Sep 5, 2025
321ed12
Switch to server_version branch of EVI-EnLitePy
Bill-Becker Sep 9, 2025
07c49b6
Update EVI-EnLitePy submodule to server_version branch
Bill-Becker Sep 9, 2025
9a5208c
Updates to get EnLitePy#server_version working
Bill-Becker Sep 10, 2025
e4c9fa3
Remove plotly and matplotlib and add pydantic to dependencies
Bill-Becker Sep 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "EVI-EnLitePy"]
path = EVI-EnLitePy
url = https://github.nrel.gov/AVCI/EVI-EnLitePy.git
branch = server_version
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM reopt/py38
FROM python:3.11

# Install NREL root certs for machines running on NREL's network.
ARG NREL_ROOT_CERT_URL_ROOT=""
Expand All @@ -9,12 +9,17 @@ ENV SRC_DIR=/opt/reopt/reo/src
ENV LD_LIBRARY_PATH="/opt/reopt/reo/src:${LD_LIBRARY_PATH}"

# Copy all code
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONDONTWRITEBYTECODE=1
COPY . /opt/reopt

# Install python packages
WORKDIR /opt/reopt
RUN ["pip", "install", "-r", "requirements.txt"]

# Install EVI-EnLitePy using pip (recommended best practice)
RUN if [ -d "/opt/reopt/EVI-EnLitePy" ] && [ "$(ls -A /opt/reopt/EVI-EnLitePy)" ]; then \
cd /opt/reopt/EVI-EnLitePy && pip install -e .; \
fi

EXPOSE 8000
ENTRYPOINT ["/bin/bash", "-c"]
1 change: 1 addition & 0 deletions EVI-EnLitePy
Submodule EVI-EnLitePy added at 0f3787
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
build:
context: .
dockerfile: Dockerfile
image: base-api-image
image: new-base-api-image
command: >
"celery -A reopt_api worker -l info"
environment:
Expand All @@ -39,7 +39,7 @@ services:
build:
context: .
dockerfile: Dockerfile
image: base-api-image
image: new-base-api-image
command: >
"python manage.py migrate
&& /opt/reopt/bin/wait-for-it.bash -t 0 julia:8081 -- python manage.py runserver 0.0.0.0:8000"
Expand Down
Loading
Loading