Skip to content

Commit

Permalink
Reverting #211 and #206
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaspadilha committed Nov 29, 2024
1 parent ae242c4 commit 59c405e
Show file tree
Hide file tree
Showing 793 changed files with 1,102 additions and 56,801 deletions.
62 changes: 0 additions & 62 deletions .devcontainer/devcontainer.json

This file was deleted.

71 changes: 0 additions & 71 deletions .devcontainer/post-create.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .gitattributes

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/base-build.yml

This file was deleted.

96 changes: 96 additions & 0 deletions .github/workflows/cluster-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Build FarmVibes.AI cluster
run-name: Cluster build and helloworld test
on: [push, pull_request, workflow_dispatch]
env:
FARMVIBES_AI_SKIP_DOCKER_FREE_SPACE_CHECK: yes
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Free space before cleanup
shell: bash
run: |
echo "Memory and swap:"
free -h
echo
echo "Available storage:"
df -h
echo
- name: Remove unused software
shell: bash
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -fr /usr/local/lib/android
sudo rm -fr /opt/ghc
- name: Free space after cleanup
shell: bash
run: |
echo "Memory and swap:"
free -h
echo
echo "Available storage:"
df -h
echo
- name: Update pip version
shell: bash
run: pip install --upgrade pip

- name: Checkout
uses: actions/checkout@v3

- name: Install Python requirements
shell: bash
run: pip install --user ./src/vibe_core

- name: Actually build cluster
shell: bash
run: farmvibes-ai local setup

- name: Cluster status
shell: bash
run: |
echo "Deployments:"
kubectl get deployments
kubectl describe deployments
echo "Pods:"
kubectl get pods
echo "Events:"
kubectl get events
- name: Free space after cluster creation
shell: bash
run: |
echo "Memory and swap:"
free -h
echo
echo "Available storage:"
df -h
echo
- name: Run Hello World workflow
shell: bash
run: python -m vibe_core.farmvibes_ai_hello_world 300

- name: Install tool to view helloworld output
shell: bash
run: yes | sudo apt install caca-utils || echo

- name: Show helloworld output
shell: bash
run: find ~/.cache/farmvibes-ai/data -type f -name '*.tif' -exec img2txt {} \; 2> /dev/null

- name: Restart cluster
shell: bash
run: farmvibes-ai local restart

- name: Wait a bit before submitting a new run (as documented)
shell: bash
run: sleep 90

- name: Run Hello World workflow again
shell: bash
run: |
rm -fr ~/.cache/farmvibes-ai/data/{assets,stac}
python -m vibe_core.farmvibes_ai_hello_world 300
41 changes: 0 additions & 41 deletions .github/workflows/docker-build.yml

This file was deleted.

Loading

0 comments on commit 59c405e

Please sign in to comment.