-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
15,300 additions
and
0 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 |
---|---|---|
|
@@ -7,6 +7,7 @@ yarn-error.log* | |
/test/unit/coverage/ | ||
|
||
# Editor directories and files | ||
.vs | ||
.idea | ||
.vscode | ||
*.suo | ||
|
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 |
---|---|---|
|
@@ -23,3 +23,9 @@ yarn run lint | |
# run all tests | ||
yarn test | ||
``` | ||
|
||
## Build docker image | ||
|
||
``` | ||
cd docker && ./build.sh | ||
``` |
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 nginx | ||
|
||
COPY . . | ||
|
||
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf | ||
COPY dist /usr/share/nginx/html |
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,8 @@ | ||
#!/bin/bash | ||
|
||
cd .. | ||
npm install && \ | ||
npm run build && \ | ||
cd - && \ | ||
docker-compose build && \ | ||
docker-compose push |
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 @@ | ||
version: '3.3' | ||
|
||
services: | ||
bothub_frontend: | ||
image: ${BOTHUB_FRONTEND_IMAGE_NAME:-ilha/bothub_frontend}:${BOTHUB_FRNTEND_TAG:-latest} | ||
build: | ||
context: .. | ||
dockerfile: docker/Dockerfile | ||
ports: | ||
- 80:80 | ||
environment: | ||
- API_BASE_URL=${API_BASE_URL:-/api} | ||
- MAILCHIMP_LOGIN=${MAILCHIMP_LOGIN:-} | ||
- MAILCHIMP_DATACENTER=${MAILCHIMP_DATACENTER:-} | ||
- MAILCHIMP_USER_ID=${MAILCHIMP_USER_ID:-} | ||
- MAILCHIMP_LIST_ID=${MAILCHIMP_LIST_ID:-} |
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 @@ | ||
error_log /dev/stdout info; | ||
|
||
server { | ||
listen 80 default_server; | ||
listen [::]:80 default_server; | ||
|
||
if ($http_x_forwarded_proto = 'http') { | ||
return 301 https://$host$request_uri; | ||
} | ||
|
||
access_log /dev/stdout; | ||
|
||
root /usr/share/nginx/html; | ||
index index.html; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.html =404; | ||
} | ||
} |
Oops, something went wrong.