Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
Restyaboard
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Ali Arshad
Restyaboard
Commits
1fc77250
Commit
1fc77250
authored
Sep 18, 2015
by
Tsubasa Namiki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip deploying when restart container
parent
aa1929f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
docker-entrypoint.sh
restyaboard/docker-entrypoint.sh
+13
-11
No files found.
restyaboard/docker-entrypoint.sh
View file @
1fc77250
...
...
@@ -3,16 +3,17 @@
set
-e
if
[
"
$1
"
=
'start'
]
;
then
# provision
cd
/tmp
curl
-L
-o
restyaboard.tar.gz https://github.com/RestyaPlatform/board/archive/
${
RESTYABOARD_VERSION
}
.tar.gz
mkdir html
&&
tar
xzvf restyaboard.tar.gz
-C
html
--strip-components
1
cp
-rf
html /usr/share/nginx/
cd
/usr/share/nginx/html
cp restyaboard.conf /etc/nginx/conf.d
npm install
grunt build:live
echo
'*/5 * * * * php /usr/share/nginx/htmlserver/php/R/shell/cron.php'
>
/var/spool/cron/root
# delopy
if
[
!
-e
/usr/share/nginx/html/restyaboard.conf
]
;
then
cd
/tmp
curl
-L
-o
restyaboard.tar.gz https://github.com/RestyaPlatform/board/archive/
${
RESTYABOARD_VERSION
}
.tar.gz
mkdir html
&&
tar
xzvf restyaboard.tar.gz
-C
html
--strip-components
1
cp
-rf
html /usr/share/nginx/
cd
/usr/share/nginx/html
cp restyaboard.conf /etc/nginx/conf.d
npm install
grunt build:live
fi
# config
sed
-i
"s/^.*'R_DB_NAME'.*
$/
define('R_DB_NAME', 'restyaboard');/g"
\
...
...
@@ -25,8 +26,9 @@ if [ "$1" = 'start' ]; then
/usr/share/nginx/html/server/php/R/config.inc.php
sed
-i
"s/^.*'R_DB_PORT'.*
$/
define('R_DB_PORT', '
${
POSTGRES_PORT_5432_TCP_PORT
}
');/g"
\
/usr/share/nginx/html/server/php/R/config.inc.php
echo
'*/5 * * * * php /usr/share/nginx/htmlserver/php/R/shell/cron.php'
>
/var/spool/cron/root
# media
# media
chmod
-R
go+w /usr/share/nginx/html/media
chmod
-R
go+w /usr/share/nginx/html/client/img
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment