-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
:: Note: LOCAL can be something else for several sites running from the console | ||
:: eg. drupal8_local.bat LOCAL | ||
@echo off | ||
|
||
mkdir %1%\web | ||
mkdir %1%\data | ||
|
||
:: Create a random LOCAL ports for the container | ||
@SET /a "WEBPORT = %RANDOM% * (50000 - 10000 + 1) / 32768 + 10000" | ||
@SET /a "DBPORT = %RANDOM% * (50000 - 10000 + 1) / 32768 + 10000" | ||
|
||
echo **** Starting Drupal using persistence on %1%/ folder **** | ||
echo Using MYSQL PORT: %DBPORT% | ||
echo Using HTTP URL : http://localhost:%WEBPORT% | ||
|
||
:: Create a network | ||
docker network create --subnet=10.8.8.0/16 drupalnet | ||
|
||
:: Run the container | ||
docker run -it --net drupalnet --volume=%cd%\%1\data:/var/lib/mysql --volume=%cd%\%1:/var/www/html -p %WEBPORT%:80 -p %DBPORT%:3306 ricardoamaro/drupal8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
:: Create a random local ports for the container | ||
@SET /a "WEBPORT = %RANDOM% * (50000 - 10000 + 1) / 32768 + 10000" | ||
@SET /a "DBPORT = %RANDOM% * (50000 - 10000 + 1) / 32768 + 10000" | ||
|
||
echo **** Starting Drupal Trial Test Run with ephemeral data **** | ||
echo Using MYSQL PORT: %DBPORT% | ||
echo Using HTTP URL : http://localhost:%WEBPORT% | ||
|
||
:: Create a network | ||
docker network create --subnet=10.8.8.0/16 drupalnet | ||
|
||
:: Run the container | ||
docker run -it --net drupalnet -p ${WEBPORT}:80 -p ${DBPORT}:3306 ricardoamaro/drupal8 |