Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build-release:
uses: hatlabs/shared-workflows/.github/workflows/build-release.yml@main
with:
package-name: halpi2-daemon
package-name: halpid
package-description: 'HALPI2 hardware daemon (Python implementation)'
apt-component: hatlabs
runs-on: ubuntu-latest-arm64
Expand Down
32 changes: 0 additions & 32 deletions docker/Dockerfile.debtools

This file was deleted.

53 changes: 53 additions & 0 deletions docker/Dockerfile.devtools
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Development environment for HALPI2-daemon
#
# Provides a Debian Bookworm environment with all development and build tools.
# Used for testing, linting, and Debian package building.

FROM debian:bookworm

# Install system dependencies including Debian packaging tools
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-venv \
python3-dev \
debhelper \
dh-python \
pybuild-plugin-pyproject \
build-essential \
fakeroot \
devscripts \
dpkg-dev \
python3-all \
python3-setuptools \
curl \
git \
sudo \
&& rm -rf /var/lib/apt/lists/*

# Create non-root user for development
ARG USERNAME=builder
ARG USER_UID=1000
ARG USER_GID=$USER_UID

RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
&& echo "$USERNAME ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME

# Install uv system-wide
RUN curl -LsSf https://astral.sh/uv/install.sh | sh \
&& mv /root/.local/bin/uv /usr/local/bin/uv \
&& mv /root/.local/bin/uvx /usr/local/bin/uvx

# Set PATH for all users
ENV PATH="/usr/local/bin:${PATH}"

# Switch to non-root user
USER $USERNAME

# Set working directory
WORKDIR /workspace

# Default command
CMD ["/bin/bash"]
17 changes: 0 additions & 17 deletions docker/docker-compose.debtools.yml

This file was deleted.

23 changes: 23 additions & 0 deletions docker/docker-compose.devtools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
services:
devtools:
build:
context: .
dockerfile: Dockerfile.devtools
image: halpi2-daemon-devtools:latest

# Mount the project directory
volumes:
- ..:/workspace

# Working directory
working_dir: /workspace

# Keep container running for interactive use
stdin_open: true
tty: true

# Run as non-root user
user: builder

# Override command for interactive use
command: /bin/bash
Loading