Skip to content

Commit

Permalink
build docker and run
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-pfeiffer committed Aug 20, 2024
1 parent 01de3f7 commit 990b04d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-docker-and-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build the Docker Image and Run

on:
push:
branches: [ main, docker_test ]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.10.11
- name: Clean Docker images
run: |-
echo "Available storage before cleaning:"
df -h
docker system prune --all --force
echo "Available storage:"
df -h
echo "Removing dotnet"
sudo rm -rf /usr/share/dotnet
echo "Available storage:"
df -h
- name: Docker Build Image
run: |-
docker build -t h2o-llmstudio .
- name: Run the Docker Image
run: |-
nvidia-smi
mkdir llmstudio_mnt
docker run --runtime=nvidia --shm-size=64g --init --rm -it -u `id -u`:`id -g` -p 10101:10101 -v $(pwd)/llmstudio_mnt:/home/llmstudio/mount h2o-llmstudio

0 comments on commit 990b04d

Please sign in to comment.