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

Cache build image? #27

Open
angrave opened this issue Sep 14, 2022 · 2 comments
Open

Cache build image? #27

angrave opened this issue Sep 14, 2022 · 2 comments
Assignees

Comments

@angrave
Copy link
Collaborator

angrave commented Sep 14, 2022

Can we reduce the build time from 10 minutes to 20 seconds by building an image of all of the non-code parts?

https://github.com/classtranscribe/pyapi/blob/staging/Dockerfile

i.e. All of the non-source code parts of the current Dockerfile (e.g. tesseract) (upto line 25 or line 35)

@angrave angrave assigned angrave and robkooper and unassigned angrave Sep 14, 2022
@robkooper
Copy link
Collaborator

Need to pick up #7 again, this should use cache (as well as push for arm instances).

@angrave
Copy link
Collaborator Author

angrave commented Sep 14, 2022

A little offtopic- Not caching but still about dockerfile tuning-

Should we add
ionice, nice and python3 -u (unbuffered) to the command?

  • similar to pythonrpcserver dockerfile in WebAPI -

https://github.com/classtranscribe/WebAPI/blob/staging/pythonrpcserver.Dockerfile

Nice:Very low priority but not lowest priority (18 out of 19)

#ionice: Best effort class but second lowest priory (6 out of 7)
CMD [ "nice","-n","18", "ionice","-c","2","-n","6", "python3", "-u", "/PythonRpcServer/server.py" ]

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