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

Fix DevContainer Python deps and build speed #73

Merged
merged 6 commits into from
Aug 20, 2024
Merged
Changes from 1 commit
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
19 changes: 5 additions & 14 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ ENV PATH="/venv/bin:$PATH"
# FIXME - pip is out of date, find a better way
RUN pip install --upgrade pip

RUN pip install wheel yapf cpplint
RUN pip install wheel yapf cpplint zarr xarray

RUN pip install \
"poetry==$POETRY_VERSION" \
Expand All @@ -84,19 +84,10 @@ RUN chmod -R 777 /workspaces
RUN wget https://github.com/sharkdp/hyperfine/releases/download/v${HYPERFINE}/hyperfine_${HYPERFINE}_amd64.deb \
&& dpkg -i hyperfine_${HYPERFINE}_amd64.deb

# this can be slow if you don't have a large number of cpus
RUN mkdir -p /apps/cmake \
&& cd /apps/cmake \
&& wget https://cmake.org/files/v${CMAKE_MAJOR}/cmake-${CMAKE_VERSION}.tar.gz \
&& tar -xzvf cmake-${CMAKE_VERSION}.tar.gz \
&& rm cmake-${CMAKE_VERSION}.tar.gz \
&& cd cmake-${CMAKE_VERSION} \
&& ./bootstrap --system-curl \
&& make -j$(nproc) \
&& make install \
&& cd / \
&& rm -rf /apps/cmake \
&& ldconfig
RUN wget https://cmake.org/files/v${CMAKE_MAJOR}/cmake-${CMAKE_VERSION}-linux-x86_64.sh \
&& chmod +x cmake-${CMAKE_VERSION}-linux-x86_64.sh \
&& ./cmake-${CMAKE_VERSION}-linux-x86_64.sh --skip-license --prefix=/usr/local \
&& rm cmake-${CMAKE_VERSION}-linux-x86_64.sh


ENV PYTHONPATH "${PYTHONPATH}:/workspaces/multidimio-cpp/multidimio-cpp"
Expand Down