Skip to content

Commit 9083229

Browse files
authored
Merge pull request #4797 from avalonmediasystem/staging
Avalon 7.4 Release
2 parents 366ae85 + 783ef3e commit 9083229

File tree

638 files changed

+8752
-6643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

638 files changed

+8752
-6643
lines changed

.circleci/config.yml

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2.1
22
orbs:
3-
samvera: samvera/circleci-orb@1.0.0
3+
samvera: samvera/circleci-orb@1
44
jobs:
55
build:
66
docker:
@@ -20,8 +20,12 @@ jobs:
2020
- image: ualbertalib/docker-fcrepo4:4.7
2121
environment:
2222
CATALINA_OPTS: '-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC'
23-
- image: solr:7-alpine
24-
command: bin/solr -cloud -noprompt -f -p <<parameters.solr_port>>
23+
- image: zookeeper:3.4
24+
- image: solr:8-slim
25+
environment:
26+
VERBOSE: yes
27+
SECURITY_JSON: '{"authentication":{"blockUnknown": false, "class":"solr.BasicAuthPlugin", "credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="}, "realm":"My Solr users", "forwardCredentials": false}, "authorization":{ "class":"solr.RuleBasedAuthorizationPlugin", "permissions":[{"name":"security-edit", "role":"admin"}], "user-role":{"solr":"admin"}}}'
28+
command: sh -c "server/scripts/cloud-scripts/zkcli.sh -zkhost localhost:2181 -cmd put /security.json \"${SECURITY_JSON}\" && solr-fg -cloud -noprompt -p << parameters.solr_port >> -z localhost:2181"
2529
- image: redis:alpine
2630

2731
parameters:
@@ -35,6 +39,12 @@ jobs:
3539
parallelism:
3640
type: integer
3741
default: 4
42+
solr_config_path:
43+
type: string
44+
default: 'solr/conf'
45+
core_name:
46+
type: string
47+
default: 'hydra-test'
3848

3949
working_directory: /home/app/avalon
4050

@@ -66,7 +76,29 @@ jobs:
6676
paths:
6777
- .cache/yarn
6878

