Move containers to a dedicated org path

This commit is contained in:
zontreck 2025-03-09 18:07:56 -07:00
parent fe8f7d2a11
commit da7e2210b7
21 changed files with 144 additions and 108 deletions

15
DIND/Agent/Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM git.zontreck.com/packages/dind:latest
ENV DOCKER_AGENT_SECRET NAN
ENV DOCKER_USER NAN
ENV DOCKER_PASSWORD NAN
ADD entrypoint.sh /
RUN chmod +x /entrypoint.sh
RUN apt-get install -y openjdk-17-jre
RUN mkdir /builder
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]

29
DIND/Agent/entrypoint.sh Normal file
View file

@ -0,0 +1,29 @@
#!/bin/bash
if [ -d /keys ]
then
echo "Installing SSH Keys..."
mkdir -pv $HOME/.ssh
cp -v /keys/id_rsa $HOME/.ssh/
cp -v /keys/id_rsa.pub $HOME/.ssh/
chmod 0600 $HOME/.ssh/id_rsa
sleep 10
fi
echo "Logging into Docker..."
docker login git.zontreck.com -u "$DOCKER_USER" -p "$DOCKER_PASSWORD"
sleep 10
echo "Downloading Agent..."
cd /
curl -sO https://ci.zontreck.com/jnlpJars/agent.jar
echo "Connecting agent"
java -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -jar /agent.jar -url "https://ci.zontreck.com" -secret "$DOCKER_AGENT_SECRET" -name "BuilderHost" -workDir "/builder"
echo "Container stopping or crashed"
sleep 5

10
DIND/Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM git.zontreck.com/packages/debian:build
ENV HOME /root
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y docker-compose curl moreutils
USER root
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]

11
DIND/Wings/Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM git.zontreck.com/packages/dind:latest
RUN curl -L -o /usr/local/bin/wings "https://github.com/pelican-dev/wings/releases/latest/download/wings_linux_$([[ "$(uname -m)" == "x86_64" ]] && echo "amd64" || echo "arm64")"
RUN mkdir -pv /etc/pelican /var/run/wings
RUN chmod u+x /usr/local/bin/wings
ADD ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/bin/bash" "/entrypoint.sh"]

2
DIND/Wings/entrypoint.sh Normal file
View file

@ -0,0 +1,2 @@
#!/bin/bash
wings