Skip to content

Commit

Permalink
update docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtrombetta committed Feb 14, 2024
1 parent 84910d8 commit 2e53d1c
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 123 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
needs: [test-check-lint]
environment: deploy #!! DO NOT CHANGE THIS LINE !! #
container:
image: spaceandtimelabs/blitzar:12.3.1-cuda-1.76.0-rust-0
image: rust:1.76
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-check-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,29 @@ jobs:
steps:
- name: Checkout Code Format
uses: actions/checkout@v3
- run: docker run --rm -v "$PWD":/src:ro -w /src --privileged spaceandtimelabs/blitzar:12.3.1-cuda-1.76.0-rust-0 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; /root/.cargo/bin/cargo fmt --all -- --check"
- run: docker run --rm -v "$PWD":/src:ro -w /src --privileged rust:1.76 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; /root/.cargo/bin/cargo fmt --all -- --check"

clippy-code:
name: Clippy Code
runs-on: self-hosted
steps:
- name: Checkout Code
uses: actions/checkout@v3
- run: docker run --rm -v "$PWD":/src:ro -w /src --privileged spaceandtimelabs/blitzar:12.3.1-cuda-1.76.0-rust-0 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; /root/.cargo/bin/rustup component add clippy; /root/.cargo/bin/cargo clippy --all-targets --all-features -- -D warnings"
- run: docker run --rm -v "$PWD":/src:ro -w /src --privileged rust:1.76 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; /root/.cargo/bin/rustup component add clippy; /root/.cargo/bin/cargo clippy --all-targets --all-features -- -D warnings"

test-cpu:
name: Test the CPU backend
runs-on: self-hosted
steps:
- name: Checkout Code
uses: actions/checkout@v3
- run: docker run --rm -v "$PWD":/src:ro -w /src --privileged spaceandtimelabs/blitzar:12.3.1-cuda-1.76.0-rust-0 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; /root/.cargo/bin/cargo test --features cpu"
- run: docker run --rm -v "$PWD":/src:ro -w /src --privileged rust:1.76 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; /root/.cargo/bin/cargo test --features cpu"

test-gpu:
name: Test the GPU backend
runs-on: self-hosted
steps:
- name: Checkout Code
uses: actions/checkout@v3
- run: docker run --rm -v "$PWD":/src:ro -w /src --gpus all --privileged spaceandtimelabs/blitzar:12.3.1-cuda-1.76.0-rust-0 /bin/bash -c "nvidia-smi"
- run: docker run --rm -v "$PWD":/src:ro -w /src --gpus all --privileged spaceandtimelabs/blitzar:12.3.1-cuda-1.76.0-rust-0 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; /root/.cargo/bin/cargo test --features gpu"
- run: docker run --rm -v "$PWD":/src:ro -w /src --gpus all --privileged rust:1.76 /bin/bash -c "nvidia-smi"
- run: docker run --rm -v "$PWD":/src:ro -w /src --gpus all --privileged rust:1.76 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; /root/.cargo/bin/cargo test --features gpu"
24 changes: 0 additions & 24 deletions ci/docker/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions ci/docker/install_bazel.sh

This file was deleted.

20 changes: 0 additions & 20 deletions ci/docker/install_buildifier.sh

This file was deleted.

14 changes: 0 additions & 14 deletions ci/docker/install_clang_format.sh

This file was deleted.

20 changes: 0 additions & 20 deletions ci/docker/install_rust.sh

This file was deleted.

29 changes: 0 additions & 29 deletions ci/docker/setup_build_environment.sh

This file was deleted.

2 changes: 1 addition & 1 deletion ci/run_docker_with_cpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

IMAGE=spaceandtimelabs/blitzar:12.3.1-cuda-1.76.0-rust-0
IMAGE=rust:1.76

# If you don't have a GPU instance configured in your machine
docker run -v "$PWD":/src -w /src --privileged -it "$IMAGE"
2 changes: 1 addition & 1 deletion ci/run_docker_with_gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

IMAGE=spaceandtimelabs/blitzar:12.3.1-cuda-1.76.0-rust-0
IMAGE=rust:1.76

# If you have a GPU instance configured in your machine
docker run -v "$PWD":/src -w /src --gpus all --privileged -it "$IMAGE"

0 comments on commit 2e53d1c

Please sign in to comment.