Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12062
run-test-container.sh
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
dereckson
Nov 8 2015, 23:54
2015-11-08 23:54:02 (UTC+0)
Size
955 B
Referenced Files
None
Subscribers
None
run-test-container.sh
View Options
#!/bin/sh
INSTANCE_NAME
=
phabtest
DOMAIN
=
$INSTANCE_NAME
.nasqueron.org
DATA_DIRECTORY
=
/data/
$INSTANCE_NAME
MYSQL_INSTANCE
=
acquisitariat
PHABRICATOR_URL
=
http://
$DOMAIN
PHABRICATOR_TITLE
=
"Nasqueron DevCentral"
PHABRICATOR_ALT_FILE_DOMAIN
=
"http://phabricator-files-for-devcentral-nasqueron.spacetechnology.net"
# Checks container isn't running
docker-container-status
$INSTANCE_NAME
> /dev/null
if
[
"
$?
"
-lt
2
]
;
then
echo
"Container is already running."
echo
"To force relaunch, try docker stop
$INSTANCE_NAME
; docker rm
$INSTANCE_NAME
;
$0
"
exit
1
fi
# Create container
docker run -t -d
\
--link
$MYSQL_INSTANCE
:mysql
\
-v
$DATA_DIRECTORY
/repo:/var/repo
\
-v
$DATA_DIRECTORY
/conf:/opt/phabricator/conf
\
-p
8080
:80
\
-e
PHABRICATOR_URL
=
$PHABRICATOR_URL
\
-e
PHABRICATOR_TITLE
=
"
$PHABRICATOR_TITLE
"
\
-e
PHABRICATOR_ALT_FILE_DOMAIN
=
"
$PHABRICATOR_ALT_FILE_DOMAIN
"
\
-e
PHABRICATOR_DOMAIN
=
$DOMAIN
\
--name
$INSTANCE_NAME
nasqueron/phabricator
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10742
Default Alt Text
run-test-container.sh (955 B)
Attached To
Mode
P123 run-test-container.sh
Attached
Detach File
Event Timeline
Log In to Comment