Skip to content

Commit

Permalink
VSCode Debug Docker Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoodr94 committed Nov 17, 2023
1 parent 53c8159 commit 18a8814
Show file tree
Hide file tree
Showing 76 changed files with 50 additions and 8,688 deletions.
29 changes: 28 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
**/__pycache__
**/.venv
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/bin
**/charts
**/docker-compose*
**/compose*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
Lib
Scripts
Lib
venv
18 changes: 9 additions & 9 deletions app/Dockerfiles/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ RUN apt-get install -y wget python3 python3-pip git
WORKDIR /opt/resilience_calculator
COPY . .

# Certificates
RUN wget -q -P /usr/local/share/ca-certificates/ http://certstore.inl.gov/pki/CAINLROOT_B64.crt
RUN /usr/sbin/update-ca-certificates
RUN pip config set global.cert /usr/local/share/ca-certificates/CAINLROOT_B64.crt

# App dependencies
RUN pip install -r requirements.dev.txt
RUN pip install --src spine -r requirements.spine.txt
RUN pip install --src /opt/spine -r requirements.spine.txt
ENV PATH=$PATH:/opt/spine

# Config
# # Config
RUN mkdir -p /root/.spinetoolbox/SpineProject
COPY ./install/SpineToolbox.conf /root/.spinetoolbox/SpineProject

# Julia
# # Julia
WORKDIR /opt
RUN wget https://julialang-s3.julialang.org/bin/linux/x64/1.9/julia-1.9.3-linux-x86_64.tar.gz
RUN tar zxvf julia-1.9.3-linux-x86_64.tar.gz
ENV PATH=$PATH:/opt/julia-1.9.3/bin
RUN . ./resilience_calculator/install/julia.sh

ENTRYPOINT [ "./entrypoint.local.sh" ]
# Environment
ENV QT_QPA_PLATFORM="offscreen"
ENV FLASK_APP=./src/app.py

WORKDIR /opt/resilience_calculator
9 changes: 9 additions & 0 deletions app/entrypoint.local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
# Copyright 2023, Battelle Energy Alliance, LLC

mv /opt/spine/spine-engine /opt/resilience_calculator/spine/
mv /opt/spine/spine-items /opt/resilience_calculator/spine/
mv /opt/spine/spinedb-api /opt/resilience_calculator/spine/
mv /opt/spine/spinetoolbox /opt/resilience_calculator/spine/

tail -f /dev/null
2 changes: 1 addition & 1 deletion app/requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ semantic-version==2.10.0
setuptools==59.6.0
shiboken2==5.15.2.1
six==1.16.0
SQLAlchemy==2.0.23
SQLAlchemy==1.3.24
termcolor==2.3.0
tomli==2.0.1
typing_extensions==4.8.0
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions app/spine/projects/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Loading

0 comments on commit 18a8814

Please sign in to comment.