Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
natlibfi-jonollil committed Oct 28, 2022
0 parents commit 09a5290
Show file tree
Hide file tree
Showing 11 changed files with 10,748 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
npm-debug.log
node_modules
coverage
dist
.nyc_output
.env
package-lock.json
testing.txt
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
npm-debug.log
node_modules
coverage
dist
.nyc_output
.env
testMaterial.xml
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:14-alpine
CMD ["/usr/local/bin/node", "index.js"]
WORKDIR /home/node

COPY --chown=node:node . build

RUN apk add -U --no-cache --virtual .build-deps git build-base sudo \
&& sudo -u node sh -c 'cd build && npm install && npm run build' \
&& sudo -u node cp -r build/package.json build/dist/* . \
&& sudo -u node npm install --prod \
&& sudo -u node npm cache clean -f \
&& apk del .build-deps \
&& rm -rf build tmp/* /var/cache/apk/*

USER node
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022-present University Of Helsinki (The National Library Of Finland)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Webhook relay

Webhook relay for **University Of Helsinki (The National Library Of Finland)**

## Envs
### Generic transformer envs
| Name | Description | default or e.g. |
|-----------------------|-------------------------------------|----------------------------------------------------------|
| OPENSHIFT_WEBHOOK_URL | OpenShift webhook url | 'https://xxx:0000/apis/build.openshift.io/v1/namespaces' |
| HTTP_PORT | HTTP port express listens | '8080' |
| GITHUB_META_URL | URL where github releases IP ranges | 'https://api.github.com/meta' |
| IP_WHITELIST | | [], '["xxx.xxx.xxx.xxx"]' |

## License and copyright

Copyright (c) 2022 **University Of Helsinki (The National Library Of Finland)**

This project's source code is licensed under the terms of **MIT** or any later version.
Loading

0 comments on commit 09a5290

Please sign in to comment.