Skip to content

Commit

Permalink
docker image can be built and deployed (#1757)
Browse files Browse the repository at this point in the history
This is if anyone wants to deploy this branch as a docker image and run the `rake jupiter:get_me_off_of_fedora`

A bump to the built with bundler version in Gemfile.lock required a newer version of bundler. Fixed this in the Dockerfile.deployment

Changed the predeploy script to look to this branch for getting the docker-compose with the correct docker image.

Bumped the version to 2.0.0.pre so that when/if this is deployed we'll know which version is running.
  • Loading branch information
pgwillia authored Jul 15, 2020
1 parent 5c3b7ea commit 29064ed
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and releases in Jupiter project adheres to [Semantic Versioning](http://semver.o

## [Unreleased]

### Fixed
- docker image can be built and deployed

## [2.0.0.pre2.5] 2020-07-03

### Fixed
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile.deployment
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.5.0
FROM ruby:2.6
LABEL maintainer="University of Alberta Libraries"

# Need to add jessie-backports repo so we can get FFMPEG, doesn't come with jessie debian by default
Expand Down Expand Up @@ -38,6 +38,10 @@ ENV APP_ROOT /app
RUN mkdir -p $APP_ROOT
WORKDIR $APP_ROOT

# Update bundler
RUN gem update --system
RUN gem install bundler:2.1.4

# Preinstall gems in an earlier layer so we don't reinstall every time any file changes.
COPY Gemfile $APP_ROOT
COPY Gemfile.lock $APP_ROOT
Expand Down
2 changes: 1 addition & 1 deletion bin/predeploy
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -o nounset
[[ -n "${TRACE:-}" ]] && set -o xtrace


readonly branch_name="master"
readonly branch_name="integration_migration_phase1"
readonly install_directory="/home/deploy/jupiter"

mkdir -p "${install_directory}"
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ services:
# Sidekiq
worker: &rails
restart: always
image: ualbertalib/jupiter:deployment
image: ualbertalib/jupiter:2.0.0.pre
volumes:
- file-storage:/app/storage/
command: bundle exec sidekiq
Expand Down
2 changes: 1 addition & 1 deletion lib/jupiter/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Jupiter
VERSION = '1.2.17'.freeze
VERSION = '2.0.0.pre'.freeze
end

0 comments on commit 29064ed

Please sign in to comment.