Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
vincemtnz committed Mar 26, 2019
2 parents cfa738d + 5823a2a commit 61257b9
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 17 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Expand Up @@ -3,19 +3,19 @@ version: 2
defaults: &defaults
working_directory: ~/circleci-champaign
docker:
- image: soutech/ruby2.4.1_node_awscli:0.2
- image: soutech/ruby2.4.5_node_awscli:latest

jobs:
install_dependencies:
<<: *defaults
steps:
- checkout
- restore_cache:
name: Restoring bundler cache
key: gem-cache-{{ checksum "Gemfile.lock" }}
- restore_cache:
name: Restoring node_modules cache
key: yarn-cache-{{ checksum "yarn.lock" }}
# - restore_cache:
# name: Restoring bundler cache
# key: gem-cache-{{ checksum "Gemfile.lock" }}
# - restore_cache:
# name: Restoring node_modules cache
# key: yarn-cache-{{ checksum "yarn.lock" }}
- run:
name: Install gems
command: bundle install --path vendor/bundle
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
rspec:
working_directory: ~/circleci-champaign
docker:
- image: soutech/ruby2.4.1_node_awscli:0.2
- image: soutech/ruby2.4.5_node_awscli:latest
environment:
PG_USERNAME: champaign
PG_PASSWORD: champaign
Expand Down
4 changes: 4 additions & 0 deletions .dockerignore
Expand Up @@ -5,3 +5,7 @@
log
node_modules
vendor/bundle
log/*.log
tmp/cache
public/packs-test
public/system
2 changes: 1 addition & 1 deletion .ebextensions/02_container_commands.config
Expand Up @@ -13,7 +13,7 @@ files:
-e CACHE_PORT=$CACHE_PORT \
-e EXTERNAL_ASSETS_PATH=$EXTERNAL_ASSETS_PATH \
-e EXTERNAL_LIQUID_PATH=$EXTERNAL_LIQUID_PATH \
aws_beanstalk/staging-app:latest rake db:migrate champaign:seed_liquid
aws_beanstalk/staging-app:latest bundle exec rake db:migrate champaign:seed_liquid
"/home/ec2-user/docker-housekeeping.sh":
mode: "000755"
owner: root
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
@@ -1 +1 @@
2.4.1
2.4.5
10 changes: 6 additions & 4 deletions Dockerfile
@@ -1,20 +1,22 @@
FROM ruby:2.4.1
FROM ruby:2.4.5-stretch

ENV APP_ROOT /champaign

# Install ImageMagick and apt-transport-https (to install nodesource)
RUN apt-get update -qq && apt-get install -y apt-transport-https imagemagick

# Install Node.js 7.x
RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& echo 'deb https://deb.nodesource.com/node_7.x jessie main' > /etc/apt/sources.list.d/nodesource.list
# Install Node.js 11.x
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - \
&& apt-get install -y nodejs

RUN apt-get update -qq && apt-get install -y nodejs

# Create app folder and add current dir contents
RUN mkdir $APP_ROOT
ADD . $APP_ROOT
WORKDIR $APP_ROOT

RUN gem install bundler
RUN bundle install --jobs 4 --deployment --without development:test:doc

EXPOSE 3000
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

source 'https://rubygems.org'
ruby '2.4.1'
ruby '2.4.5'

gem 'aasm'
gem 'activeadmin'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -642,7 +642,7 @@ DEPENDENCIES
webpacker (~> 3.5)

RUBY VERSION
ruby 2.4.1p111
ruby 2.4.5p335

BUNDLED WITH
1.17.1
2.0.1

0 comments on commit 61257b9

Please sign in to comment.