Skip to content
This repository has been archived by the owner on Aug 12, 2019. It is now read-only.

I dockerized your app #288

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM debian:jessie

MAINTAINER "Diego Marangoni" <[email protected]>

RUN apt-get update
RUN apt-get install -y curl
RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
RUN echo deb http://dl.hhvm.com/debian jessie main | tee /etc/apt/sources.list.d/hhvm.list
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why HHVM and not PHP? I am not sure sabre/katana will run correctly on HHVM yet.

RUN curl -sL https://deb.nodesource.com/setup_iojs_3.x | bash -
RUN echo '{ "allow_root": true }' > /root/.bowerrc
RUN apt-get clean && \
apt-get update && \
apt-get install -y sqlite hhvm build-essential git iojs && \
rm -rf /var/lib/apt/lists/*

RUN npm install -g bower
RUN rm -rf /etc/hhvm
RUN git clone https://github.com/fruux/sabre-katana /etc/hhvm
RUN curl -sS https://getcomposer.org/installer | hhvm --php -dHttp.SlowQueryThreshold=30000
RUN mv composer.phar /usr/local/bin/composer
ENV alias composer="hhvm -v ResourceLimit.SocketDefaultTimeout=30 -v Http.SlowQueryThreshold=30000 -v Eval.Jit=false /usr/local/bin/composer"


WORKDIR /etc/hhvm
RUN make

CMD ["hhvm", "-v Http.SlowQueryThreshold=30000", "-v Eval.Jit=false", "-v ResourceLimit.SocketDefaultTimeout=30"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ install-server:
composer install --no-dev

install-client:
bower install --production
bower install --production --allow-root
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why --allow-root?

npm install --no-optional

devinstall: devinstall-server devinstall-client build-client
Expand Down