Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenStudio CLI #324

Merged
merged 46 commits into from
Aug 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
22ab541
remove unused run_workflow_method option.
anyaelena Mar 26, 2018
085a364
Use CLI
anyaelena Apr 11, 2018
e1385a5
Merge branch '241-develop' into 270-241-develop
anyaelena Apr 11, 2018
810dd8c
try to use (assumed) executable path.
anyaelena Apr 17, 2018
631e4f9
run tests again (rspec never ran)
anyaelena Apr 18, 2018
a006778
spawn and timeout process
anyaelena Apr 18, 2018
2a4c827
fix rescue for generic exception
anyaelena Apr 18, 2018
600b30a
add openstudio.exe directory to PATH for Appveyor
anyaelena Apr 18, 2018
bb82a24
4 hour timeout + rely on PATH to find openstudio.exe on windows + che…
anyaelena Apr 18, 2018
c4d18ab
Merge branch 'develop' into 270-241-develop
anyaelena Apr 19, 2018
7ab4eef
important note.
anyaelena Apr 19, 2018
2b86ee2
rerun ci
anyaelena Apr 27, 2018
a109571
Merge branch 'develop' into 270-241-develop
anyaelena May 7, 2018
74fa2ca
Merge branch 'develop' into 270-241-develop
anyaelena Jun 5, 2018
af70434
Try using OpenStudio 2.5.1.
anyaelena Jun 5, 2018
2d0ab68
with openstudio 2.5.1, we shouldn't need the full path on osx.
anyaelena Jun 5, 2018
4088b3f
Try to hardcode path for OSX. Expect Ubuntu/test to fail. If OSX/te…
anyaelena Jun 5, 2018
c0c61f0
Have confirmed that absolute path /Users/travis/openstudio/bin/openst…
anyaelena Jun 5, 2018
63650b0
ensure that openstudio executable is in PATH.
anyaelena Jun 5, 2018
6758c52
Merge branch 'develop' into 270-241-develop
anyaelena Jun 12, 2018
50eec39
Tests should pass without modifiying PATH to find OpenStudio/EnergyPl…
anyaelena Jun 12, 2018
9f8be56
Merge branch '270-241-develop' of github.com:NREL/OpenStudio-server i…
anyaelena Jun 12, 2018
6698439
Merge branch 'develop' into 270-241-develop
anyaelena Jun 25, 2018
5d4fb2a
Per Nick, remove Openstudio Standards and Workflow from server Gemfile.
anyaelena Jul 16, 2018
a77666c
Merge branch 'develop' into 270-241-develop
anyaelena Jul 18, 2018
21d62bb
bump version.
anyaelena Jul 19, 2018
eb3f270
Merge branch 'develop' into 270-241-develop
anyaelena Jul 24, 2018
468f2eb
dynamically detect absolute path to openstudio on linux and osx
anyaelena Jul 24, 2018
4115bc8
Revert "Per Nick, remove Openstudio Standards and Workflow from serve…
anyaelena Jul 25, 2018
7150184
test whether it's an openstudio version issue by reverting to last ve…
anyaelena Jul 25, 2018
474fd87
Run bundle install in the openstudio ruby directory
anyaelena Jul 27, 2018
8dc2524
Updating travis & appveyor to 2.6.0 to match docker OS version.
rHorsey Jul 27, 2018
1e3c904
use bundle option with os cli call, depending on application config
anyaelena Jul 27, 2018
a691711
conflict resolution
anyaelena Jul 27, 2018
ef39db0
2.6.0
anyaelena Jul 27, 2018
89f4de8
Working base bundle-enabled OS server container.
rHorsey Aug 2, 2018
0eafe21
merge 2.6.1
anyaelena Aug 3, 2018
85f3434
missed this one
anyaelena Aug 5, 2018
2606aca
merge develop
anyaelena Aug 6, 2018
8d496f2
Merge branch '270-241-develop' into smartds
rHorsey Aug 7, 2018
10b9264
Updating to new semantics & reverting hhorsey repos hard-codings.
rHorsey Aug 7, 2018
7a2a989
Updating base dockerfile.
rHorsey Aug 8, 2018
e5b2141
Merge pull request #381 from NREL/smartds
rHorsey Aug 8, 2018
76b4c71
Merge branch 'develop' into 270-241-develop
anyaelena Aug 21, 2018
160b0e4
Merge branch 'develop' into 270-241-develop
rHorsey Aug 28, 2018
43291c4
Merge branch 'develop' into 270-241-develop
rHorsey Aug 29, 2018
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
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ vagrant
/server/spec/runs.txt
/server/spec/files/tmp/
/server/spec/files/test_model/tmp_run_single
/spec/unit-test
/spec
/worker-nodes
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
# TO_BUILD_AND_RUN: docker-compose up
# NOTES: Currently this is one big dockerfile and non-optimal.

