Skip to content

Commit

Permalink
Pendulum issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoodr94 committed Dec 21, 2023
1 parent b79d216 commit 2e1683d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sh text eol=lf
6 changes: 2 additions & 4 deletions app/Dockerfiles/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY . .

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

# # Config
Expand All @@ -20,9 +20,7 @@ COPY ./install/SpineToolbox.conf /root/.spinetoolbox/SpineProject

# # 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 python3 -m jill install --confirm
RUN . ./resilience_calculator/install/julia.sh

# Environment
Expand Down
7 changes: 1 addition & 6 deletions app/entrypoint.local.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/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
flask run --host=0.0.0.0 --no-reload --debugger
4 changes: 3 additions & 1 deletion app/install/julia.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
julia -e 'using Pkg; Pkg.rm("SpineInterface")' || true
julia -e 'using Pkg; Pkg.rm("SpineOpt")' || true
julia -e 'using Pkg; Pkg.add(url="https://github.com/spine-tools/SpineInterface.jl.git")'
julia -e 'using Pkg; Pkg.add(url="https://github.com/spine-tools/SpineOpt.jl.git")'
julia -e 'using Pkg; Pkg.add(["XLSX", "DataFrames", "Distributions", "CSV", "Revise", "Cbc", "Clp"])'
julia -e 'using Pkg; Pkg.add(["XLSX", "DataFrames", "Distributions", "CSV", "Revise", "Cbc", "Clp"])'
4 changes: 4 additions & 0 deletions app/spine/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
spine-engine
spine-items
spinedb-api
spinetoolbox

0 comments on commit 2e1683d

Please sign in to comment.