Skip to content

Commit

Permalink
Get rid of our internal "build system" and switch to a CI-buildable D…
Browse files Browse the repository at this point in the history
…ockerfile instead.
  • Loading branch information
sorccu committed Jul 1, 2015
1 parent f726c0a commit 775bffe
Show file tree
Hide file tree
Showing 19 changed files with 43 additions and 367 deletions.
14 changes: 14 additions & 0 deletions .dockerignore
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/
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.idea/
/*.tgz
/.env
/.heroku/
/doc/*.png
/node_modules/
/res/bower_components/
Expand Down
2 changes: 0 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
/.editorconfig
/.env
/.gitignore
/.heroku/
/.idea/
/.jscsrc
/.npmignore
/.npmrc
/Dockerfile
/bower.json
/buildpack/
/component.json
/doc/
/gulpfile.js
Expand Down
29 changes: 29 additions & 0 deletions Dockerfile
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
8 changes: 0 additions & 8 deletions buildpack/bin/common.sh

This file was deleted.

19 changes: 0 additions & 19 deletions buildpack/bin/compact

This file was deleted.

17 changes: 0 additions & 17 deletions buildpack/bin/compile

This file was deleted.

26 changes: 0 additions & 26 deletions buildpack/buildpacks/bower/bin/common.sh

This file was deleted.

56 changes: 0 additions & 56 deletions buildpack/buildpacks/bower/bin/compile

This file was deleted.

8 changes: 0 additions & 8 deletions buildpack/buildpacks/bower/bin/detect

This file was deleted.

26 changes: 0 additions & 26 deletions buildpack/buildpacks/gulp/bin/common.sh

This file was deleted.

29 changes: 0 additions & 29 deletions buildpack/buildpacks/gulp/bin/compile

This file was deleted.

8 changes: 0 additions & 8 deletions buildpack/buildpacks/gulp/bin/detect

This file was deleted.

1 change: 0 additions & 1 deletion buildpack/buildpacks/node/README.md

This file was deleted.

38 changes: 0 additions & 38 deletions buildpack/buildpacks/node/bin/common.sh

This file was deleted.

27 changes: 0 additions & 27 deletions buildpack/buildpacks/node/bin/compact

This file was deleted.

Loading

0 comments on commit 775bffe

Please sign in to comment.