-
Notifications
You must be signed in to change notification settings - Fork 14
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 #109 from Moesif/dg-188626037-dockerize-devportal
#188626037 Dockerize Dev Portal and Clean Up README.md
- Loading branch information
Showing
15 changed files
with
147 additions
and
662 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.env | ||
*.zip | ||
*.log |
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,14 @@ | ||
FROM node:18 | ||
|
||
# Create app directory | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
# Bundle app source | ||
COPY ./my-dev-portal /usr/src/app | ||
RUN npm install | ||
RUN npm run build | ||
RUN npm install -g serve | ||
|
||
EXPOSE 4000 | ||
CMD [ "serve", "-p", "4000", "-s", "build"] |
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 @@ | ||
FROM node:18 | ||
|
||
# Create app directory | ||
RUN mkdir -p /usr/src/app | ||
RUN mkdir -p /usr/src/plugins | ||
WORKDIR /usr/src/app | ||
|
||
RUN apt-get update && apt-get upgrade -y && \ | ||
apt-get install -y \ | ||
zip | ||
|
||
# Bundle app source | ||
COPY ./my-dev-portal-api /usr/src/app | ||
COPY ./plugins /usr/src/plugins | ||
RUN npm install | ||
|
||
EXPOSE 3030 | ||
CMD [ "node", "app.js" ] |
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,5 @@ | ||
#!/usr/bin/env bash | ||
PROJECT_ROOT=../../ | ||
|
||
docker build -f ./Dockerfile-dev-portal -t moesif/dev-portal $PROJECT_ROOT | ||
docker build -f ./Dockerfile-dev-portal-api -t moesif/dev-portal-api $PROJECT_ROOT |
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,31 @@ | ||
version: '2' | ||
services: | ||
dev-portal: | ||
image: moesif/dev-portal | ||
ports: | ||
- 4000:4000 | ||
environment: | ||
- HOST=127.0.0.1 | ||
- PORT=4000 | ||
- REACT_APP_DEV_PORTAL_API_SERVER=http://dev-portal-api:3030 | ||
- REACT_APP_AUTH_PROVIDER=Auth0 | ||
- REACT_APP_AUTH0_DOMAIN= | ||
- REACT_APP_AUTH0_CLIENT_ID= | ||
- REACT_APP_STRIPE_PUBLISHABLE_KEY= | ||
- REACT_APP_STRIPE_MANAGEMENT_URL= | ||
|
||
dev-portal-api: | ||
image: moesif/dev-portal-api | ||
ports: | ||
- 3030:3030 | ||
environment: | ||
- FRONT_END_DOMAIN=127.0.0.1:4000 | ||
- MOESIF_APPLICATION_ID= | ||
- MOESIF_MANAGEMENT_TOKEN= | ||
- MOESIF_TEMPLATE_WORKSPACE_ID_LIVE_EVENT_LOG= | ||
- MOESIF_TEMPLATE_WORKSPACE_ID_TIME_SERIES= | ||
- STRIPE_API_KEY= | ||
- APIM_PROVIDER=JWT | ||
- JWT_SECRET= | ||
- JWT_EXPIRES_IN= | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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