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
a7b3a843
Commit
a7b3a843
authored
Sep 17, 2015
by
Tsubasa Namiki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chained RUN commands
parent
9fc9ca9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
30 deletions
+28
-30
Dockerfile
restyaboard/Dockerfile
+28
-30
No files found.
restyaboard/Dockerfile
View file @
a7b3a843
FROM
centos:7
FROM
centos:7
# update package
RUN
yum update
-y
RUN
yum install
-y
git bzip2 postgresql cronie
# add repository
# add repository
RUN
rpm
--import
http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
RUN
\
RUN
rpm
-ivh
http://ftp-srv2.kddilabs.jp/Linux/packages/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm
--import
http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
;
\
RUN
sed
-i
's/^enabled=1$/enabled=0/g'
/etc/yum.repos.d/epel.repo
rpm
-ivh
http://ftp-srv2.kddilabs.jp/Linux/packages/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
;
\
RUN
rpm
--import
http://rpms.famillecollet.com/RPM-GPG-KEY-remi
sed
-i
's/^enabled=1$/enabled=0/g'
/etc/yum.repos.d/epel.repo
;
\
RUN
rpm
-ivh
http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm
--import
http://rpms.famillecollet.com/RPM-GPG-KEY-remi
;
\
rpm
-ivh
http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# install nginx
COPY
etc/yum.repos.d/nginx.repo /etc/yum.repos.d/
COPY
etc/yum.repos.d/nginx.repo /etc/yum.repos.d/
RUN
yum install
-y
--enablerepo
=
nginx nginx
# install postfix
RUN
yum install
-y
postfix
#
install php5.6
#
update & install package
RUN
yum install
-y
--enablerepo
=
remi-php56
\
RUN
\
php php-fpm php-pgsql php-mbstring php-pecl-imagick
yum update
-y
;
\
RUN
sed
-i
's/^user = apache$/user = nginx/g'
/etc/php-fpm.d/www.conf
yum install
-y
git bzip2 cronie postfix postgresql
;
\
RUN
sed
-i
's/^group = apache$/group = nginx/g'
/etc/php-fpm.d/www.conf
yum install
-y
--enablerepo
=
nginx nginx
;
\
yum install
-y
--enablerepo
=
remi-php56
\
# install node.js
php php-fpm php-pgsql php-mbstring php-pecl-imagick
;
\
RUN
yum install
-y
--enablerepo
=
epel nodejs npm
yum install
-y
--enablerepo
=
epel nodejs npm
RUN
npm install
-g
grunt-cli
RUN
npm install
-g
grunt-cli
# setting php-fpm
RUN
\
sed
-i
's/^user = apache$/user = nginx/g'
/etc/php-fpm.d/www.conf
;
\
sed
-i
's/^group = apache$/group = nginx/g'
/etc/php-fpm.d/www.conf
# install restyaboard
# install restyaboard
RUN
rm
-rf
/usr/share/nginx/html
RUN
\
RUN
git clone https://github.com/RestyaPlatform/board.git
\
rm
-rf
/usr/share/nginx/html
;
\
git clone https://github.com/RestyaPlatform/board.git
\
/usr/share/nginx/html
/usr/share/nginx/html
WORKDIR
/usr/share/nginx/html
WORKDIR
/usr/share/nginx/html
RUN
cp restyaboard.conf /etc/nginx/conf.d
RUN
\
RUN
cp
-R
media /tmp
cp restyaboard.conf /etc/nginx/conf.d
;
\
RUN
npm install
cp
-R
media /tmp
;
\
RUN
grunt build:live
npm install
;
\
RUN
echo
'*/5 * * * * php /usr/share/nginx/htmlserver/php/R/shell/cron.php'
\
grunt build:live
;
\
echo
'*/5 * * * * php /usr/share/nginx/htmlserver/php/R/shell/cron.php'
\
>
/var/spool/cron/root
>
/var/spool/cron/root
# volume
# volume
...
...
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