forked from openstf/stf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of our internal "build system" and switch to a CI-buildable D…
…ockerfile instead.
- Loading branch information
Showing
19 changed files
with
43 additions
and
367 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,14 @@ | ||
*.mo | ||
*.tgz | ||
.DS_Store | ||
.env | ||
.git/ | ||
.idea/ | ||
Dockerfile | ||
node_modules/ | ||
npm-debug.log | ||
res/bower_components/ | ||
res/build/ | ||
rethinkdb_data/ | ||
temp/ | ||
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
.idea/ | ||
/*.tgz | ||
/.env | ||
/.heroku/ | ||
/doc/*.png | ||
/node_modules/ | ||
/res/bower_components/ | ||
|
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
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 |
---|---|---|
@@ -1,12 +1,41 @@ | ||
FROM sorccu/node:0.12.2 | ||
MAINTAINER Simo Kinnunen | ||
|
||
# Install requirements. | ||
RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update && \ | ||
apt-get -y install libzmq3-dev libprotobuf-dev git graphicsmagick && \ | ||
apt-get clean && \ | ||
rm -rf /var/cache/apt/* | ||
|
||
# Add a user for the app. | ||
RUN useradd --system \ | ||
--no-create-home \ | ||
--shell /usr/sbin/nologin \ | ||
--home-dir /app \ | ||
stf | ||
|
||
# Sneak the stf executable into $PATH. | ||
ENV PATH /app/bin:$PATH | ||
|
||
# Work in app dir by default. | ||
WORKDIR /app | ||
|
||
# Export default app port, not enough for all processes but it should do | ||
# for now. | ||
EXPOSE 3000 | ||
|
||
# Copy app source. | ||
COPY . /app/ | ||
|
||
# Get the rest of the dependencies and build. | ||
RUN export PATH=/app/node_modules/.bin:$PATH && \ | ||
npm install && \ | ||
bower install --allow-root && \ | ||
gulp build | ||
|
||
# Switch to weak user. | ||
USER stf | ||
|
||
# Show help by default. | ||
CMD stf --help |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.