Skip to content

Commit 0da11c3

Browse files
authored
Merge pull request #24 from OS2web/develop
BKDK-399, BKDK-438, BKDK-446, BKDK-452, BKDK-449
2 parents 1b2613c + b1c95de commit 0da11c3

File tree

22 files changed

+543
-80
lines changed

22 files changed

+543
-80
lines changed

.docker/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
logs/*
2+
!logs/.gitkeep
3+
ssh/*
4+
!ssh/.gitkeep
5+
php/logs/*.log
6+
mariadb/data/*
7+
!mariadb/data/.gitkeep
8+
solr_data/*
9+
!solr_data/.gitkeep

.docker/os2web/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ RUN echo '<?php $settings["project_env"] = PROD_ENV; ' > /opt/drupal/web/sites/d
4949
mkdir -p private; \
5050
# Adding sync directory.
5151
mkdir -p config/sync; \
52+
# Adding translations directory.
53+
mkdir -p translations; \
5254
# Adjusting ownership
53-
chown -R www-data:www-data /opt/drupal/private /opt/drupal/files /opt/drupal/config/sync /opt/drupal/tmp /opt/drupal/logs; \
54-
chmod g+s -R /opt/drupal/private /opt/drupal/files /opt/drupal/config/sync
55+
chown -R www-data:www-data /opt/drupal/private /opt/drupal/files /opt/drupal/config/sync /opt/drupal/tmp /opt/drupal/logs /opt/drupal/translations; \
56+
chmod g+s -R /opt/drupal/private /opt/drupal/files /opt/drupal/translations /opt/drupal/config/sync
5557

5658
# Adding custom apache configuration with PHP value and log settings.
5759
COPY apache/000-default.conf /etc/apache2/sites-enabled/000-default.conf

.docker/ssh/.gitkeep

Whitespace-only changes.

.env.example

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,17 @@
3030
## Theme that is going to be used on installation process.
3131
# OS2WEB_THEME=
3232

33-
34-
## Variable used only in docker-compose.yaml
35-
# OS2WEB_TAG=
36-
3733
## Migrate DB mysql variables.
3834
# MIGRATE_MYSQL_DATABASE=
3935
# MIGRATE_MYSQL_HOSTNAME=
4036
# MIGRATE_MYSQL_PASSWORD=
4137
# MIGRATE_MYSQL_PORT=
4238
# MIGRATE_MYSQL_USER=
4339

40+
## Variable used only in docker-compose.yaml
41+
# OS2WEB_TAG=
42+
# Meeting folder mounting credentials
43+
# OS2WEB_MEETINGS_MNT_HOST=
44+
# OS2WEB_MEETINGS_MNT_SHARES=
4445
## Port that is used on host machine for reaching out application
4546
# WEB_SERVER_PORT=8098

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,3 @@ tmp/*
5151
!tmp/.gitkeep
5252
sessions/*
5353
!sessions/.gitkeep
54-
55-
.docker/logs/*
56-
!.docker/logs/.gitkeep
57-
.docker/php/logs/*.log
58-
.docker/mariadb/data/*
59-
!.docker/mariadb/data/.gitkeep
60-
.docker/solr_data/*
61-
!.docker/solr_data/.gitkeep

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@
151151
"drupal/core": {
152152
"Notice: Undefined index: value in Drupal\\views\\Plugin\\views\\filter\\NumericFilter->acceptExposedInput()" : "https://www.drupal.org/files/issues/2020-06-04/2825860-exposed-filter-notice-38.patch",
153153
"Allow edit Media items from Media Library modal dialog in CKEditor" : "https://www.drupal.org/files/issues/2021-04-21/3168868-13_0.patch"
154+
},
155+
"drupal/printable": {
156+
"3214729 PDF filename is generated with it's location" : "https://git.drupalcode.org/issue/printable-3214729/-/commit/cbc98dbe864f82b4cc1da110d88097d0c4740bb9.patch"
154157
}
155158
}
156159
}

composer.lock

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

docker-compose.yaml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ volumes:
1111
driver: local
1212
os2web:
1313
driver: local
14-
1514
services:
1615

1716
# General application container.
@@ -93,13 +92,25 @@ services:
9392
- /bin/bash
9493
- -c
9594
- "drush status --root=/opt/drupal"
96-
environment:
97-
## Environment sensitive settings. See .env file.
98-
- MYSQL_HOSTNAME=${MYSQL_HOSTNAME}
99-
- MYSQL_ROOT_PASSWORD=root
100-
- MYSQL_DATABASE=${MYSQL_DATABASE}
101-
- MYSQL_USER=${MYSQL_USER}
102-
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
103-
- MYSQL_PORT=${MYSQL_PORT}
104-
- DRUPAL_HASH_SALT=${DRUPAL_HASH_SALT}
105-
- OS2WEB_THEME=${OS2WEB_THEME}
95+
env_file:
96+
- .env
97+
98+
agenda_import:
99+
# Check agenda file container.
100+
image: dkbellcom/os2web8:${OS2WEB_TAG}
101+
container_name: agenda_import
102+
volumes:
103+
- ./files:/opt/drupal/files
104+
- ./:/opt/drupal
105+
- ./private:/opt/drupal/private
106+
env_file:
107+
- .env
108+
networks:
109+
- backend
110+
entrypoint:
111+
- /bin/bash
112+
- -c
113+
command:
114+
- "mkdir -p mnt/Testshares; \
115+
cat /opt/drupal/private/mntCred; \
116+
php /opt/drupal/scripts/dagsorden/check_shares.php -h=${OS2WEB_MEETINGS_MNT_HOST} -s=${OS2WEB_MEETINGS_MNT_SHARES} -m=/opt/drupal/mnt -c=/opt/drupal/private/mntCred -d"

0 commit comments

Comments
 (0)