ARG OPENSTUDIO_VERSION=2.6.1

ARG OPENSTUDIO_VERSION=develop
FROM nrel/openstudio:$OPENSTUDIO_VERSION as base
MAINTAINER Nicholas Long [email protected]

RUN ruby -r openstudio -e "require 'openstudio'; puts OpenStudio.openStudioLongVersion"

# Install required libaries.
# realpath - needed for wait-for-it
RUN sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 && \
Expand Down Expand Up @@ -85,7 +84,7 @@ ENV RAILS_ENV $rails_env
ADD /bin /opt/openstudio/bin
ADD /server/Gemfile /opt/openstudio/server/Gemfile
WORKDIR /opt/openstudio/server
RUN bundle install --jobs=3 --retry=3 $bundle_args
RUN bundle _${OS_BUNDLER_VERSION}_ install --jobs=3 --retry=3 $bundle_args

# Add the app assets and precompile assets. Do it this way so that when the app changes the assets don't
# have to be recompiled everytime
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ environment:
USE_TESTING_TIMEOUTS: "true"
OPENSTUDIO_VERSION: 2.6.1
OPENSTUDIO_VERSION_SHA: ab0dddde0b

matrix:
- RUBY_VERSION: "224-x64"

Expand Down
2 changes: 1 addition & 1 deletion ci/appveyor/setup.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
set PATH=C:\Program Files\Git\mingw64\bin;C:\projects\openstudio\bin;%PATH%
echo Downloading and Installing OpenStudio (%OPENSTUDIO_VERSION%.%OPENSTUDIO_VERSION_SHA%)
curl -SLO --insecure https://s3.amazonaws.com/openstudio-builds/%OPENSTUDIO_VERSION%/OpenStudio-%OPENSTUDIO_VERSION%.%OPENSTUDIO_VERSION_SHA%-Windows.exe
OpenStudio-%OPENSTUDIO_VERSION%.%OPENSTUDIO_VERSION_SHA%-Windows.exe --script ci/appveyor/install-windows.qs
Expand Down
1 change: 0 additions & 1 deletion ci/travis/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ if [ "${BUILD_TYPE}" == "docker" ]; then
curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
chmod +x docker-compose
sudo mv docker-compose /usr/local/bin

# install pipeviewer
sudo apt-get install -y pv
else
Expand Down
2 changes: 2 additions & 0 deletions ci/travis/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
# Dir containing openstudio
export RUBYLIB="${HOME}/openstudio/Ruby"
# required as of OS 2.5.1
# export PATH="${PATH}:${HOME}/openstudio/bin"
mongo_dir="/usr/local/bin"
elif [ "${TRAVIS_OS_NAME}" == "linux" ]; then
# Dir containing openstudio
Expand Down
1 change: 0 additions & 1 deletion docker/deployment/scripts/aws_osserver_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,3 @@ echo ""
sleep 1
docker volume create --name=osdata
docker volume create --name=dbdata
sleep 1
Loading