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

Staging #234

Open
wants to merge 64 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
931798a
First steps for rails 5.
ayaankazerouni Dec 18, 2018
72a7506
Fix exercise-related active-record queries
ayaankazerouni Dec 18, 2018
2e81b94
Use SQL instead of ActiveRecord hashes
ayaankazerouni Dec 18, 2018
b622a46
Replace squeel usage with vanilla active record.
ayaankazerouni Dec 20, 2018
8562ecb
Manually fix merge conflicts in lock file
ayaankazerouni Jan 22, 2019
3508544
Update factory bot for incoming changes
ayaankazerouni Jan 22, 2019
0fd6b22
Rails 5.1
ayaankazerouni Jan 22, 2019
aeb2902
Rails 5.2
ayaankazerouni Jan 22, 2019
9a5b618
Fix deploy syntax
ayaankazerouni Jan 22, 2019
e026bb3
Remove obsolete config option; update mysql2
ayaankazerouni Jan 22, 2019
867339b
Fix schema issues and start Dockerizing
ayaankazerouni Jun 9, 2020
0ad6022
Regress sprockets to < 4 for the time being
ayaankazerouni Jun 9, 2020
eb0e28a
Docker-compose for databases
ayaankazerouni Jun 10, 2020
5ea1de6
Dockerfile and Compose file improvements
ayaankazerouni Jul 2, 2020
947b93a
exception_handler config updates
ayaankazerouni Jul 2, 2020
2c34931
Get README from staging
ayaankazerouni Jul 3, 2020
ac51fba
Merge branch 'staging' into rails-5-upgrade
ayaankazerouni Jul 3, 2020
1f51d4a
Set deploy branch to rails-5-upgrade
ayaankazerouni Jul 8, 2020
47896a3
Merge branch 'staging' into rails-5-upgrade
ayaankazerouni Jul 20, 2020
4f8c6f6
update models
awhicks Oct 22, 2020
705d76e
update jobs
awhicks Oct 22, 2020
aa1e292
update migrations
awhicks Oct 22, 2020
b35161c
update Gemfile.lock
awhicks Oct 22, 2020
c2ac771
update Dockerfile
awhicks Oct 22, 2020
9afd3d3
change runservers for dev
awhicks Oct 22, 2020
01ed81a
updated exception_handler and rails 5.1
awhicks Nov 12, 2020
2e0f489
added ssl for testing
awhicks Nov 12, 2020
b8cd412
Merge pull request #181 from web-cat/rails-5-upgrade-changes
awhicks Nov 12, 2020
9b71517
removed ssl
awhicks Nov 12, 2020
681c5a3
Merge branch 'staging' into rails-5-upgrade
awhicks Nov 12, 2020
aeb7de4
update gemfile
awhicks Nov 17, 2020
ffadf4c
Merge branch 'staging' into rails-5-upgrade
awhicks Nov 17, 2020
256ac4b
update schema.rb
awhicks Nov 17, 2020
6143893
bundle updates for yanked gem
awhicks Jul 29, 2021
bbb909f
dockerfile updates
awhicks Jul 29, 2021
6cee2ed
merge
awhicks Jul 29, 2021
36fda2e
fix merge issues
awhicks Jul 30, 2021
d8ce07a
update schema and remove broken parameter
awhicks Jul 30, 2021
fabdf50
Remove "try it here" link in notice after exercise is created or upda…
ayaankazerouni Feb 1, 2022
7ad6d8d
Update Dockerfile to place Gemfile at appropriate location
ayaankazerouni Feb 3, 2022
e61f88f
Fixed Gemfile according to new github policies
i-m-karanagarwal Apr 7, 2022
7412915
Merge pull request #217 from i-m-karanagarwal/staging
s-edwards Apr 8, 2022
d3eaa7b
Peml integration basic
Nov 17, 2022
24aa055
Peml integration refactoring
Nov 28, 2022
9b74718
Bug fixed and added help page
Nov 28, 2022
3db4b79
update staging
awhicks Nov 19, 2023
cab8fff
creates new exercise collection for SPLICE along with a route to exp…
awhicks Nov 22, 2023
7fa0b75
remove collection and update urls
awhicks Dec 5, 2023
cf99016
Merge pull request #228 from web-cat/splice-portal
awhicks Dec 5, 2023
da0e63b
tweaks to SPLICE API export endpoint
awhicks Dec 12, 2023
2d2b4f1
typo in exercise_name
awhicks Dec 12, 2023
f1fd061
updating keywords as array and split exercise name phrases into words
babz007 Mar 21, 2024
d01874f
Merge pull request #232 from babz007/keywordarray
awhicks Mar 22, 2024
f367069
Merge remote-tracking branch 'origin/peml_integration' into staging
s-edwards Nov 15, 2024
f70514f
removed before_filter references, post-merge cleanup
s-edwards Nov 15, 2024
db12647
fixed errant skip_before_action clause (?)
s-edwards Nov 15, 2024
06b7bf8
updated db/schema.rb after successful deployment
s-edwards Nov 18, 2024
19d8718
Merge branch 'master' into staging
s-edwards Dec 10, 2024
e2afc7b
added rails 4.2 version constraint to 2024 migrations
s-edwards Dec 10, 2024
cb9070a
updated from live staging server
s-edwards Feb 7, 2025
c2af174
fixed publicly_visible() error
s-edwards Feb 7, 2025
fcf881d
upgraded errors table for v0.8.0.0 of exception_handler gem
s-edwards Feb 18, 2025
f249826
PEML translation now working, but still some data model mismatches (m…
s-edwards Feb 21, 2025
d89df52
Updates to PEML data mapping
s-edwards Feb 24, 2025
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
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.bundle
.circleci
.git
vendor/bundle
log/*
!/log/.keep
tmp/*
!/tmp/.keep
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.3
2.7.0
31 changes: 15 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
FROM ruby:2.6.3
FROM ruby:2.7.1

LABEL MAINTAINER Jihane Najdi <[email protected]>
MAINTAINER Jihane Najdi <[email protected]>

# Default environment
ARG RAILS_ENV='development'
ARG BASEDIR='/code-workout/'
# Ruby changed the way optional params are done, but Rails hasn't caught up
ARG RUBYOPT='-W:no-deprecated'
ARG BASEDIR='/code-workout'

ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

#install 'development tools' build-essential dkms curl libxslt-dev libpq-dev python-dev python-pip python-feedvalidator python-software-properties python-sphinx libmariadbclient-dev libcurl4-gnutls-dev libevent-dev libffi-dev libssl-dev stunnel4 libsqlite3-dev
# libmariadbclient-dev
RUN apt-get update -qq \
&& apt-get install -y \
&& apt-get install -y --fix-missing \
apt-utils \
build-essential \
libpq-dev \
Expand Down Expand Up @@ -40,30 +42,27 @@ RUN apt-get update -qq \
python-feedvalidator \
python-sphinx \
ant \
default-jre \
default-jdk \
&& pip install --upgrade pip

## JAVA INSTALLATION
RUN apt-get install -y default-jre default-jdk

# install rubygems
ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH
ENV BUNDLER_VERSION 1.17.3
ENV BUNDLER_VERSION 2.1.4
ENV RAILS_ENV=$RAILS_ENV

RUN gem install bundler -v $BUNDLER_VERSION \
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config git.allow_insecure true

COPY Gemfile Gemfile
COPY Gemfile.lock Gemfile.lock

RUN bundle install
RUN gem install bundler -v $BUNDLER_VERSION

VOLUME ${BASEDIR}
WORKDIR ${BASEDIR}

COPY Gemfile ${BASEDIR}/Gemfile
COPY Gemfile.lock ${BASEDIR}/Gemfile.lock

RUN bundle install

COPY runservers.sh runservers.sh

RUN find /code-workout -type d -exec chmod 2775 {} \;
Expand Down
23 changes: 10 additions & 13 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
source 'https://rubygems.org'

gem 'rails', '~> 4.2'
gem 'bootstrap-sass-backport', '~> 3.2.0'
gem 'rails', '~> 5.1'
gem 'sprockets', '< 4.0.0'
gem 'bootstrap-sass', '~> 3.2.0'
gem 'jquery-rails'
gem 'jquery-ui-rails'
gem 'bootstrap-editable-rails'
Expand All @@ -12,7 +13,7 @@ gem 'formtastic-bootstrap'
gem 'sucker_punch', '~> 1.0'
gem 'haml', '>= 3.1.4'
gem 'haml-rails'
gem 'coffee-rails', '~> 4.0.0'
gem 'coffee-rails', '~> 4.2'
gem 'coffee-script-source'
gem 'test-unit', '~> 3.0.9'
gem 'nokogiri', '~> 1.10.4'
Expand All @@ -26,12 +27,15 @@ gem 'acts-as-taggable-on'
gem 'representable', '~> 2.1'
gem 'redcarpet'
gem 'loofah', '>= 2.3.1'
gem 'peml', github: 'CSSPLICE/peml'
gem 'truncate_html'
gem 'tzinfo' # For timezone support
gem 'active_record_union'
gem 'dottie', '~> 0.0.1'
gem 'mysql2', '~> 0.4.0'
gem 'modernizr-rails'
gem 'rubyzip', '>= 1.3.0'
gem 'bootsnap' # Added during Rails 5.2 upgrade

# For JSON support
gem 'rabl'
Expand All @@ -48,22 +52,19 @@ group :development, :test do
gem 'thin'
gem 'byebug'
gem 'sqlite3', '~> 1.3.0'
gem 'listen'
gem 'rspec-rails'
gem 'annotate'
gem 'rails-erd', git: 'https://github.com/voormedia/rails-erd'
gem 'faker'
# Needed for debugging support in Aptana Studio. Disabled, since these
# two gems do not support Ruby 2.0 yet :-(.
# gem 'ruby-debug-base'
# gem 'ruby-debug-ide'
gem 'pry'
gem 'request-log-analyzer'
gem 'capybara', '~> 3.12.0'
end
gem 'factory_bot_rails'
gem 'log_file'

group :test do
gem 'capybara'
end

group :production, :staging, :deploy do
Expand All @@ -83,7 +84,7 @@ gem 'omniauth-google-oauth2'
gem 'omniauth-cas'
gem 'cancancan'
gem 'activeadmin'
gem 'exception_handler', '= 0.3.45'
gem 'exception_handler', '~> 0.8.0.0'

gem 'kaminari', '~> 1.2.1' # Auto-paginated views
gem 'remotipart' # Adds support for remote mulitpart forms (file uploads)
Expand All @@ -98,9 +99,6 @@ gem 'bootstrap-wysihtml5-rails'
gem 'momentjs-rails', '>= 2.9.0'
gem 'bootstrap3-datetimepicker-rails', '~> 4.17.37'

#gem for improved WHERE querying
gem 'squeel', '~> 1.2'

#for nested forms
gem 'cocoon'

Expand Down Expand Up @@ -128,7 +126,6 @@ gem 'rest-client'
# Gems for cookie updates
gem 'user_agent_parser', '~> 2.7.0'
gem 'rails_same_site_cookie'
gem 'sprockets', '< 4.0.0'
gem 'image_hash'

# Gems for resource uploder
Expand Down
Loading