Skip to content

Commit

Permalink
Fixed docker build actions (#1)
Browse files Browse the repository at this point in the history
* Update docker-build.yml

* Update README.md

* Update docker-build.yml

* Update docker-build.yml

* Update Dockerfile

* Update docker-build.yml

* Update docker-build.yml

* Update docker-build.yml

* Update docker-build.yml

* Update docker-build.yml

* Update docker-build.yml

Make use of extra drive

* Update docker-build.yml
  • Loading branch information
finnBsch authored Mar 4, 2025
1 parent 57fbb31 commit a684a0a
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 20 deletions.
70 changes: 52 additions & 18 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,42 @@
name: Docker Build

on:
push:
branches: [ main, master ] # Adjust based on your primary branch name
branches: [ main, devel ]
pull_request:
branches: [ main, master ]

branches: [ main, devel ]
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Configure Docker to use extra disk space
run: |
echo "Disk space before reconfiguration:"
df -h
# Stop Docker service
sudo systemctl stop docker
# Create new Docker data directory on the secondary disk
sudo mkdir -p /mnt/docker
# Configure Docker to use the new location
echo '{
"data-root": "/mnt/docker"
}' | sudo tee /etc/docker/daemon.json
# Restart Docker service
sudo systemctl start docker
sudo systemctl status docker
echo "Disk space after reconfiguration:"
df -h
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Print Docker and Docker Compose versions
run: |
Expand All @@ -23,9 +47,21 @@ jobs:
echo "System info:"
uname -a
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Free up disk space
run: |
echo "Disk space before cleanup:"
df -h
# Remove unnecessary large packages
# sudo rm -rf /usr/share/dotnet
# sudo rm -rf /usr/local/lib/android
# sudo rm -rf /opt/ghc
# sudo rm -rf /opt/hostedtoolcache
# sudo rm -rf "$AGENT_TOOLSDIRECTORY"
# sudo apt-get autoremove -y
# sudo apt-get clean
echo "Disk space after cleanup:"
df -h
- name: List files in directory
run: |
echo "Repository contents:"
Expand All @@ -35,20 +71,18 @@ jobs:
- name: Build with Docker Compose
run: |
# Create a temporary directory on the secondary disk for any build artifacts
sudo mkdir -p /mnt/build-tmp
sudo chown $USER:$USER /mnt/build-tmp
echo "Starting Docker Compose build..."
docker compose build --progress=plain
# Use DOCKER_BUILDKIT=1 for more efficient builds
DOCKER_BUILDKIT=1 docker compose build --progress=plain
echo "Docker Compose build completed successfully!"
- name: List built images
run: |
echo "Built Docker images:"
docker images
# Optional - Add a test step that runs your container
# - name: Test container
# run: |
# docker compose up -d
# echo "Container is running. Docker status:"
# docker ps
# # Add any test commands here
# docker compose down
echo "Disk usage:"
df -h
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ RUN apt update && apt install -y --no-install-recommends \
python-is-python3\
libjpeg-dev libglm-dev libgl1-mesa-glx libegl1-mesa-dev mesa-utils xorg-dev freeglut3-dev \
unzip &&\
apt-get clean all &&\
rm -rf /var/lib/apt/lists/*

# #
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
<a href="https://www.finnbusch.com/OneMap/">Project Website</a> , <a href="https://arxiv.org/pdf/2409.11764">Paper (arXiv)</a>
</p>
</p>
[![Docker Build](https://github.com/KTH-RPL/OneMap/actions/workflows/docker-build.yml/badge.svg)](https://github.com/KTH-RPL/OneMap/actions/workflows/docker-build.yml)

<p align="center">
<a href="https://github.com/KTH-RPL/OneMap/actions/workflows/docker-build.yml">
<img src="https://github.com/KTH-RPL/OneMap/actions/workflows/docker-build.yml/badge.svg" alt="Docker Build">
</a>
</p>

This repository contains the code for the paper "One Map to Find Them All: Real-time Open-Vocabulary Mapping for
Zero-shot Multi-Object Navigation". We provide a [dockerized environment](#setup-docker) to run the code or
Expand Down

0 comments on commit a684a0a

Please sign in to comment.