File tree Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ There are available following environment settings:
29
29
* WAIT_ON_MYSQL - flag is used to set delay for getting MYSQL service ready
30
30
* PRINT_STATUS - Runs "drush status" command
31
31
* DEPLOYMENT - Runs deployment action: drush updb, drush cr etc
32
- * INSTALL_OS2WEB - Runs installation process. ** WARNING:** It will drop existing database and reinstall Drupal.
33
32
34
33
## Build image
35
34
@@ -42,3 +41,27 @@ Example:
42
41
```
43
42
44
43
` --push ` - when you this option build will be pushed to docker hub.
44
+
45
+ ## Install Drupal
46
+
47
+ In case you need to install OS2Web through docker image on new environment,
48
+ it should happen as separate deployment procedure with special docker image
49
+ settings.
50
+
51
+ * Checkout repository to separate branch ` [recent-git-tag]-install `
52
+ * Add ` source /install.sh ` call above deployment section.
53
+ * Commit changes and create additional release tag ` [recent-git-tag]-install ` .
54
+ So your tag, for example, will look like ` 0.0.2-install `
55
+
56
+ ```
57
+ ....
58
+ # Drupal installation step
59
+ source /install.sh
60
+
61
+ if [ "$DEPLOYMENT" = true ]; then
62
+ echo "Running deployment"
63
+ .....
64
+
65
+ ```
66
+
67
+ See detailed steps for install procedure ` .docker/os2web/install.sh `
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ if [ "$PRINT_STATUS" = true ]; then
10
10
$DRUSH status
11
11
fi ;
12
12
13
- source /install.sh
14
-
15
13
if [ " $DEPLOYMENT " = true ]; then
16
14
echo " Running deployment"
17
15
export DRUSH=" drush --root=/opt/drupal"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ volumes:
13
13
services :
14
14
15
15
php :
16
- image : dkbellcom/os2web8:0.0.1
16
+ image : dkbellcom/os2web8:0.0.2
17
17
container_name : php
18
18
volumes :
19
19
# - ./:/opt/drupal
@@ -45,8 +45,6 @@ services:
45
45
- PRINT_STATUS=true
46
46
# Runs deployment action: drush updb, drush cr etc.
47
47
- DEPLOYMENT=true
48
- # WARNING: It will drop existing database and reinstall Drupal.
49
- - INSTALL_OS2WEB=true
50
48
51
49
mariadb :
52
50
image : mariadb:latest
You can’t perform that action at this time.
0 commit comments