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

Install a specific package to Code Execution #403

Open
chr1s3sw0rthy opened this issue Sep 4, 2024 · 1 comment
Open

Install a specific package to Code Execution #403

chr1s3sw0rthy opened this issue Sep 4, 2024 · 1 comment

Comments

@chr1s3sw0rthy
Copy link

I want to add openpyxl to the installed packaged ( it is not by default).

I added this to /ces_container/Dockerfile

Copy the requrements file

COPY requirements.txt .
RUN pip install --no-cache-dir --no-warn-script-location -r requirements.txt

TODO: Install additional packages for plugins

RUN pip install --no-cache-dir --no-warn-script-location --user openpyxl

for good measure, I added openpyxl to requirements.txt too.

when I run ./build_executor, It creates a docker image that contains openpyxl. All good.

When I enter a prompt that executes code, TW finds that the image installed is not right, so I pulls :latest from docker.io.

Can someone offer some guidance?

@liqul
Copy link
Contributor

liqul commented Oct 10, 2024

Thanks for raising this issue. The current behavior is TW always downloads the :last image from docker.io. A next PR is planned to fix this issue.

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