Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into update-kue
- Loading branch information
Showing
9 changed files
with
77 additions
and
1 deletion.
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,4 @@ | ||
.dockerignore | ||
Dockerfile | ||
docker-compose.yml | ||
.git |
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,19 @@ | ||
FROM node:6.10.3 | ||
|
||
RUN useradd -U -d /opt/refocus refocus | ||
ENV HOME=/opt/refocus | ||
COPY . $HOME | ||
RUN chown -R refocus:refocus $HOME | ||
|
||
USER refocus | ||
WORKDIR $HOME | ||
RUN npm install | ||
|
||
# sleep is to support pause during startup for deploys in kubernetes - delays start of refocus container to let pg and redis containers to start within the same pod. | ||
ENV SLEEP=0 | ||
ENV PGHOST=pg | ||
ENV REDIS_URL=//redis:6379 | ||
|
||
EXPOSE 3000 | ||
|
||
CMD [ "/bin/sh", "-c", "sleep $SLEEP; npm start" ] |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: '2' | ||
services: | ||
refocus-app: | ||
build: . | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- "redis" | ||
- "pg" | ||
redis: | ||
image: "redis:3.2.8" | ||
expose: | ||
- 6379 | ||
pg: | ||
image: "postgres:9.6.2" | ||
expose: | ||
- 5432 | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
layout: docs | ||
title: Quick Start with Local Docker | ||
--- | ||
|
||
# QuickStart with Local Docker | ||
# Prerequisites | ||
1. Install docker [docker-for-mac](https://docs.docker.com/docker-for-mac/install/). | ||
# Start refocus with dependencies | ||
1. Clone this git repository. | ||
2. Run `cd refocus`. | ||
3. Run `docker-compose up` |
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
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