Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
be46a81
Refactor - Breaking Changes for current DockStat frontend (#18)
Its4Nik Nov 1, 2024
e2f3a93
Update build-dev.yaml
Its4Nik Nov 1, 2024
14c0951
Update build-dev.yaml
Its4Nik Nov 1, 2024
f4d8ec1
Update build-dev.yaml
Its4Nik Nov 1, 2024
5d6c61c
Add rate limiter
Its4Nik Nov 1, 2024
68bb589
Move rate limiter to middleware
Its4Nik Nov 1, 2024
6123267
Formating and details on swagger page
Its4Nik Nov 1, 2024
aa4a20f
Added icon and url routes + adjustment of methods used when removinf …
Its4Nik Nov 2, 2024
0bbfc91
Use commonjs for rate limit
Its4Nik Nov 2, 2024
8d8f55a
Use ESM for rate limit; otherwise it wont work on my dev server (but …
Its4Nik Nov 2, 2024
d734511
Telegram functionality and templating
Its4Nik Nov 5, 2024
2860402
More notification services and routes for testing and configuring the…
Its4Nik Nov 5, 2024
b8f501e
Fix CodeQL
Its4Nik Nov 6, 2024
367bda0
Update mermaid diagramm for documentation purposes
Its4Nik Nov 6, 2024
2d3af90
Default route rewrite
Its4Nik Nov 6, 2024
74e7af2
Hot-Fix missing import
Its4Nik Nov 6, 2024
f635b92
Switch to ES6 and TypeScript (#21)
Its4Nik Dec 20, 2024
84c3e99
Fix: Disabled image pushing for PRs running against dev branch
Its4Nik Dec 20, 2024
49b6986
Fix: Dropping linux/arm/v7 due to workflow timeout (sorry guys)
Its4Nik Dec 21, 2024
a2618b8
Chore: Add exiting log
Its4Nik Dec 21, 2024
aeaef0a
Fix: remove verbose flag in workflow
Its4Nik Dec 21, 2024
0a9f326
Fix: Fixing typo in ReadMe
Its4Nik Dec 21, 2024
4af32e8
Fix: CodeQL
Its4Nik Dec 21, 2024
00e9ffe
Fix: Use object destruction
Its4Nik Dec 21, 2024
47ff28c
Fix: CodeQL (braces for if clauses)
Its4Nik Dec 21, 2024
5404206
Chore: Update Dockerfile
Its4Nik Dec 21, 2024
7e2ca20
Chore: Update _template.ts
Its4Nik Dec 21, 2024
71b8e2f
Update _template.ts
Its4Nik Dec 21, 2024
b0c266c
Chore: Add npm run docker(:build) commands
Its4Nik Dec 23, 2024
72d4c12
Fix: Fixing 'break' syntax, in _template.ts
Its4Nik Dec 23, 2024
84cfbf3
Feat: Add CI/CD Badges to ReadMe
Its4Nik Dec 23, 2024
1e16f95
Fix: Change badges
Its4Nik Dec 23, 2024
f2322bc
Fix: Update README.md with newlines between the badges
Its4Nik Dec 23, 2024
1f0c5d6
Fix: Needs bash and curl for healthcheck / entrypoint
Its4Nik Dec 23, 2024
0de6ba9
Fix: Add 'CMD' to HEALTHCHECK
Its4Nik Dec 23, 2024
522b2d0
Fix: Adding bash/nodejs binaries to last docker stage
Its4Nik Dec 23, 2024
45e3fc1
Chore: adjust process env and patch to 2.0.1
Its4Nik Dec 25, 2024
3944544
Fix: update .gitignore
Its4Nik Dec 25, 2024
b6338e9
Chore: Creating default files on container startup
Its4Nik Dec 25, 2024
ccabc0c
Fix: Replacing all single file names with one folder
Its4Nik Dec 25, 2024
d9c600a
Fix: Adding sample variables.json to docker container before building
Its4Nik Dec 25, 2024
c82473e
Fix: Add error handling for malformed input data in the reduce function
Its4Nik Dec 26, 2024
35630f4
Fix: Add rate limiting to file read (auth)
Its4Nik Dec 26, 2024
f81a96c
Fix: Add rate limiting FS functions
Its4Nik Dec 26, 2024
6f65b83
Pull: Adjustments made in remote branch
Its4Nik Dec 26, 2024
8b9493f
Feat: Advanced codeql.yml
Its4Nik Dec 26, 2024
8165b3e
Chore: Add more workflows for validation/licensing/...
Its4Nik Dec 26, 2024
0dd818e
Fix: Update Licensed.yml
Its4Nik Dec 26, 2024
d2d65c6
Fix: Adjusted workflows
Its4Nik Dec 26, 2024
ff635b1
Fix: Adjusted workflows - removed fixed version (to be added back)
Its4Nik Dec 26, 2024
575d8e5
Fix: Adjusted workflows; fixed versions
Its4Nik Dec 26, 2024
491171d
Fix: Correct workflow versions
Its4Nik Dec 26, 2024
f4c1c5e
Fix: Workflow stuff...
Its4Nik Dec 26, 2024
7ab3ef2
Fix: Dropping licence check (will be back)
Its4Nik Dec 26, 2024
d53e0fa
Fix: Delete .github/workflows/Licensed.yml
Its4Nik Dec 26, 2024
aa38d1b
Fix: Delete .github/workflows/license.yml
Its4Nik Dec 26, 2024
66f6c60
Fix: Renamed .github/workflows/test-build.yaml
Its4Nik Dec 26, 2024
93c392c
Fix: Delete .github/workflows/licensed.yml
Its4Nik Dec 26, 2024
7be77f7
Chore: Cleaning up (gn)
Its4Nik Dec 26, 2024
ed88f23
Chore: Cleaning up (its getting late, gn)
Its4Nik Dec 26, 2024
7c669ea
Fix: Test new grype workflow
Its4Nik Dec 27, 2024
1cc4073
Fix: Test new grype workflow
Its4Nik Dec 27, 2024
a44ac5f
Fix: Test new grype workflow
Its4Nik Dec 27, 2024
9b00378
Fix: Test new grype workflow
Its4Nik Dec 27, 2024
02e1439
Feat: Added credit function (npm run license)
Its4Nik Dec 27, 2024
71a43ee
Feat: Added credit function (npm run license)
Its4Nik Dec 27, 2024
2912bc8
Feat: Added credit function (npm run license)
Its4Nik Dec 27, 2024
887d5df
Feat: Git pre-commit hook testing`
Its4Nik Dec 27, 2024
b36a03e
Fix: Add linting
Its4Nik Dec 27, 2024
c2fd998
Fix: Fixing dep:remove logic
Its4Nik Dec 27, 2024
ba34e96
Fix: Fixing some logic things and docs
Its4Nik Dec 27, 2024
9fdb89f
Fix: Fixing build (hopefully)
Its4Nik Dec 27, 2024
8e0967b
Fix: Fixing build (hopefully)
Its4Nik Dec 27, 2024
ea8693a
Fix: Linting (No more any :D)
Its4Nik Dec 30, 2024
ff34dff
Fix: Added missing varaible.json file for workflow
Its4Nik Dec 30, 2024
edaab08
Chore: Update README.md
Its4Nik Dec 30, 2024
d62abc0
Fix: Added "..." to workflow name
Its4Nik Dec 30, 2024
30c79de
Merge branch 'dev' of github.com:Its4Nik/dockstatapi into dev
Its4Nik Dec 30, 2024
569044d
Feat: Add better workflow logic
Its4Nik Dec 30, 2024
8183c6a
Fix: Renamed files => adjusted in code
Its4Nik Dec 30, 2024
c646f0e
Fix: Workflows depending on each other (test)
Its4Nik Dec 30, 2024
19a1d24
Fix: Remove old 'residue' of workflow files
Its4Nik Dec 30, 2024
16b0aa9
Fix: Adjust workflows
Its4Nik Dec 30, 2024
2766aa6
Fix: Adjust workflows (hopefully)
Its4Nik Dec 30, 2024
406fe0c
Fix: More adjustments
Its4Nik Dec 30, 2024
25696d8
Fix: Move workflow files around
Its4Nik Dec 30, 2024
7a4134f
Fix: Fixing permissions
Its4Nik Dec 30, 2024
61a4945
Feat: Added workflow naming
Its4Nik Dec 30, 2024
ee37b80
Fix: Preparing for yet another workflow change...
Its4Nik Dec 30, 2024
a63c4b0
Feat: New workflow structure for dev build
Its4Nik Dec 31, 2024
3bf8da4
Fix: permissions
Its4Nik Dec 31, 2024
687e44a
Feat: Update to ubuntu-24.04 in GHA
Its4Nik Dec 31, 2024
dc2fed8
Feat: Custom User for Docker container
Its4Nik Jan 1, 2025
1f59fd4
Fix: Lock acquisition needs exponential backoff to prevent thundering…
Its4Nik Jan 1, 2025
a18b9d4
Feat: Daily rotating log files
Its4Nik Jan 1, 2025
f5b80ca
Merge branch 'dev' of github.com:Its4Nik/dockstatapi into dev
Its4Nik Jan 1, 2025
a6838b0
Feat: Better locking
Its4Nik Jan 1, 2025
3c348d3
Fix: fixing the logger
Its4Nik Jan 1, 2025
5984464
Chore: Change routes to classes instead of huge functions
Its4Nik Jan 1, 2025
c5e4e6c
Chore: Moving some typings around
Its4Nik Jan 1, 2025
604a6cf
Chore: Move files around
Its4Nik Jan 1, 2025
dcf62b7
Chore: Update ReadMe
Its4Nik Jan 1, 2025
45b0cfd
Fix: Remove escape characters from log file
Its4Nik Jan 1, 2025
ffb4552
Chore: Cleaning up Dockerfile(s)
Its4Nik Jan 2, 2025
5df6829
Fix: Run uglifyjs only on .js files
Its4Nik Jan 2, 2025
7fa7eeb
Err: Workflow wont run
Its4Nik Jan 2, 2025
9175d9a
Fix: Update validation.yaml
Its4Nik Jan 3, 2025
f39f1bc
Fix: Update validation.yaml
Its4Nik Jan 3, 2025
9bc2f65
Chore: Cleanup frontendConfiguration.json
Its4Nik Jan 3, 2025
bb8a627
Fix: missing return in api.ts
Its4Nik Jan 3, 2025
987b550
Chore: Change to dev Dockerfile for workflow
Its4Nik Jan 3, 2025
621d142
Feat: Added docker scout
Its4Nik Jan 3, 2025
d932c98
Feat: Update workflow logic
Its4Nik Jan 3, 2025
c87ba87
Fix: Permissions
Its4Nik Jan 3, 2025
9cb3490
Fix: Workflow adjustment => drop docker scout :/
Its4Nik Jan 3, 2025
7b09298
Fix: Remove unnecessary matrix
Its4Nik Jan 3, 2025
204d4bf
Chore: Pre release workflow
Its4Nik Jan 3, 2025
b27369f
Fix: removed negation from if in workflow
Its4Nik Jan 3, 2025
fe37f2d
Feat: Added new image => See next commit
Its4Nik Jan 5, 2025
a82d021
Fix: Add checkout
Its4Nik Jan 29, 2025
0f3ed69
Feat: Add WebSockets, graph generation service and HA (#31)
Its4Nik Feb 9, 2025
ad79836
Automatically added GitHub issue links to TODOs
github-actions[bot] Feb 9, 2025
1aa44c6
Fix: Websocket logic adjustments
Feb 9, 2025
915cc33
Fix: Make Linter happy
Feb 9, 2025
63c396e
Change: Graph generation logic changed!
Its4Nik Feb 11, 2025
3f67923
Fix: Code styling
Its4Nik Feb 12, 2025
d7c8016
Fix: Remove unusable routes
Its4Nik Feb 15, 2025
62b0574
Fix: Add docker executable
Its4Nik Feb 15, 2025
01d7307
Fix: Fixing user creation and docker user
Its4Nik Feb 15, 2025
955d413
Fix: Use Node-20-slim in build stage
Its4Nik Feb 15, 2025
fdac573
Fix: Update to composeAction
Its4Nik Feb 15, 2025
caa4b6c
Fix: Make errors more verbose for debugging purpose
Its4Nik Feb 15, 2025
fbc63f4
Fix: Add correct docker packages to Container
Its4Nik Feb 15, 2025
0dc912e
Fix: Adjust dockerfile (gosh i hope it works now)
Its4Nik Feb 15, 2025
c49da92
Fix: Adjust entrypoints and dockerfiles
Its4Nik Feb 16, 2025
9576cdc
Feat: Test new workflow
Its4Nik Feb 16, 2025
749c286
Feat: Test new workflow
Its4Nik Feb 16, 2025
dec86d3
Fix: test new workflow
Its4Nik Feb 16, 2025
d1566b1
Update README.md
Its4Nik Mar 11, 2025
0ed8ebd
Update README.md
Its4Nik Mar 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 151 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
# custom paths:
src/data/*
.tmp
docker/master
docker/slave
.test*
# Created by https://www.toptal.com/developers/gitignore/api/node
### Node ###
*-audit.json
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

### Node Patch ###
# Serverless Webpack directories
.webpack/

# Optional stylelint cache

# SvelteKit build / generate output
.svelte-kit
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
Binary file added .github/DockStat-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/DockStat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 0 additions & 48 deletions .github/workflows/anchore.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/build-dev.yaml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: "Build and Push Docker Image"

on:
release:
types: [published]

permissions:
packages: write
contents: read

jobs:
build-release:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}

- name: Extract version and create tag
id: get-tag
run: |
# Remove 'v' prefix from release tag if present
VERSION="${GITHUB_REF#refs/tags/v}"
# Check if pre-release and append '-pre'
if ${{ github.event.release.prerelease }}; then
TAG="$VERSION-pre"
else
TAG="$VERSION"
fi
echo "tag=$TAG" >> $GITHUB_OUTPUT

- name: Generate Docker metadata
uses: docker/metadata-action@v5
id: metadata
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=${{ steps.get-tag.outputs.tag }}
type=raw,value=latest,enable=${{ !github.event.release.prerelease }}

- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
context: .
file: docker/Dockerfile-base
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
26 changes: 0 additions & 26 deletions .github/workflows/build-image.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/cloc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Count Lines of Code"

permissions:
issues: write
pull-requests: write

on:
pull_request:
branches: [main, dev]

jobs:
cloc:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4

- name: Count Lines of Code (cloc)
uses: djdefi/cloc-action@6
with:
options: --md --report-file=cloc.md --exclude-dir=node_modules --exclude-lang=YAML,JSON --exclude-list-file=package-lock.json

- name: Create comment from markdown file
uses: GrantBirki/comment@v2
with:
file: cloc.md
issue-number: ${{ github.event.number }}
17 changes: 17 additions & 0 deletions .github/workflows/remove-stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Close stale issues and PR"
on:
schedule:
- cron: "30 1 * * *"

jobs:
remove-stale:
runs-on: ubuntu-24.04
steps:
- uses: actions/stale@v9
with:
stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days."
stale-pr-message: "This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days."
close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity."
days-before-stale: 30
days-before-close: 5
days-before-pr-close: -1
Loading