Skip to content

Conversation

@z0u
Copy link

@z0u z0u commented Nov 9, 2024

Pull configured models when the container is created, rather than when the image is built. Otherwise they may be pulled as root and be inaccessible to the user.

📑 Description

  • install.sh writes the contents of PULL to /usr/local/share/ollama/models.txt
  • install.sh creates /usr/local/share/ollama/pull.sh, which pulls each model specified in models.txt
  • Added an onCreateCommand that executes pull.sh.

✅ Checks

  • My pull request adheres to the code style of this project
  • I have updated the documentation as required
  • All the tests have passed

ℹ️ Additional Information

Pull configured models when the container is created, rather than when
the image is built. Otherwise they may be pulled as root and be
inaccessible to the user.
MIT License

Copyright (c) 2022 Microsoft Corporation
Copyright (c) 2024 Alex Fraser
Copy link
Owner

@prulloac prulloac Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't edit copyright license

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

Successfully merging this pull request may close these issues.

2 participants