Skip to content

Commit

Permalink
Merge pull request #173 from NREL/develop
Browse files Browse the repository at this point in the history
Bump docker image to rc2
  • Loading branch information
brianlball authored Nov 8, 2023
2 parents ff62f74 + 52234f1 commit cdff98e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-openstudio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on: [push, pull_request]
env:
USE_TESTING_TIMEOUTS: "true"
OPENSTUDIO_VERSION: 3.7.0
OPENSTUDIO_SHA: 211bb633b0
OPENSTUDIO_VERSION_EXT: "-rc1"
OPENSTUDIO_SHA: c0cbe73b51
OPENSTUDIO_VERSION_EXT: "-rc2"


jobs:
Expand Down
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ MAINTAINER Nicholas Long [email protected]

# Set the version of OpenStudio when building the container. For example `docker build --build-arg
ARG OPENSTUDIO_VERSION=3.7.0
ARG OPENSTUDIO_VERSION_EXT="-rc1"
ARG OPENSTUDIO_DOWNLOAD_URL=https://github.com/NREL/OpenStudio/releases/download/v3.7.0-rc1/OpenStudio-3.7.0-rc1+211bb633b0-Ubuntu-20.04-x86_64.deb
ARG OPENSTUDIO_VERSION_EXT="-rc2"
ARG OPENSTUDIO_DOWNLOAD_URL=https://github.com/NREL/OpenStudio/releases/download/v3.7.0-rc2/OpenStudio-3.7.0-rc2+c0cbe73b51-Ubuntu-20.04-x86_64.deb
ENV OS_BUNDLER_VERSION=2.1.4
ENV RUBY_VERSION=2.7.2
ENV BUNDLE_WITHOUT=native_ext
Expand Down Expand Up @@ -38,8 +38,10 @@ RUN apt-get update && apt-get install -y \
&& locale-gen en_US en_US.UTF-8 \
&& dpkg-reconfigure locales

# RUN apt-get install ca-certificates
# RUN curl -k -SLO https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.2.tar.gz \

RUN curl -SLO https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.2.tar.gz \
RUN curl -SLO -k https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.2.tar.gz \
&& tar -xvzf ruby-2.7.2.tar.gz \
&& cd ruby-2.7.2 \
&& ./configure \
Expand All @@ -64,7 +66,7 @@ RUN bundle _${OS_BUNDLER_VERSION}_ install --path=gems --without=native_ext --jo
# Configure the bootdir & confirm that openstudio is able to load the bundled gem set in /var/gemdata
VOLUME /var/simdata/openstudio
WORKDIR /var/simdata/openstudio
RUN openstudio --verbose --bundle /var/oscli/Gemfile --bundle_path /var/oscli/gems --bundle_without native_ext openstudio_version
RUN openstudio --loglevel Trace --bundle /var/oscli/Gemfile --bundle_path /var/oscli/gems --bundle_without native_ext openstudio_version

# May need this for syscalls that do not have ext in path
RUN ln -s /usr/local/openstudio-${OPENSTUDIO_VERSION}${OPENSTUDIO_VERSION_EXT} /usr/local/openstudio-${OPENSTUDIO_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions test/test_gemfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
rm -rf mygems
rm -f Gemfile.lock
bundle install --path mygems
openstudio --verbose --bundle Gemfile --bundle_path mygems test_gemfile.rb
openstudio --loglevel Trace --bundle Gemfile --bundle_path mygems test_gemfile.rb

rm -rf mygems
rm -f Gemfile-git.lock
bundle install --gemfile=Gemfile-git --path mygems
openstudio --verbose --bundle Gemfile-git --bundle_path mygems test_gemfile_git.rb
openstudio --loglevel Trace --bundle Gemfile-git --bundle_path mygems test_gemfile_git.rb

# rm -rf mygems
# rm -f Gemfile-native.lock
Expand Down

0 comments on commit cdff98e

Please sign in to comment.