Skip to content

Monk: Add Monk Kit on master branch#1

Open
MaksymTrykur wants to merge 1 commit into
masterfrom
monk-master-2311291823
Open

Monk: Add Monk Kit on master branch#1
MaksymTrykur wants to merge 1 commit into
masterfrom
monk-master-2311291823

Conversation

@MaksymTrykur
Copy link
Copy Markdown
Owner

PR Description: Containerization and Deployment Configuration

Overview

This PR introduces containerization and deployment configuration for a todo-list application with a Vue.js frontend and a Go backend. The backend is responsible for serving the frontend as static files and providing API endpoints. Additionally, the application requires an external database service, which is inferred from the environment variables set in the Dockerfile.

Changes

Service Mapping

  • The backend Go application uses the github.com/gin-contrib/static package to serve static files, indicating that the frontend is served by the backend service and does not require a separate service in production.
  • Environment variables in the Dockerfile (DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, and DB_NAME) suggest that the backend service connects to a database. However, the exact type of database used is not explicitly defined in the Go files.
  • An external database service is required, and based on the environment variables, it has been inferred to be a MariaDB database.

Database Service

  • A suitable database kit was found on MonkHub, which will be used to deploy the MariaDB service for the application.

Dockerfile for Backend

  • The Dockerfile build process encountered an error during the 'yarn install' step. Despite successful installation of Python and other dependencies, the build failed without a clear error message.
  • The issue may be related to one of the Node.js packages being built, the 'yarn install' command itself, or an environment-specific problem within the Docker build process.
  • It is recommended to attempt to build the frontend outside of Docker to see if the issue is reproducible and to enable verbose logging for 'yarn install' to gather more information about the failure.

Service Composition

  • The configuration for the 'database' service has been received, exposing a 'mariadb' port with several variables set, such as 'mariadb-database-name', 'mariadb-image', 'mariadb-root-password', etc.
  • No connections are set for this service, and no further service configurations have been provided to continue the analysis.

Configuration Files

  • monk.yaml: Allows deployment of the application to monk.io.
  • MANIFEST: Lists monk.io YAML files that should be deployed to monk.io.

Next Steps

  • Resolve the Dockerfile build issue for the frontend by building outside of Docker and enabling verbose logging for 'yarn install'.
  • Obtain additional service configurations to analyze how they should connect to the 'database' service and to set any missing variables.

Conclusion

This PR sets the groundwork for deploying the todo-list application using Monk.io. Further investigation and configuration are required to ensure a smooth deployment process.

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