39 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
ARG BUILD_FROM
 | 
						|
FROM $BUILD_FROM
 | 
						|
 | 
						|
ENV LANG C.UTF-8
 | 
						|
 | 
						|
# Setup base system
 | 
						|
ARG \
 | 
						|
  BUILD_ARCH
 | 
						|
 | 
						|
# Install necessary dependencies
 | 
						|
RUN apk add --no-cache git docker-cli python3 py3-pip && \
 | 
						|
    curl -s https://raw.githubusercontent.com/nektos/act/master/install.sh | bash
 | 
						|
RUN adduser -s /bin/false -D -H actrunner
 | 
						|
# Create a directory for the virtual environment and install Ansible inside it
 | 
						|
RUN python3 -m venv /opt/ansible-venv && \
 | 
						|
    /opt/ansible-venv/bin/pip install --no-cache-dir ansible
 | 
						|
 | 
						|
# Optional: Additional steps for SSH/GitHub authentication or configuration
 | 
						|
 | 
						|
# Copy your add-on scripts and configuration files
 | 
						|
COPY rootfs /
 | 
						|
RUN chmod +x /etc/services.d/actrunner/*
 | 
						|
 | 
						|
# Labels
 | 
						|
LABEL \
 | 
						|
    io.hass.name="Act Runner" \
 | 
						|
    io.hass.description="Gitea act runner" \
 | 
						|
    io.hass.arch="${BUILD_ARCH}" \
 | 
						|
    io.hass.type="addon" \
 | 
						|
    io.hass.version="v0.0.0"\
 | 
						|
    maintainer="feres mezned" \
 | 
						|
    org.opencontainers.image.title="Act runner" \
 | 
						|
    org.opencontainers.image.description="Gitea act runner" \
 | 
						|
    org.opencontainers.image.vendor="Home Assistant Local Add-ons" \
 | 
						|
    org.opencontainers.image.authors="Feres MEZNED" \
 | 
						|
    org.opencontainers.image.licenses="NO" \
 | 
						|
    org.opencontainers.image.url="https://mezgit.duckdns.org/mezned/HAddons" \
 | 
						|
    org.opencontainers.image.source="https://mezgit.duckdns.org/mezned/HAddons/gitea_act_runner" 
 |