-
Notifications
You must be signed in to change notification settings - Fork 1
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 #321 from yulii/chore/docker
Setup Docker
- Loading branch information
Showing
5 changed files
with
149 additions
and
8 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
coverage | ||
node_modules | ||
.env | ||
.DS_Store* | ||
.hubot_history | ||
.nyc_output | ||
|
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,6 @@ | ||
FROM alpine:latest | ||
|
||
RUN apk update && apk add --no-cache \ | ||
npm yarn | ||
|
||
WORKDIR /app |
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,16 @@ | ||
setup: | ||
docker-compose build | ||
|
||
yarn: | ||
docker-compose run app yarn install | ||
|
||
test: yarn | ||
docker-compose run app yarn test | ||
docker-compose run app yarn lint | ||
|
||
run: yarn | ||
docker-compose up | ||
|
||
clean: | ||
rm -r node_modules | ||
docker-compose down --rmi all --volumes |
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,15 @@ | ||
version: "3.7" | ||
services: | ||
app: | ||
build: . | ||
env_file: .env | ||
command: bin/hubot -n Hubot --adapter slack | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- .:/app | ||
- node_modules:/app/node_modules | ||
|
||
volumes: | ||
node_modules: | ||
driver: local |
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