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
b0f78c00
Commit
b0f78c00
authored
Sep 17, 2015
by
Tsubasa Namiki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Dockerfile and entrypoint.sh for Restyaboard v0.1.2
parent
fe2e28e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
Dockerfile
restyaboard/Dockerfile
+1
-1
docker-entrypoint.sh
restyaboard/docker-entrypoint.sh
+2
-0
No files found.
restyaboard/Dockerfile
View file @
b0f78c00
...
@@ -36,7 +36,7 @@ WORKDIR /usr/share/nginx/html
...
@@ -36,7 +36,7 @@ WORKDIR /usr/share/nginx/html
RUN
cp restyaboard.conf /etc/nginx/conf.d
RUN
cp restyaboard.conf /etc/nginx/conf.d
RUN
cp
-R
media /tmp
RUN
cp
-R
media /tmp
RUN
npm install
RUN
npm install
RUN
grunt build
RUN
grunt build
:live
RUN
echo
'*/5 * * * * php /usr/share/nginx/htmlserver/php/R/shell/cron.php'
\
RUN
echo
'*/5 * * * * php /usr/share/nginx/htmlserver/php/R/shell/cron.php'
\
>
/var/spool/cron/root
>
/var/spool/cron/root
...
...
restyaboard/docker-entrypoint.sh
View file @
b0f78c00
...
@@ -4,6 +4,8 @@ set -e
...
@@ -4,6 +4,8 @@ set -e
if
[
"
$1
"
=
'start'
]
;
then
if
[
"
$1
"
=
'start'
]
;
then
# config
# config
sed
-i
"s/^.*'R_DB_NAME'.*
$/
define('R_DB_NAME', 'restyaboard');/g"
\
/usr/share/nginx/html/server/php/R/config.inc.php
sed
-i
"s/^.*'R_DB_USER'.*
$/
define('R_DB_USER', 'restya');/g"
\
sed
-i
"s/^.*'R_DB_USER'.*
$/
define('R_DB_USER', 'restya');/g"
\
/usr/share/nginx/html/server/php/R/config.inc.php
/usr/share/nginx/html/server/php/R/config.inc.php
sed
-i
"s/^.*'R_DB_PASSWORD'.*
$/
define('R_DB_PASSWORD', '
${
POSTGRES_ENV_POSTGRES_PASSWORD
}
');/g"
\
sed
-i
"s/^.*'R_DB_PASSWORD'.*
$/
define('R_DB_PASSWORD', '
${
POSTGRES_ENV_POSTGRES_PASSWORD
}
');/g"
\
...
...
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