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:
Added new environment variables to .env.example to support production settings and API configurations.
Docker Setup:
Updated .github/workflows/publishImage.yml to streamline the Docker image publishing process and ensure consistent formatting.
Simplified Dockerfile by removing unnecessary environment variables and volume configurations, and updated the build process to use a clean "deploy" stage. [1][2][3]
Updated docker-compose.yml to use a specific release candidate image and adjusted volume mounts for the database and configuration files. [1][2]
Build Process:
Renamed scripts/startup.js to build.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:
Updated config/monitors.example.yaml and config/site.example.yaml with new example data and additional site metadata. [1][2][3][4]
Added placeholder files to config/static/.kener, database/.kener, and db/.kener to ensure directory structure is maintained. [1][2][3]This pull request includes significant changes to the configuration files, Docker setup, and the build.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 for NODE_ENV, PORT, GH_TOKEN, API_TOKEN, API_IP, API_IP_REGEX, and KENER_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 use npm run build instead of npm 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 from scripts/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 and config/site.example.yaml: Removed example monitor and site configurations. [1][2]
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
.