Skip to content

Commit

Permalink
added clean ups
Browse files Browse the repository at this point in the history
  • Loading branch information
yfukai committed Aug 5, 2024
1 parent 15e26e5 commit 16f6854
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,22 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
- name: Build and push Docker image (JAX conda CPU)
Expand All @@ -121,6 +137,23 @@ jobs:
build-args: |
JAX_VERSION=${{ env.JAX_VERSION }}
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true


- name: Build and push Docker image (JAX conda GPU)
id: build-and-push-jax-conda-gpu
uses: docker/build-push-action@v5
Expand Down
6 changes: 3 additions & 3 deletions test-cpu.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version="0.3.1"
version="0.3.5"

docker pull ghcr.io/yfukai/basicpy-docker-mcmicro:${version}
docker run --rm -v $(pwd)/testdata:/data ghcr.io/yfukai/basicpy-docker-mcmicro:${version} -d=cpu -i /data/exemplar-001-cycle-06.ome.tiff -o /data/
docker run --rm -v $(pwd)/testdata:/data ghcr.io/yfukai/basicpy-docker-mcmicro:${version} /opt/main.py -d=cpu -i /data/exemplar-001-cycle-06.ome.tiff -o /data/
docker pull ghcr.io/yfukai/basicpy-docker-mcmicro:latest
docker run --rm -v $(pwd)/testdata:/data ghcr.io/yfukai/basicpy-docker-mcmicro:latest -d=cpu -i /data/exemplar-001-cycle-06.ome.tiff -o /data/
docker run --rm -v $(pwd)/testdata:/data ghcr.io/yfukai/basicpy-docker-mcmicro:latest /opt/main.py -d=cpu -i /data/exemplar-001-cycle-06.ome.tiff -o /data/
2 changes: 1 addition & 1 deletion test-gpu.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version="0.3.1"
version="0.3.5"

docker pull ghcr.io/yfukai/basicpy-docker-mcmicro:${version}-cuda
docker run --rm -v $(pwd)/testdata:/data ghcr.io/yfukai/basicpy-docker-mcmicro:${version}-cuda -d=gpu -i /data/exemplar-001-cycle-06.ome.tiff -o /data/
Expand Down

0 comments on commit 16f6854

Please sign in to comment.