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
5e30584b
Commit
5e30584b
authored
Mar 27, 2017
by
Christophe Angeli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some services
parent
02be5038
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
8 deletions
+18
-8
Dockerfile
Dockerfile
+2
-6
docker-entrypoint.sh
docker-entrypoint.sh
+2
-0
run
services.d/nginx/run
+1
-2
run
services.d/php7.0-fpm/run
+3
-0
run
services.d/postfix/run
+10
-0
No files found.
Dockerfile
View file @
5e30584b
...
...
@@ -23,13 +23,9 @@ RUN apk add --update \
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
&&
\
RUN
tar
xzf /tmp/s6-overlay-amd64.tar.gz
-C
/
COPY
services.d /
# 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
&&
\
...
...
docker-entrypoint.sh
View file @
5e30584b
...
...
@@ -85,6 +85,8 @@ if [ "$1" = 'start' ]; then
# tail log
exec
tail
-f
/var/log/nginx/access.log /var/log/nginx/error.log
/init
fi
exec
"
$@
"
services.d/nginx/run
View file @
5e30584b
#!/
usr/bin/with-contenv
sh
#!/
bin/
sh
exec
nginx
-g
'daemon off;'
services.d/php7.0-fpm/run
0 → 100644
View file @
5e30584b
#!/bin/sh
exec
/usr/bin/php-fpm
-R
--nodaemonize
--force-stderr
--fpm-config
/etc/php/php-fpm.conf
--pid
/var/run/php-fpm.pid
\ No newline at end of file
services.d/postfix/run
0 → 100644
View file @
5e30584b
#!/bin/sh
command_directory
=
$(
postconf
-h
command_directory
)
daemon_directory
=
$(
$command_directory
/postconf
-h
daemon_directory
)
# make consistency check
$command_directory
/postfix check 2>&1
# run Postfix
exec
$daemon_directory
/master
-d
\ No newline at end of file
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