-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add node env overrides, basic GitHub Actions, start of docker build (#12
- Loading branch information
Showing
8 changed files
with
138 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.dockerignore | ||
Dockerfile | ||
|
||
node_modules | ||
npm-debug.log | ||
.npmrc | ||
|
||
.git | ||
.gitignore |
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,36 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "[TITLE]" | ||
labels: 'bug-report' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS & Version: [e.g. iOS 10.2.1] | ||
- Browser & Version [e.g. chrome v71.0.12345] | ||
|
||
**Smartphone (please complete the following information):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser & Version [e.g. stock browser v0.1.2] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,27 @@ | ||
Description | ||
--- | ||
|
||
Motivation and Context | ||
--- | ||
|
||
How Has This Been Tested? | ||
--- | ||
|
||
What process can a PR reviewer use to test or verify this change? | ||
--- | ||
|
||
<!-- Checklist --> | ||
<!-- 1. Is the title of your PR in the form that would make nice release notes? The title, excluding the conventional commit | ||
tag, will be included exactly as is in the CHANGELOG, so please think about it carefully. --> | ||
|
||
|
||
Breaking Changes | ||
--- | ||
|
||
- [x] None | ||
- [ ] Requires data directory on base node to be deleted | ||
- [ ] Requires hard fork | ||
- [ ] Other - Please specify | ||
|
||
<!-- Does this include a breaking change? If so, include this line as a footer --> | ||
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a database, resync the chain --> |
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 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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,30 @@ | ||
--- | ||
# Checks that PR titles conform to Conventional Commits | ||
# See https://www.conventionalcommits.org/en/v1.0.0/ for more information | ||
name: PR | ||
|
||
'on': | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check-title: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: install | ||
run: | | ||
npm install -g @commitlint/cli @commitlint/config-conventional | ||
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js | ||
- name: lint | ||
run: | | ||
echo "$PR_TITLE" | commitlint | ||
env: | ||
PR_TITLE: ${{github.event.pull_request.title}} |
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,20 @@ | ||
FROM node:16.17.0-bullseye-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends dumb-init | ||
|
||
ENV NODE_ENV production | ||
WORKDIR /usr/src/app | ||
COPY --chown=node:node . . | ||
#RUN npm ci --only=production --omit=dev libs/base_node_grpc_client | ||
#RUN npm ci --only=production --omit=dev | ||
RUN npm install ./libs/base_node_grpc_client/ | ||
RUN npm install | ||
RUN npm install debug | ||
|
||
EXPOSE 4000 | ||
|
||
USER node | ||
#CMD ["dumb-init", "node", "app.js"] | ||
#CMD ["npm", "start"] | ||
CMD ["dumb-init", "node", "./bin/www"] |
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