69-
- samvera/install_solr_core
79+
# Copy solr 8 compliant step from unreleased version of orb
80+
#- samvera/install_solr_core:
81+
# solr_config_path: << parameters.solr_config_path >>
82+
- run:
83+
name: Wait for Solr
84+
command: dockerize -wait tcp://localhost:<< parameters.solr_port >> -timeout 1m
85+
- run:
86+
name: Create solr core
87+
command: |
88+
if [ -d << parameters.solr_config_path >> ]
89+
then
90+
cd << parameters.solr_config_path >>
91+
else
92+
if [ -d "$(bundle show active-fedora)/lib/generators/active_fedora/config/solr/templates/solr/conf" ]
93+
then
94+
cd "$(bundle show active-fedora)/lib/generators/active_fedora/config/solr/templates/solr/conf"
95+
else
96+
cd "$(bundle show active-fedora)/lib/generators/active_fedora/config/solr/templates/solr/config"
97+
fi
98+
fi
99+
zip -1 -r solr_conf.zip ./*
100+
curl -H "Content-type:application/octet-stream" --data-binary @solr_conf.zip "http://solr:[email protected]:<< parameters.solr_port >>/solr/admin/configs?action=UPLOAD&name=solrconfig"
101+
curl -H 'Content-type: application/json' http://solr:[email protected]:<< parameters.solr_port >>/api/collections/ -d '{create: {name: << parameters.core_name >>, config: solrconfig, numShards: 1}}'
70102
71103
- run:
72104
command: |

.solr_wrapper

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Place any default configuration for solr_wrapper here
2-
version: 7.7.2
3-
# port: 8983
2+
version: 8.11.1
3+
port: 8983
44
instance_dir: tmp/solr-development
55
collection:
66
persist: true
7-
dir: solr/config/
7+
dir: solr/conf/
88
name: hydra-development

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ FROM ruby:2.7-bullseye as download
3434
LABEL stage=build
3535
LABEL project=avalon
3636
RUN curl -L https://github.com/jwilder/dockerize/releases/download/v0.6.1/dockerize-linux-amd64-v0.6.1.tar.gz | tar xvz -C /usr/bin/
37-
RUN curl https://chromedriver.storage.googleapis.com/2.46/chromedriver_linux64.zip -o /usr/local/bin/chromedriver \
38-
&& chmod +x /usr/local/bin/chromedriver
3937
RUN curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /chrome.deb
38+
RUN chrome_version=`dpkg-deb -f /chrome.deb Version | cut -d '.' -f 1-3`
39+
RUN chromedriver_version=`curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${chrome_version}`
40+
RUN curl https://chromedriver.storage.googleapis.com/index.html?path=${chromedriver_version} -o /usr/local/bin/chromedriver \
41+
&& chmod +x /usr/local/bin/chromedriver
4042
RUN apt-get -y update && apt-get install -y ffmpeg
4143

4244

@@ -82,7 +84,7 @@ WORKDIR /home/app/avalon
8284
FROM base as dev
8385
LABEL stage=final
8486
LABEL project=avalon
85-
RUN apt-get install -y --no-install-recommends --allow-unauthenticated \
87+
RUN apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated \
8688
build-essential \
8789
cmake
8890

Gemfile

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,58 @@ source 'https://rubygems.org'
33
# Core rails
44
gem 'bootsnap', require: false
55
gem 'listen'
6-
gem 'rails', '=5.2.6.3'
6+
gem 'rails', '=6.0.5.1'
77
gem 'sprockets', '~>3.7.2'
8+
#gem 'sprockets-rails', require: 'sprockets/railtie'
89
gem 'sqlite3'
910

1011
# Assets
11-
gem 'coffee-rails', '~> 4.2.0'
12+
gem 'bootstrap', '~> 4.0'
13+
gem 'coffee-rails', '~> 5.0'
14+
gem "font-awesome-rails"
1215
gem 'jquery-datatables'
1316
gem 'jquery-rails'
1417
gem 'jquery-ui-rails'
1518
gem 'react-rails'
16-
gem 'sass-rails', '~> 5.0'
19+
#gem 'sass-rails', '>= 6'
1720
# Use the last known good version of sass
1821
gem 'sass', '3.4.22'
1922
gem 'sprockets-es6'
23+
gem 'twitter-typeahead-rails', '0.11.1.pre.corejavascript'
2024
gem 'uglifier', '>= 1.3.0'
2125
gem 'webpacker'
2226

2327
# Core Samvera
2428
gem 'active-fedora', '~> 13.2', '>= 13.2.5'
25-
gem 'active_fedora-datastreams', '~> 0.3'
26-
gem 'fedora-migrate', git: 'https://github.com/avalonmediasystem/fedora-migrate.git', tag: 'avalon-r6.5'
27-
gem 'hydra-head', '~> 11.0'
29+
gem 'active_fedora-datastreams', '~> 0.4'
30+
gem 'hydra-head', '~> 12.0'
2831
gem 'ldp', '~> 1.0.3'
2932
gem 'noid-rails', '~> 3.0.1'
3033
gem 'rdf-rdfxml'
3134
gem 'rdf-vocab', '< 3.1.5'
3235

3336
# Samvera version pins
34-
gem 'blacklight', '< 7.0'
37+
gem 'blacklight', '~> 7.25'
38+
gem 'blacklight-access_controls', '>= 6.0.1' # ensure rails 6 support
3539
gem 'rdf', '~> 3.1'
3640
gem 'rsolr', '~> 1.0'
3741

3842
# Rails & Samvera Plugins
3943
gem 'about_page', git: 'https://github.com/avalonmediasystem/about_page.git', tag: 'avalon-r6.5'
40-
gem 'active_annotations', '~> 0.3'
44+
gem 'active_annotations', '~> 0.4'
4145
gem 'activerecord-session_store', '>= 2.0.0'
4246
gem 'acts_as_list'
4347
gem 'api-pagination'
4448
gem 'avalon-about', git: 'https://github.com/avalonmediasystem/avalon-about.git', tag: 'avalon-r6.4'
45-
gem 'bootstrap-sass', '< 3.4.1' # Pin to less than 3.4.1 due to change in behavior with popovers
49+
#gem 'bootstrap-sass', '< 3.4.1' # Pin to less than 3.4.1 due to change in behavior with popovers
4650
gem 'bootstrap-toggle-rails'
4751
gem 'bootstrap_form'
4852
gem 'iiif_manifest', '~> 0.6'
4953
gem 'rack-cors', require: 'rack/cors'
5054
gem 'rails_same_site_cookie'
5155
gem 'recaptcha', require: 'recaptcha/rails'
5256
gem 'samvera-persona', '~> 0.3'
53-
gem 'speedy-af', '~> 0.1.3'
57+
gem 'speedy-af', '~> 0.2'
5458

5559
# Avalon Components
5660
gem 'avalon-workflow', git: "https://github.com/avalonmediasystem/avalon-workflow.git", tag: 'avalon-r6.5'
@@ -68,7 +72,7 @@ gem "omniauth-saml", "~> 2.0"
6872
# Media Access & Transcoding
6973
gem 'active_encode', '~> 0.8.2'
7074
gem 'audio_waveform-ruby', '~> 1.0.7', require: 'audio_waveform'
71-
gem 'browse-everything', git: "https://github.com/avalonmediasystem/browse-everything.git", branch: 'v0.16.1-gdrive-fixes-plus'
75+
gem 'browse-everything', git: "https://github.com/avalonmediasystem/browse-everything.git", branch: 'v1.2-avalon'
7276
gem 'fastimage'
7377
gem 'media_element_add_to_playlist', git: 'https://github.com/avalonmediasystem/media-element-add-to-playlist.git', tag: 'avalon-r6.5'
7478
gem 'mediainfo', git: "https://github.com/avalonmediasystem/mediainfo.git", branch: 'avalon_fixes'
@@ -150,7 +154,7 @@ end
150154

151155
# Install the bundle --with aws when running on Amazon Elastic Beanstalk
152156
group :aws, optional: true do
153-
gem 'active_elastic_job', github: 'tawan/active-elastic-job'
157+
gem 'active_elastic_job'
154158
gem 'aws-partitions'
155159
gem 'aws-sdk-rails'
156160
gem 'aws-sdk-cloudfront'

0 commit comments

Comments
 (0)