forked from kubeflow/kubeflow
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Katib UI for v1alpha2 (kubeflow#486)
* Init commit * Half of backend edit * Backend for v1alpha2 UI is done * Fix gopkg.toml * fix gopkg lock * Almost submit HP job by params done * Modify gitignore * Add by parameters for HP and NAS done * HP and NAS jobs functionality done * Template is done * Add new filters in job list Create a new build with frontend * Fix newlines * Review changes * Add tests for katib-ui * Delete pkg * Add pkg * Fix backend
- Loading branch information
1 parent
bd39447
commit 4ec45bb
Showing
159 changed files
with
17,195 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM golang:alpine AS build-env | ||
# The GOPATH in the image is /go. | ||
ADD . /go/src/github.com/kubeflow/katib | ||
WORKDIR /go/src/github.com/kubeflow/katib/cmd/ui | ||
RUN go build -o katib-ui ./v1alpha1 | ||
|
||
FROM alpine:3.7 | ||
WORKDIR /app | ||
# v1alpha1 source code | ||
COPY --from=build-env /go/src/github.com/kubeflow/katib/cmd/ui/katib-ui /app/ | ||
COPY cmd/ui/v1alpha1/static /app/static | ||
COPY cmd/ui/v1alpha1/template /app/template | ||
|
||
ENTRYPOINT ["./katib-ui"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package main | ||
|
||
import ( | ||
"net/http" | ||
|
||
ui "github.com/kubeflow/katib/pkg/ui/v1alpha2" | ||
) | ||
|
||
var ( | ||
port = "80" | ||
) | ||
|
||
func main() { | ||
kuh := ui.NewKatibUIHandler() | ||
|
||
frontend := http.FileServer(http.Dir("/app/build/")) | ||
http.Handle("/katib/", http.StripPrefix("/katib/", frontend)) | ||
|
||
http.HandleFunc("/katib/fetch_hp_jobs/", kuh.FetchHPJobs) | ||
http.HandleFunc("/katib/fetch_nas_jobs/", kuh.FetchNASJobs) | ||
http.HandleFunc("/katib/submit_yaml/", kuh.SubmitYamlJob) | ||
http.HandleFunc("/katib/submit_hp_job/", kuh.SubmitParamsJob) | ||
http.HandleFunc("/katib/submit_nas_job/", kuh.SubmitParamsJob) | ||
|
||
//TODO: Add it in Katib client | ||
http.HandleFunc("/katib/delete_experiment/", kuh.DeleteExperiment) | ||
|
||
http.HandleFunc("/katib/fetch_hp_job_info/", kuh.FetchHPJobInfo) | ||
http.HandleFunc("/katib/fetch_hp_job_trial_info/", kuh.FetchHPJobTrialInfo) | ||
http.HandleFunc("/katib/fetch_nas_job_info/", kuh.FetchNASJobInfo) | ||
|
||
http.HandleFunc("/katib/fetch_trial_templates/", kuh.FetchTrialTemplates) | ||
http.HandleFunc("/katib/fetch_collector_templates/", kuh.FetchMetricsCollectorTemplates) | ||
http.HandleFunc("/katib/update_template/", kuh.AddEditDeleteTemplate) | ||
|
||
http.ListenAndServe(":"+port, nil) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.