Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release candidate/0.0.16 #120

Merged
merged 18 commits into from
Nov 16, 2024
Merged

Release candidate/0.0.16 #120

merged 18 commits into from
Nov 16, 2024

Conversation

rajnandan1
Copy link
Owner

@rajnandan1 rajnandan1 commented Nov 15, 2024

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]
  • 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 the Startup function from the old scripts/startup.js.

@rajnandan1 rajnandan1 merged commit 38c4439 into main Nov 16, 2024
@rajnandan1 rajnandan1 deleted the release-candidate/0.0.16 branch November 16, 2024 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant