Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ RUN apt update
# Rust envvars
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
RUST_VERSION=1.81.0
RUST_VERSION=1.81.0 \
VIRTUAL_ENV=/var/local/python-venv \
PATH=/usr/local/cargo/bin:$VIRTUAL_ENV:$PATH

# == node ======================
FROM base AS node
Expand All @@ -30,7 +31,8 @@ RUN --mount=type=cache,target=/var/cache/apt,id=framework-runtime-python \
python3-setuptools \
python3-wheel \
python3-dev \
python3-venv
python3-venv \
&& python3 -m venv $VIRTUAL_ENV

# == R ===========================
FROM base AS r
Expand Down
8 changes: 7 additions & 1 deletion tests/dataloader-languages.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { binaryVersionTest } from "./index.ts";
import { test } from "node:test";
import { binaryVersionTest, runCommandInContainer } from "./index.ts";

const dataLoaderLanguages = [
{ binary: "node", semver: "^20.17" },
Expand Down Expand Up @@ -33,3 +34,8 @@ const dataLoaderLanguages = [
];

dataLoaderLanguages.forEach(binaryVersionTest);

await test(`A Python virtual environment is activated`, async () => {
// should not throw
await runCommandInContainer(["pip", "install", "requests"]);
});
Loading