-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
88 additions
and
0 deletions.
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,5 @@ | ||
.git | ||
**/bower_components | ||
**/dist | ||
**/node_modules | ||
**/tmp |
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,83 @@ | ||
FROM node:boron | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
git \ | ||
# Next 2 needed for yarn | ||
apt-transport-https \ | ||
ca-certificates \ | ||
# watchman | ||
build-essential \ | ||
automake \ | ||
autoconf \ | ||
python-dev \ | ||
&& apt-get clean \ | ||
&& apt-get autoremove -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ | ||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ | ||
&& apt-get update \ | ||
&& apt-get install -y \ | ||
yarn \ | ||
&& apt-get clean \ | ||
&& apt-get autoremove -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV WATCHMAN_VERSION 4.7.0 | ||
RUN cd /tmp \ | ||
&& git clone https://github.com/facebook/watchman.git \ | ||
&& cd watchman \ | ||
&& git checkout v$WATCHMAN_VERSION \ | ||
&& ./autogen.sh \ | ||
&& ./configure --enable-statedir=/tmp \ | ||
&& make \ | ||
&& make install \ | ||
&& mv watchman /usr/local/bin/watchman \ | ||
&& rm -Rf /tmp/watchman | ||
|
||
RUN mkdir -p /code | ||
WORKDIR /code | ||
|
||
COPY ./package.json ./yarn.lock /code/ | ||
RUN yarn --pure-lockfile | ||
|
||
COPY ./.bowerrc /code/.bowerrc | ||
COPY ./bower.json /code/bower.json | ||
RUN ./node_modules/bower/bin/bower install --allow-root --config.interactive=false | ||
|
||
COPY ./ /code/ | ||
|
||
ARG GIT_COMMIT= | ||
ENV GIT_COMMIT ${GIT_COMMIT} | ||
|
||
ARG APP_ENV=production | ||
ENV APP_ENV ${APP_ENV} | ||
|
||
ARG BACKEND=local | ||
ENV BACKEND ${BACKEND} | ||
|
||
ARG OSF_URL= | ||
ENV OSF_URL ${OSF_URL} | ||
ARG OSF_API_URL= | ||
ENV OSF_API_URL ${OSF_API_URL} | ||
ARG OSF_RENDER_URL= | ||
ENV OSF_RENDER_URL ${OSF_RENDER_URL} | ||
ARG OSF_FILE_URL= | ||
ENV OSF_FILE_URL ${OSF_FILE_URL} | ||
ARG OSF_HELP_URL= | ||
ENV OSF_HELP_URL ${OSF_HELP_URL} | ||
ARG OSF_COOKIE_LOGIN_URL= | ||
ENV OSF_COOKIE_LOGIN_URL ${OSF_COOKIE_LOGIN_URL} | ||
ARG OSF_OAUTH_URL= | ||
ENV OSF_OAUTH_URL ${OSF_OAUTH_URL} | ||
ARG SHARE_BASE_URL= | ||
ENV SHARE_BASE_URL ${SHARE_BASE_URL} | ||
ARG SHARE_API_URL= | ||
ENV SHARE_API_URL ${SHARE_API_URL} | ||
ARG SHARE_SEARCH_URL= | ||
ENV SHARE_SEARCH_URL ${SHARE_SEARCH_URL} | ||
|
||
RUN ./node_modules/ember-cli/bin/ember build --env ${APP_ENV} | ||
|
||
CMD ["yarn", "test"] |