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

Docker image #59

Open
Prabhusarathy18 opened this issue Nov 25, 2020 · 8 comments
Open

Docker image #59

Prabhusarathy18 opened this issue Nov 25, 2020 · 8 comments

Comments

@Prabhusarathy18
Copy link

Please check for Dockerized build. Facing multiple issues while creating image and also while docker run.

@wenmin-wu
Copy link
Contributor

Please refer to https://github.com/wenmin-wu/jupyter-tabnine/blob/master/README.md#build-server-image, do let me know if you have any other problems.

@Prabhusarathy18
Copy link
Author

Prabhusarathy18 commented Dec 3, 2020

Thanks for response. Now the image build is very fine. I'm getting CORS issues while specifying remote_server_url in the config file. Is there any fix for this? @wenmin-wu

@wenmin-wu
Copy link
Contributor

Did you modify the code? The CORS issue had been solved here https://github.com/wenmin-wu/jupyter-tabnine/blob/master/go/cmd/server.go#L33

@Prabhusarathy18
Copy link
Author

@wenmin-wu Yes it is working now. But Im not getting any results now. I pointed the remote-url param as http://0.0.0.0:9999/. Also tried by hard-coding inside main.js file. To my understanding the ajax call is loading too long. May be network issue. Please check this once.

Also the image was taken from docker-hub. Also tried with build-script. Both fails for me.

@wenmin-wu
Copy link
Contributor

wenmin-wu commented Dec 6, 2020

Hi @Prabhusarathy18, it's caused by the TabNine binary refer to #60, could you please enter your container and check the TabNine version? I solved this by downloading an old version which is 2.9.2. Currently, you can hard code the version here https://github.com/wenmin-wu/jupyter-tabnine/blob/master/go/pkg/tabnine/tabnine.go#L193 as following:

latestVersion := strings.TrimSpace(string(body))
latestVersion = "2.9.2"
log.Printf("Latest version: %s\n", latestVersion)

It's better to add a parameter to allow users to skip upgrading, will do it when I have time.

@Prabhusarathy18
Copy link
Author

Prabhusarathy18 commented Dec 7, 2020

@wenmin-wu Using 2.9.2 version. Still facing same issue. The version was hardcoded in tabnine.go file. Also checked inside the container. Pls help

@Prabhusarathy18
Copy link
Author

@wenmin-wu I think server inside the container is stopping. At first the container memory is 100+MB but after 10-15 sec it is under 10MB. So it is understood that some process inside the container is killed after 10-15sec. Also I checked with latest version of TabNine 3.2.28 which was specified #60. Please check this.

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