forked from opi/backdrop-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed taskman and introduced secrets via env vars
- Loading branch information
1 parent
682f616
commit b1e7513
Showing
8 changed files
with
90 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,8 @@ docker-compose.*.yml | |
|
||
/.mysql_history | ||
/.bash_history | ||
|
||
.env | ||
\#* | ||
.\#* | ||
mysql/ |
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 |
---|---|---|
@@ -1,23 +1,13 @@ | ||
# Install Backdrop | ||
## Install Backdrop | ||
|
||
* `cp template.env .env` and edit | ||
* `docker-compose up -d` | ||
* `docker-compose exec php composer install` | ||
* `docker-compose exec php ./vendor/bin/taskman backdrop:install` | ||
|
||
## Play with drush | ||
|
||
* `docker-compose exec php ./vendor/bin/drush --root=build status` | ||
* `docker exec backdrop ./vendor/bin/drush --root=build status` | ||
|
||
Backdrop should be available at: http://127.0.0.1:8080 | ||
## Access in browser | ||
|
||
Login is `admin` | ||
|
||
Password is `admin` | ||
|
||
## Available Taskman commands: | ||
|
||
To install Backdrop | ||
* `docker-compose exec php ./vendor/bin/taskman backdrop:install` | ||
|
||
To remove the files and database (_usually before installing_) | ||
* `docker-compose exec php ./vendor/bin/taskman backdrop:reset` | ||
* <http://localhost:8080> | ||
* admin user is admin, password set in .env |
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 |
---|---|---|
@@ -1,12 +1,9 @@ | ||
{ | ||
{ | ||
"name": "backdrop-docker/backdrop", | ||
"description": "Run Backdrop using Docker containers.", | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"require-dev": { | ||
"backdrop/backdrop": "^1", | ||
"backdrop/drush": "^1", | ||
"phptaskman/drupal": "^0.1", | ||
"drush/drush": "^8.2" | ||
"require": { | ||
"backdrop/backdrop": "1.13.2-rc2", | ||
"backdrop/drush": "1.0.0", | ||
"drush/drush": "8.3.0" | ||
} | ||
} |
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
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,33 @@ | ||
#!/bin/bash | ||
|
||
# this entrpoint to docker container for backdrop will check for | ||
# backdrop webserver files and if they don't exist then it will | ||
# install via composer and copy the files to the relevant places | ||
# | ||
# the environment variables are created on container creation and for | ||
# development purposes are stored in .env file - see template.env | ||
|
||
install_backdrop(){ | ||
./vendor/bin/drush cc drush | ||
cp -r ./vendor/backdrop/backdrop ./build | ||
cp -r ./vendor/backdrop/drush ./.drush/commands | ||
|
||
./vendor/bin/drush --root=build si \ | ||
[email protected] \ | ||
--db-url=mysql://$BACKDROP_DB_USER:$BACKDROP_DB_PASSWORD@$BACKDROP_DB_HOST:$BACKDROP_DB_PORT/$BACKDROP_DB_NAME | ||
|
||
./vendor/bin/drush --root=build user-password admin --password=$BACKDROP_ADMIN_PASSWORD | ||
} | ||
|
||
# let's check to see if composer has already installed the files | ||
if [ ! -f ./vendor/backdrop/backdrop/settings.php ]; then | ||
composer install | ||
fi | ||
|
||
# if our the webserver files don't exist then we need to deploy them | ||
# from the container | ||
if [ ! -f /var/www/html/build/settings.php ]; then | ||
install_backdrop | ||
fi | ||
|
||
php-fpm # -F -R |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
BACKDROP_DB_HOST=my_backdrop_mysql_container | ||
BACKDROP_DB_NAME=my_backdrop_db_name | ||
BACKDROP_DB_PORT=3306 | ||
BACKDROP_DB_ROOT_PASSWORD=super_secret | ||
BACKDROP_DB_USER=my_backdrop_db_username | ||
BACKDROP_DB_USER_PASSWORD=another_secret | ||
BACKDROP_PORT=80 | ||
BACKDROP_ADMIN_PASS=webadminpassword |