Commit 1ce86cfc authored by Ernesto Rodriguez Ortiz's avatar Ernesto Rodriguez Ortiz
Browse files

docker: Add a new file to define all variables needed by installations scripts

Using this file in site-install and jenkins-post-build
parent c6009491
#!/bin/bash
# default-vars
#
# This file contains vars definitions that are used by site-install and jenkins-post-build.sh
#
################################
# Apache user #
################################
APACHE=www-data
################################
# Apache workspace #
################################
WORKSPACE=/var/www
################################
# Password for MySQL root user #
################################
MYSQL_PASS="mysqlrootpass"
################################
# Informations for MySQL user #
# & website database #
################################
DB_USER=drupal_user
DB_PASS=drupal_pass
DB_NAME=drupal_database
################################
# Drupal site name #
################################
SITE_NAME="Drupal app"
################################
# Drupal administrator account #
################################
SITE_ADMIN_NAME="admin"
SITE_ADMIN_PASS="admin"
################################
# Drupal default environment #
################################
SITE_ENVIRONMENT=local
################################
# Drupal root directory #
################################
DRUPAL_ROOT=$WORKSPACE/src/drupal
################################
# Drupal customs modules #
# directory #
################################
CUSTOMDIR=$DRUPAL_ROOT/sites/all/modules/custom
################################
# Drush script location #
################################
DRUSH=`which drush`
################################
# Drush aliases location #
################################
DRUSH_ALIASES=$DRUPAL_ROOT/sites/all/drush
################################
# User that execute the script #
################################
ME=`whoami`
#!/bin/bash
set -e
# call default vars
source "deploy/default-vars"
# Check this for long args example https://gist.github.com/cosimo/3760587
# Get params from build
TAG=$1
# Change this if needed
#MYSQL_PASS=`pwgen -c -n -1 12`
#DB_USER=drupal
#DB_PASS=`pwgen -c -n -1 12`
#DB_NAME=drupaldb
WORKSPACE=/var/www
DRUPAL_ROOT="$WORKSPACE"/src/drupal
CUSTOMDIR=$DRUPAL_ROOT/sites/all/modules/custom
# Do not edit after
EN_CODER=0
......
......@@ -11,21 +11,13 @@
# set -x
# set -e
DRUSH=`which drush`
ME=`whoami`
APACHE=www-data
MYSQL_PASS=r00tp4ssw0rd
DB_USER=dev
DB_PASS=dev
DB_NAME=sfl_boilerplate
WORKSPACE=/var/www
DRUPAL_ROOT=$WORKSPACE/src/drupal
DRUSH_ALIASES=$DRUPAL_ROOT/sites/all/drush
# call default vars
source "deploy/default-vars"
# set default environment if not passed as parameter
DRUPAL_ENV=$1
if [ -z "$1" ]; then
DRUPAL_ENV=local
DRUPAL_ENV=$SITE_ENVIRONMENT
fi
# delete drupal root if it exist
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment