Skip to content

Commit 1d960e9

Browse files
authored
Merge pull request #94 from City-of-Helsinki/dev
Dev to main
2 parents 0b220ca + 60dfc22 commit 1d960e9

23 files changed

Lines changed: 12631 additions & 3685 deletions

.platform/schema

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
15
1+
16

composer.lock

Lines changed: 144 additions & 144 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

conf/cmi/field.field.paragraph.event_list.field_event_location.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ dependencies:
66
- field.storage.paragraph.field_event_location
77
- paragraphs.paragraphs_type.event_list
88
_core:
9-
default_config_hash: 7Hs1O1Q80jl_WCj7YdTHGtJJGN_UIzP6FFe1h7EEZ8I
9+
default_config_hash: 13KIFMm3tOwizoAK5jPdkaQMBM5Q0VVQGzRhZXowlPA
1010
id: paragraph.event_list.field_event_location
1111
field_name: field_event_location
1212
entity_type: paragraph
1313
bundle: event_list
1414
label: 'Event location'
15-
description: 'Show "event location" filter. Do not use at the same time with the "Remote events" filter. The API URL field should include all location IDs, otherwise this list will display all active locations.'
15+
description: 'Show "event location" filter. The API URL field should include all location IDs, otherwise this list will display all active locations.'
1616
required: false
1717
translatable: false
1818
default_value:

conf/cmi/field.field.paragraph.event_list.field_remote_events.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ dependencies:
66
- field.storage.paragraph.field_remote_events
77
- paragraphs.paragraphs_type.event_list
88
_core:
9-
default_config_hash: MlPqj3UK1sh8Q_ocrr9beEo5ZuLzzeXXDn4QPV5EGbg
9+
default_config_hash: wz7a1ma56v-vMw8QiUY3AxztYVoDF6xKj0aO_yA0d_4
1010
id: paragraph.event_list.field_remote_events
1111
field_name: field_remote_events
1212
entity_type: paragraph
1313
bundle: event_list
1414
label: 'Remote events'
15-
description: 'Show "list only remote events" filter. Do not use at the same time with the "Event location" filter.'
15+
description: 'Show "list only remote events" filter.'
1616
required: false
1717
translatable: false
1818
default_value:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
label: Tapahtumapaikka
2-
description: 'Näytä "tapahtumapaikka" -suodatin. Älä käytä yhtä aikaa "Etätapahtumat" -suodattimen kanssa. Tapahtumapaikat pitää valita tapahtumakalenterista ennen kuin kopioit linkin.'
2+
description: 'Näytä "tapahtumapaikka" -suodatin.Tapahtumapaikat pitää valita tapahtumakalenterista ennen kuin kopioit linkin.'
33
settings:
44
on_label: Kyllä
55
off_label: Ei
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
label: Etätapahtumat
2-
description: 'Näytä "näytä vain etätapahtumat" -suodatin. Älä käytä yhtä aikaa "Tapahtumapaikka" -suodattimen kanssa.'
2+
description: 'Näytä "näytä vain etätapahtumat" -suodatin.'
33
settings:
44
on_label: Kyllä
55
off_label: Ei

conf/cmi/oembed_providers.provider.icareus_suite.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ langcode: en
33
status: true
44
dependencies: { }
55
_core:
6-
default_config_hash: lAatlgWI8urSMlM-wvNsFE3cwVWq9Y7cA6WIH6q5o5Y
6+
default_config_hash: cx73uI3KIlc_zavusNtbn2_vDJwmNJhxgorInBFhRAw
77
id: icareus_suite
88
label: 'Icareus Suite'
99
provider_url: 'https://www.helsinkikanava.fi'
@@ -44,3 +44,11 @@ endpoints:
4444
formats:
4545
json: true
4646
xml: false
47+
-
48+
schemes:
49+
- 'https://players.icareus.com/helsinkikanava/embed/vod/*'
50+
url: 'https://suite.icareus.com/api/oembed'
51+
discovery: false
52+
formats:
53+
json: true
54+
xml: false

docker/openshift/Dockerfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@ COPY / /var/www/html/
55
WORKDIR /var/www/html
66
RUN composer install --no-progress --profile --prefer-dist --no-interaction --no-dev --optimize-autoloader
77

8-
# Copy ALL deploy scripts
8+
# Copy custom entrypoints.
9+
# @see https://github.com/City-of-Helsinki/drupal-docker-images/tree/main/openshift/drupal
10+
RUN mkdir -p /crons /entrypoints /deploy
911
COPY docker/openshift/entrypoints/ /entrypoints
10-
RUN chmod +x /entrypoints/*
12+
COPY docker/openshift/crons/ /crons
13+
COPY docker/openshift/deploy /deploy
14+
RUN chmod +x /entrypoints/* /deploy/* /crons/*
1115

1216
COPY docker/openshift/init.sh /
1317

14-
# Copy cron scripts
15-
RUN mkdir /crons
16-
COPY docker/openshift/crons/ /crons
17-
COPY docker/openshift/cron-entrypoint.sh /usr/local/bin/cron-entrypoint
18-
RUN chmod +x /crons/* /usr/local/bin/cron-entrypoint
19-
2018
# Copy nginx overrides.
2119
COPY docker/openshift/custom.locations /etc/nginx/conf.d/custom.locations

docker/openshift/cron-entrypoint.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
source /init.sh
4+
5+
if [ -f "../docker/openshift/preflight/preflight.php" ]; then
6+
echo "Running preflight checks ..."
7+
if ! php ../docker/openshift/preflight/preflight.php; then
8+
exit 1
9+
fi
10+
fi
11+

0 commit comments

Comments
 (0)