This repository has been archived by the owner on Aug 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
I dockerized your app #288
Open
faddat
wants to merge
6
commits into
sabre-io:master
Choose a base branch
from
faddat:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ install-server: | |
composer install --no-dev | ||
|
||
install-client: | ||
bower install --production | ||
bower install --production --allow-root | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why |
||
npm install --no-optional | ||
|
||
devinstall: devinstall-server devinstall-client build-client | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.