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
02be5038
Commit
02be5038
authored
Mar 27, 2017
by
Christophe Angeli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add s6
parent
6efab5a1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
10 deletions
+35
-10
Dockerfile
Dockerfile
+9
-0
docker-entrypoint.sh
docker-entrypoint.sh
+20
-10
finish
services.d/nginx/finish
+3
-0
run
services.d/nginx/run
+3
-0
No files found.
Dockerfile
View file @
02be5038
...
@@ -22,6 +22,15 @@ RUN apk add --update \
...
@@ -22,6 +22,15 @@ RUN apk add --update \
unzip
&&
\
unzip
&&
\
rm
-rf
/var/cache/apk/
*
rm
-rf
/var/cache/apk/
*
ADD
https://github.com/just-containers/s6-overlay/releases/download/v1.19.1.1/s6-overlay-amd64.tar.gz /tmp/
RUN
tar
xzf /tmp/s6-overlay-amd64.tar.gz
-C
/
&&
\
mkdir
-p
/etc/services.d/nginx/finish
&&
\
mkdir
-p
/etc/services.d/nginx/run
&&
\
mkdir
-p
/etc/services.d/postfix/finish
&&
\
mkdir
-p
/etc/services.d/postfix/run
&&
\
# deploy app and extensions
# deploy app and extensions
RUN
curl
-L
-s
-o
/tmp/restyaboard.zip https://github.com/RestyaPlatform/board/releases/download/
${
RESTYABOARD_VERSION
}
/board-
${
RESTYABOARD_VERSION
}
.zip
&&
\
RUN
curl
-L
-s
-o
/tmp/restyaboard.zip https://github.com/RestyaPlatform/board/releases/download/
${
RESTYABOARD_VERSION
}
/board-
${
RESTYABOARD_VERSION
}
.zip
&&
\
mkdir
-p
${
ROOT_DIR
}
&&
\
mkdir
-p
${
ROOT_DIR
}
&&
\
...
...
docker-entrypoint.sh
View file @
02be5038
#!/bin/
ba
sh
#!/bin/sh
set
-e
set
-e
if
[
"
$1
"
=
'start'
]
;
then
if
[
"
$1
"
=
'start'
]
;
then
...
@@ -61,17 +61,27 @@ if [ "$1" = 'start' ]; then
...
@@ -61,17 +61,27 @@ if [ "$1" = 'start' ]; then
set
-e
set
-e
# cron shell
# cron shell
echo
"*/5 * * * *
${
ROOT_DIR
}
/server/php/shell/instant_email_notification.sh"
>>
/var/spool/cron/crontabs/root
cp
${
ROOT_DIR
}
/server/php/shell/instant_email_notification.sh
${
ROOT_DIR
}
/server/php/shell/instant_email_notification
echo
"0 * * * *
${
ROOT_DIR
}
/server/php/shell/periodic_email_notification.sh"
>>
/var/spool/cron/crontabs/root
cp
${
ROOT_DIR
}
/server/php/shell/periodic_email_notification.sh
${
ROOT_DIR
}
/server/php/shell/periodic_email_notification
echo
"*/30 * * * *
${
ROOT_DIR
}
/server/php/shell/imap.sh"
>>
/var/spool/cron/crontabs/root
cp
${
ROOT_DIR
}
/server/php/shell/imap.sh
${
ROOT_DIR
}
/server/php/shell/imap
echo
"*/5 * * * *
${
ROOT_DIR
}
/server/php/shell/webhook.sh"
>>
/var/spool/cron/crontabs/root
cp
${
ROOT_DIR
}
/server/php/shell/webhook.sh
${
ROOT_DIR
}
/server/php/shell/webhook
echo
"*/5 * * * *
${
ROOT_DIR
}
/server/php/shell/card_due_notification.sh"
>>
/var/spool/cron/crontabs/root
cp
${
ROOT_DIR
}
/server/php/shell/card_due_notification.sh
${
ROOT_DIR
}
/server/php/shell/card_due_notification
sed
-i
"s#bin/bash#bin/sh#"
${
ROOT_DIR
}
/server/php/shell/instant_email_notification
sed
-i
"s#bin/bash#bin/sh#"
${
ROOT_DIR
}
/server/php/shell/periodic_email_notification
sed
-i
"s#bin/bash#bin/sh#"
${
ROOT_DIR
}
/server/php/shell/imap
sed
-i
"s#bin/bash#bin/sh#"
${
ROOT_DIR
}
/server/php/shell/webhook
sed
-i
"s#bin/bash#bin/sh#"
${
ROOT_DIR
}
/server/php/shell/card_due_notification
echo
"*/5 * * * *
${
ROOT_DIR
}
/server/php/shell/instant_email_notification"
>>
/var/spool/cron/crontabs/root
echo
"0 * * * *
${
ROOT_DIR
}
/server/php/shell/periodic_email_notification"
>>
/var/spool/cron/crontabs/root
echo
"*/30 * * * *
${
ROOT_DIR
}
/server/php/shell/imap"
>>
/var/spool/cron/crontabs/root
echo
"*/5 * * * *
${
ROOT_DIR
}
/server/php/shell/webhook"
>>
/var/spool/cron/crontabs/root
echo
"*/5 * * * *
${
ROOT_DIR
}
/server/php/shell/card_due_notification"
>>
/var/spool/cron/crontabs/root
# service start
# service start
service cron start
crond
service php7.0-fpm start
rc-
service php7.0-fpm start
service nginx start
rc-
service nginx start
service postfix start
rc-
service postfix start
# tail log
# tail log
exec
tail
-f
/var/log/nginx/access.log /var/log/nginx/error.log
exec
tail
-f
/var/log/nginx/access.log /var/log/nginx/error.log
...
...
services.d/nginx/finish
0 → 100755
View file @
02be5038
#!/bin/sh
s6-svscanctl
-t
/var/run/s6/services
services.d/nginx/run
0 → 100755
View file @
02be5038
#!/usr/bin/with-contenv sh
exec
nginx
-g
'daemon off;'
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