-
Notifications
You must be signed in to change notification settings - Fork 446
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
WIP: New UI #438
Closed
Closed
WIP: New UI #438
Changes from 38 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
cf15cd4
Merge pull request #1 from kubeflow/master
Akado2009 b9d3294
UI without backend added
Akado2009 3c96661
filterting added on monitorin
Akado2009 33046ee
backend 40% done
Akado2009 99c0fdb
ismall fix
Akado2009 b94c8ee
table + additional plot adde
Akado2009 4590729
hp monitor
Akado2009 621c2c0
everything works
Akado2009 034c786
UI FIX FOR PARAMS
Akado2009 64a72fc
small fix
Akado2009 038f590
input/output size
Akado2009 a6abfb6
before fetch
Akado2009 4000db0
isdmall fix
Akado2009 3851f36
Merge pull request #3 from kubeflow/master
Akado2009 616d52b
ismall fix
Akado2009 7ca1a3a
FIX FOR DEMO| HOLD| EVERYTHING IS STATIC
Akado2009 b823431
Revert "FIX FOR DEMO| HOLD| EVERYTHING IS STATIC"
Akado2009 9de6717
ias
Akado2009 aabb89d
Monitor fixed
Akado2009 e8ad6ef
hp readyh
Akado2009 8d11741
almost everything
Akado2009 30324cf
TODO UPDATE
Akado2009 24b1a5d
moving to containerized version
Akado2009 dd95ae0
fional fverison almost
Akado2009 4edbb0f
ismall fix
Akado2009 6fed5e9
ismall
Akado2009 c6426dc
ialso everytyhing fixed
Akado2009 30fa065
almost
Akado2009 7dd1359
small fix
Akado2009 5399aab
finalk fix
Akado2009 addd36b
get rid of bin/todo
Akado2009 4e62819
deleted package-lock
Akado2009 bbd3186
Revert "small fixes"
Akado2009 57a7ea0
Merge remote-tracking branch 'upstream/master' into HEAD
Akado2009 e799d34
imerge master
Akado2009 502169e
save deleted
Akado2009 936b68a
prop-types added
Akado2009 db79620
yarn.lock deleted
Akado2009 40d435e
build added
Akado2009 a3955c3
newline added
Akado2009 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
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,27 @@ | ||
package main | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/kubeflow/katib/pkg/ui" | ||
) | ||
|
||
func main() { | ||
kuh := ui.NewKatibUIHandler() | ||
|
||
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.SubmitHPJob) | ||
http.HandleFunc("/katib/submit_nas_job/", kuh.SubmitNASJob) | ||
|
||
http.HandleFunc("/katib/fetch_hp_job_info/", kuh.FetchJobInfo) | ||
http.HandleFunc("/katib/fetch_nas_job_info/", kuh.FetchNASJobInfo) | ||
http.HandleFunc("/katib/fetch_worker_info/", kuh.FetchWorkerInfo) | ||
http.HandleFunc("/katib/fetch_worker_templates/", kuh.FetchWorkerTemplates) | ||
http.HandleFunc("/katib/fetch_collector_templates/", kuh.FetchCollectorTemplates) | ||
http.HandleFunc("/katib/update_template/", kuh.AddEditTemplate) | ||
http.HandleFunc("/katib/delete_template/", kuh.DeleteTemplate) | ||
|
||
http.ListenAndServe(":9303", 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM golang:alpine AS build-env | ||
# The GOPATH in the image is /go. | ||
# FOR NOW IT IS NEW-UI | ||
ADD . /go/src/github.com/kubeflow/katib | ||
WORKDIR /go/src/github.com/kubeflow/katib/cmd/new-ui | ||
RUN go build -o katib-ui | ||
|
||
FROM alpine:3.7 | ||
WORKDIR /app | ||
COPY --from=build-env /go/src/github.com/kubeflow/katib/cmd/new-ui/katib-ui /app/ | ||
COPY --from=build-env /go/src/github.com/kubeflow/katib/pkg/ui/frontend/build/ /app/build | ||
ENTRYPOINT ["/app/katib-ui"] | ||
EXPOSE 80 |
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,35 @@ | ||
package main | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/kubeflow/katib/pkg/ui" | ||
) | ||
|
||
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.SubmitHPJob) | ||
http.HandleFunc("/katib/submit_nas_job/", kuh.SubmitNASJob) | ||
http.HandleFunc("/katib/delete_job/", kuh.DeleteJob) | ||
|
||
http.HandleFunc("/katib/fetch_hp_job_info/", kuh.FetchJobInfo) | ||
http.HandleFunc("/katib/fetch_nas_job_info/", kuh.FetchNASJobInfo) | ||
http.HandleFunc("/katib/fetch_worker_info/", kuh.FetchWorkerInfo) | ||
http.HandleFunc("/katib/fetch_worker_templates/", kuh.FetchWorkerTemplates) | ||
http.HandleFunc("/katib/fetch_collector_templates/", kuh.FetchCollectorTemplates) | ||
http.HandleFunc("/katib/update_template/", kuh.AddEditTemplate) | ||
http.HandleFunc("/katib/delete_template/", kuh.DeleteTemplate) | ||
|
||
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, remove changes in the yaml files.