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

Add a naas.service.add function #392

Closed
Dr0p42 opened this issue May 7, 2023 · 0 comments
Closed

Add a naas.service.add function #392

Dr0p42 opened this issue May 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Dr0p42
Copy link
Collaborator

Dr0p42 commented May 7, 2023

We need to implement a naas.service.add function making it possible to create a new service.

The specifications are:

naas.service.add(
  service_name="my-data-product",
  service_type="docker",  
  dockerfile_path="Dockerfile",
  docker_context=".",
  container_port="8080",
  generate_ci=True, 
  ci_type="github-actions", 
  cpu=None,
  memory=None
) 

All values should be default, only the service_name should be required.

service_name: The name the user wants to give to the service.
service_type: The type of service to create. This is mainly to make it easier for the user in the case it's not of type docker. We can provide default Dockerfiles etc if needed.
dockerfile_path: The path where the Dockerfile is in the project. Starting from the root folder.
docker_context: From which folder we should build the container.
container_port: On which port the container will listen once started. This should be used to configure the Knative service.
generate_ci: Wether we should generate the CI/CD configuration for the user.
ci_type: The type of CI to which we want to generate the configuration for.
cpu: The cpu request for the container to run.
memory: The memory request for the container to run.

This is a low code formula that should take advantage of other already existing functions allowing to do the following:

  • Create a new Docker registry on service.naas.ai
  • Create a new service on service.naas.ai
  • Generate CI/CD for github.

Estimate: 3
Priority: low

@Dr0p42 Dr0p42 added the enhancement New feature or request label May 7, 2023
@Dr0p42 Dr0p42 moved this from 📋 Backlog to 🔖 Ready in ⚡️ Product Roadmap May 10, 2023
@Dr0p42 Dr0p42 closed this as completed May 25, 2023
@github-project-automation github-project-automation bot moved this from 🔖 Ready to ✅ Done in ⚡️ Product Roadmap May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

1 participant