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

CLI for service generation #44

Open
singhalkarun opened this issue Jul 26, 2024 · 3 comments
Open

CLI for service generation #44

singhalkarun opened this issue Jul 26, 2024 · 3 comments
Assignees

Comments

@singhalkarun
Copy link
Collaborator

A CLI that takes important attributes of a service and adds it in the docker-compose.yaml file (if docker-compose.yaml doesn't exists, it creates a docker-compose.yaml)

SERVICE_NAME
IMAGE_URL
MEM_LIMIT
REPLICAS
ENVIRONMENT: a:b c:d e:f
VOLUMES

Service attributes will be very similar to what we had in K8S.

  1. Onboard a service
  2. Expose a service using caddy - (service name, service port) - Add an entry to Caddyfile (if it doesn't exist create it)
@singhalkarun
Copy link
Collaborator Author

Skipping ENVIRONMENT: a:b c:d e:f and VOLUMES for now.

@singhalkarun
Copy link
Collaborator Author

  • don't allow adding service on root level, only allow inside a folder
  • if the folder doesn't exist, create a folder and add service inside it

@GJS2162
Copy link
Collaborator

GJS2162 commented Aug 14, 2024

Link for PR : #73

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

No branches or pull requests

2 participants