This repository has been archived by the owner on Sep 19, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from truetandem/master
Release #1 3/20/2017
- Loading branch information
Showing
143 changed files
with
4,174 additions
and
3,868 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
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,2 +1,6 @@ | ||
FROM golang:1.7 | ||
RUN curl https://glide.sh/get | sh | ||
RUN go get -u github.com/Masterminds/glide; \ | ||
cd $GOPATH/src/github.com/Masterminds/glide; \ | ||
git checkout tags/$(git describe --tags $(git rev-list --tags --max-count=1)); \ | ||
go install; \ | ||
cd $GOPATH/src |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
version: '2' | ||
|
||
services: | ||
db: | ||
image: postgres | ||
expose: | ||
- '5432' | ||
networks: | ||
- private | ||
|
||
# Within the docker world this is the main entrypoint in to | ||
# this web application. This was done in order to have a | ||
# combination of: | ||
# - development REPL | ||
# - automated unit tests | ||
# - spec testing | ||
# | ||
# Caddy will do the following: | ||
# - serve compiled static assets | ||
# - proxy /api requests to the backend API | ||
web: | ||
image: abiosoft/caddy | ||
volumes: | ||
- ./dist:/srv | ||
- ./api/Caddyfile:/etc/Caddyfile | ||
ports: | ||
- '8080:2015' | ||
networks: | ||
- private | ||
depends_on: | ||
- api | ||
|
||
api: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.api | ||
env_file: | ||
- .env | ||
working_dir: /go/src/github.com/18F/e-QIP-prototype/api | ||
command: ./run.sh | ||
volumes: | ||
- .:/go/src/github.com/18F/e-QIP-prototype | ||
expose: | ||
- '3000' | ||
environment: | ||
DATABASE_USER: postgres | ||
DATABASE_NAME: postgres | ||
DATABASE_HOST: db:5432 | ||
networks: | ||
- private | ||
depends_on: | ||
- db | ||
|
||
hub: | ||
image: selenium/hub:latest | ||
expose: | ||
- '4444' | ||
networks: | ||
- private | ||
|
||
# Selenium nodes currently don't support docker networks. | ||
# To get around this we emulate what `--link` would create for | ||
# environment variables. | ||
# | ||
# Reference: https://github.com/SeleniumHQ/docker-selenium/issues/133 | ||
chrome: | ||
image: selenium/node-chrome:latest | ||
environment: | ||
HUB_PORT_4444_TCP_ADDR: hub | ||
HUB_PORT_4444_TCP_PORT: 4444 | ||
volumes: | ||
- /dev/shm:/dev/shm | ||
networks: | ||
- private | ||
depends_on: | ||
- hub | ||
|
||
nightwatch: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.nightwatch | ||
command: [npm, run, docker] | ||
volumes: | ||
- ./specs:/usr/src/app | ||
networks: | ||
- private | ||
depends_on: | ||
- chrome | ||
- web | ||
|
||
networks: | ||
private: | ||
driver: bridge |
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
Oops, something went wrong.