rename container name prefix from pgdp- to dp-
This commit is contained in:
@@ -10,9 +10,9 @@ Run as following:
|
||||
which does the same thing as:
|
||||
```
|
||||
docker network create dproofreaders
|
||||
docker run -d --network=dproofreaders --name=pgdp-sql -e 'MYSQL_ROOT_PASSWORD=dp_password' mariadb:10.2
|
||||
docker run -d --network=dproofreaders --name=pgdp-web fshahriar/dproofreaders
|
||||
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' pgdp-web # server-ip
|
||||
docker run -d --network=dproofreaders --name=dp-sql -e 'MYSQL_ROOT_PASSWORD=dp_password' mariadb:10.2
|
||||
docker run -d --network=dproofreaders --name=dp-web fshahriar/dproofreaders
|
||||
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' dp-web # server-ip
|
||||
```
|
||||
|
||||
Visit the site at `http://<server-ip>/`.
|
||||
|
||||
@@ -6,7 +6,7 @@ SERVER=localhost
|
||||
USERNAME=admin
|
||||
|
||||
sql(){
|
||||
mysql -h pgdp-sql --password=dp_password
|
||||
mysql -h dp-sql --password=dp_password
|
||||
}
|
||||
|
||||
curl "http://${SERVER}/c/accounts/addproofer.php" \
|
||||
|
||||
@@ -4,7 +4,7 @@ SERVER=localhost
|
||||
|
||||
DBPARAMS=(
|
||||
--data-urlencode "dbms=mysqli" \
|
||||
--data-urlencode "dbhost=pgdp-sql" \
|
||||
--data-urlencode "dbhost=dp-sql" \
|
||||
--data-urlencode "dbport=" \
|
||||
--data-urlencode "dbname=phpbb" \
|
||||
--data-urlencode "dbuser=root" \
|
||||
|
||||
@@ -6,11 +6,11 @@ DOCROOT=/var/www/html
|
||||
SETUPDIR=${DOCROOT}/c/SETUP
|
||||
|
||||
sql(){
|
||||
mysql -h pgdp-sql --password=dp_password
|
||||
mysql -h dp-sql --password=dp_password
|
||||
}
|
||||
|
||||
echo waiting for mysql server...
|
||||
while ! mysqladmin ping -h pgdp-sql --password=dp_password --silent; do
|
||||
while ! mysqladmin ping -h dp-sql --password=dp_password --silent; do
|
||||
sleep 1
|
||||
done
|
||||
echo got ping back from mysql
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
# See SETUP/installation.txt for instructions on how to create the database
|
||||
# and user.
|
||||
|
||||
_DB_SERVER=pgdp-sql
|
||||
_DB_SERVER=dp-sql
|
||||
_DB_USER=root
|
||||
_DB_PASSWORD=dp_password
|
||||
_DB_NAME=dp_db
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// phpBB 3.0.x auto-generated configuration file
|
||||
// Do not change anything in this file!
|
||||
$dbms = 'mysqli';
|
||||
$dbhost = 'pgdp-sql';
|
||||
$dbhost = 'dp-sql';
|
||||
$dbport = '';
|
||||
$dbname = 'phpbb';
|
||||
$dbuser = 'root';
|
||||
|
||||
12
manage.bash
12
manage.bash
@@ -38,7 +38,7 @@ containerip(){
|
||||
}
|
||||
|
||||
showurl(){
|
||||
echo http://$(containerip pgdp-web)/
|
||||
echo http://$(containerip dp-web)/
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
@@ -46,8 +46,8 @@ url)
|
||||
showurl
|
||||
;;
|
||||
kill)
|
||||
docker stop pgdp-sql pgdp-web
|
||||
docker rm pgdp-sql pgdp-web
|
||||
docker stop dp-sql dp-web
|
||||
docker rm dp-sql dp-web
|
||||
;;
|
||||
build)
|
||||
docker build -t ${DP_IMAGE}:${VERSION} -t ${DP_IMAGE}:latest .
|
||||
@@ -62,12 +62,12 @@ run)
|
||||
fi
|
||||
volarg="-v $1:/var/www/html/c"
|
||||
fi
|
||||
runimg pgdp-sql -e 'MYSQL_ROOT_PASSWORD=dp_password' mariadb:10.2
|
||||
runimg pgdp-web $volarg $DP_IMAGE
|
||||
runimg dp-sql -e 'MYSQL_ROOT_PASSWORD=dp_password' mariadb:10.2
|
||||
runimg dp-web $volarg $DP_IMAGE
|
||||
showurl
|
||||
;;
|
||||
sql)
|
||||
mysql -h $(containerip pgdp-sql) -u root --password=dp_password
|
||||
mysql -h $(containerip dp-sql) -u root --password=dp_password
|
||||
;;
|
||||
*)
|
||||
echo usage: $0 '<cmd> [args...]'
|
||||
|
||||
Reference in New Issue
Block a user