Skip to content

Commit

Permalink
🐳 Update Containers and Readme (#952)
Browse files Browse the repository at this point in the history
* Update readme + use latest nodejs in images

* Increase shm size

---------

Co-authored-by: Ashwin Vaidya <ashwinitinvaidya@gmail.com>
  • Loading branch information
ashwinvaidya17 and Ashwin Vaidya authored Mar 9, 2023
1 parent 5cadb65 commit 522858f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
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

0 comments on commit 522858f

Please sign in to comment.