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

🐳 Update Containers and Readme #952

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 9 additions & 1 deletion .ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

```bash
sudo docker run --gpus all \
--shm-size=256M\
--shm-size=2G\
-i -t --mount type=bind,source=<path-to-datasets>,target=/home/user/datasets,readonly\
-d --name anomalib-ci-container anomalib-ci
```
Expand Down Expand Up @@ -51,3 +51,11 @@
Follow the instructions on the screen to complete the installation.

1. Now the container is ready. Type `exit` to leave the container.

1. Start github actions runner in detached mode in the container and set the
the anomalib dataset environment variables.

```bash
sudo docker exec -d anomalib-ci-container /bin/bash -c \
"export ANOMALIB_DATASET_PATH=/home/user/datasets && /home/user/actions-runner/run.sh"
```
2 changes: 1 addition & 1 deletion .ci/cuda10.2.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN add-apt-repository ppa:git-core/ppa &&\
rm -rf /var/lib/apt/lists/*

# Prettier requires atleast nodejs 10
RUN curl -sL https://deb.nodesource.com/setup_14.x > nodesetup.sh && \
RUN curl -sL https://deb.nodesource.com/setup_current.x > nodesetup.sh && \
bash - nodesetup.sh && \
apt-get install --no-install-recommends -y nodejs && \
apt-get clean && \
Expand Down
8 changes: 7 additions & 1 deletion .ci/cuda11.4.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ RUN apt-get update && \
wget \
ffmpeg \
libpython3.8 \
nodejs \
npm \
pandoc \
ruby \
Expand All @@ -48,6 +47,13 @@ RUN curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh >
ENV PATH "/home/user/conda/bin:${PATH}"
RUN conda install python=3.8

# Prettier requires atleast nodejs 10 and actions/checkout requires nodejs 16
RUN curl -sL https://deb.nodesource.com/setup_current.x > nodesetup.sh && \
bash - nodesetup.sh && \
apt-get install --no-install-recommends -y nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*


#########################################################
## Anomalib Development Env
Expand Down