devfile / api

Kube-native API for cloud development workspaces specification
Apache License 2.0
234 stars 57 forks source link

Support alizer default ports per framework #1157

Open thepetk opened 10 months ago

thepetk commented 10 months ago

Which area/kind this issue is related to?

/area alizer /area documentation

Issue Description

This issue is part of the #1154 EPIC and focuses on the default_ports per framework we need to define. That said for each framework detector (e.g laravel_detector.go) we should define default ports. A good way could be to define a function GetDefaultPorts inside each detector:

func (d LaravelDetector) GetDefaultPorts() []string {
    return []int{8080}
}

If the user has included a flag --add-default-ports, if no port value is detected during port detection we can return those ports. Finally, additions to the existing documentation should be made.

Acceptance Criteria

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 90 days with no activity. Remove stale label or comment or this will be closed in 60 days.