-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: dockerfile cleanup, Makefile expansion
- Loading branch information
Showing
3 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ ENV CUDA_HOME=/usr/local/cuda | |
ENV PATH=${CUDA_HOME}/bin:${PATH} | ||
ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH} | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app/ | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
ca-certificates \ | ||
|
@@ -18,17 +22,13 @@ RUN apt-get update && apt-get install -y \ | |
&& apt-get clean \ | ||
&& apt-get purge -y \ | ||
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ \ | ||
&& rm -rf /tmp/* /var/tmp/* | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app/ | ||
|
||
RUN pip install --no-cache-dir -e .[cuda,scrape] \ | ||
&& rm -rf /tmp/* /var/tmp/* \ | ||
&& pip install --no-cache-dir -e .[cuda] \ | ||
nx-parallel \ | ||
python-graphblas \ | ||
ipython \ | ||
&& mkdir -p ~/.nxbench/data | ||
&& mkdir -p ~/.nxbench/data \ | ||
&& rm -rf /root/.cache/pip | ||
|
||
ENV NXBENCH_HOME=/root/.nxbench | ||
ENV NXBENCH_CONFIG_FILE=/app/configs/example.yaml | ||
|
@@ -38,4 +38,4 @@ CMD ["nxbench"] | |
LABEL maintainer="Derek Alexander <[email protected]>" | ||
LABEL description="Container image for nxbench graph algorithm benchmarking suite" | ||
LABEL version="0.1.0" | ||
LABEL org.opencontainers.image.source="https://github.com/dpys/nxbench" | ||
LABEL org.opencontainers.image.source="https://github.com/dpys/nxbench" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,6 +190,7 @@ exclude = [ | |
".venv", | ||
"__pypackages__", | ||
"_build", | ||
"docker/**", | ||
"buck-out", | ||
"build", | ||
"dist", | ||
|