Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the environment configuration, Docker setup, and the build process. The most important changes involve adding new environment variables, updating Docker configurations, and refactoring the build script.
Environment Configuration:
.env.example
to support production settings and API configurations.Docker Setup:
.github/workflows/publishImage.yml
to streamline the Docker image publishing process and ensure consistent formatting.Dockerfile
by removing unnecessary environment variables and volume configurations, and updated the build process to use a clean "deploy" stage. [1] [2] [3]docker-compose.yml
to use a specific release candidate image and adjusted volume mounts for the database and configuration files. [1] [2]Build Process:
scripts/startup.js
tobuild.js
and refactored the script to improve readability and functionality, including handling new configuration paths and adding analytics support. [1] [2] [3] [4] [5] [6] [7] [8]Configuration Files:
config/monitors.example.yaml
andconfig/site.example.yaml
with new example data and additional site metadata. [1] [2] [3] [4]config/static/.kener
,database/.kener
, anddb/.kener
to ensure directory structure is maintained. [1] [2] [3]This pull request includes significant changes to the configuration files, Docker setup, and thebuild.js
script. The changes aim to streamline the configuration process, update the Docker setup, and refactor the build script for better maintainability.Configuration updates:
.env.example
: Added environment variables forNODE_ENV
,PORT
,GH_TOKEN
,API_TOKEN
,API_IP
,API_IP_REGEX
, andKENER_BASE_PATH
.Docker setup improvements:
.github/workflows/publishImage.yml
: Updated the workflow to publish Docker images to Docker Hub and GHCR, including changes to branch and tag patterns, and path ignores.Dockerfile
: Removed unnecessary environment variables and volume configurations, and updated the build commands to usenpm run build
instead ofnpm run kener:build
. [1] [2] [3]docker-compose.yml
: Updated the image to use a release candidate version and adjusted the environment variables and volume mappings. [1] [2]Script refactoring:
build.js
: Renamed fromscripts/startup.js
, refactored to improve readability and maintainability, including changes to how monitors and site configurations are loaded and validated. [1] [2] [3] [4] [5] [6] [7] [8]Other changes:
config/monitors.example.yaml
andconfig/site.example.yaml
: Removed example monitor and site configurations. [1] [2]config/static/.kener
,database/.kener
,db/.kener
: Added placeholder files to ensure directories exist. [1] [2] [3]dev.js
: Removed the import and call to theStartup
function from the oldscripts/startup.js
.