semaphore (sha256:ba53b65ae1be988adda769e7ae97d10d495b7e3ccca7a86b3264703e1448967b)
Published 2025-05-11 19:42:36 +00:00 by mconway
Installation
docker pull git.conways.info/mconway/semaphore@sha256:ba53b65ae1be988adda769e7ae97d10d495b7e3ccca7a86b3264703e1448967bsha256:ba53b65ae1be988adda769e7ae97d10d495b7e3ccca7a86b3264703e1448967bImage layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1745798400' |
| ARG TARGETARCH=amd64 |
| ARG ANSIBLE_VERSION=11.1.0 |
| ENV ANSIBLE_VERSION=11.1.0 |
| ARG ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv |
| RUN |3 TARGETARCH=amd64 ANSIBLE_VERSION=11.1.0 ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv /bin/sh -c rm /bin/sh && ln -s /bin/bash /bin/sh # buildkit |
| RUN |3 TARGETARCH=amd64 ANSIBLE_VERSION=11.1.0 ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv /bin/sh -c apt update && apt install -y sshpass git curl ansible openssh-client tini python3-aiohttp tzdata wget netcat-traditional cron vim && adduser --disabled-login --uid 1001 --ingroup root semaphore && mkdir -p /tmp/semaphore && mkdir -p /etc/semaphore && mkdir -p /var/lib/semaphore && mkdir -p /opt/semaphore && chown -R semaphore:0 /tmp/semaphore && chown -R semaphore:0 /etc/semaphore && chown -R semaphore:0 /var/lib/semaphore && chown -R semaphore:0 /opt/semaphore && find /usr/lib/python* -iname __pycache__ | xargs rm -rf # buildkit |
| COPY --chown=1001:0 ./deployment/docker/server/ansible.cfg /etc/ansible/ansible.cfg # buildkit |
| COPY /go/src/semaphore/deployment/docker/server/server-wrapper /usr/local/bin/ # buildkit |
| COPY /go/src/semaphore/bin/semaphore /usr/local/bin/ # buildkit |
| COPY /tmp/tofu /usr/local/bin/ # buildkit |
| COPY /tmp/terraform /usr/local/bin/ # buildkit |
| COPY ./deployment/docker/deb/bin/bw_unlock /usr/local/bin/ # buildkit |
| COPY ./deployment/docker/deb/cron-bw-unlock /etc/cron.d/cron-bw-unlock # buildkit |
| RUN |3 TARGETARCH=amd64 ANSIBLE_VERSION=11.1.0 ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv /bin/sh -c wget -O /usr/local/bin/bw https://nexus.conways.info/repository/FluenceFiles/executables/bw # buildkit |
| RUN |3 TARGETARCH=amd64 ANSIBLE_VERSION=11.1.0 ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv /bin/sh -c chmod +x /usr/local/bin/bw # buildkit |
| RUN |3 TARGETARCH=amd64 ANSIBLE_VERSION=11.1.0 ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv /bin/sh -c chmod 0644 /etc/cron.d/cron-bw-unlock # buildkit |
| RUN |3 TARGETARCH=amd64 ANSIBLE_VERSION=11.1.0 ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv /bin/sh -c crontab /etc/cron.d/cron-bw-unlock # buildkit |
| RUN |3 TARGETARCH=amd64 ANSIBLE_VERSION=11.1.0 ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv /bin/sh -c touch /var/log/cron.log # buildkit |
| RUN |3 TARGETARCH=amd64 ANSIBLE_VERSION=11.1.0 ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv /bin/sh -c chmod g+w /etc/environment # buildkit |
| RUN |3 TARGETARCH=amd64 ANSIBLE_VERSION=11.1.0 ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv /bin/sh -c chmod g+w /etc # buildkit |
| RUN |3 TARGETARCH=amd64 ANSIBLE_VERSION=11.1.0 ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv /bin/sh -c wget https://raw.githubusercontent.com/ansible-collections/community.general/787fa4621763879dae26c57aaf0028941dcaaefc/plugins/lookup/bitwarden.py -O /usr/lib/python3/dist-packages/ansible_collections/community/general/plugins/lookup/bitwarden.py # buildkit |
| RUN |3 TARGETARCH=amd64 ANSIBLE_VERSION=11.1.0 ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv /bin/sh -c chown -R semaphore:0 /usr/local/bin/server-wrapper && chmod +x /usr/local/bin/server-wrapper && chown -R semaphore:0 /usr/local/bin/semaphore && chmod +x /usr/local/bin/semaphore && chown -R semaphore:0 /usr/local/bin/bw # buildkit |
| WORKDIR /home/semaphore |
| RUN |3 TARGETARCH=amd64 ANSIBLE_VERSION=11.1.0 ANSIBLE_VENV_PATH=/opt/semaphore/apps/ansible/11.1.0/venv /bin/sh -c apt update && apt install -y python3-dev python3-venv build-essential libcurl4-openssl-dev libffi-dev cargo && mkdir -p ${ANSIBLE_VENV_PATH} && python3 -m venv ${ANSIBLE_VENV_PATH} --system-site-packages && source ${ANSIBLE_VENV_PATH}/bin/activate && pip3 install --upgrade pip ansible==${ANSIBLE_VERSION} boto3 botocore requests pywinrm && apt remove --purge -y python3-dev build-essential libcurl4-openssl-dev libffi-dev cargo && apt clean && find ${ANSIBLE_VENV_PATH} -iname __pycache__ | xargs rm -rf && chown -R semaphore:0 /opt/semaphore # buildkit |
| USER 1001 |
| EXPOSE map[3000/tcp:{}] |
| ENV VIRTUAL_ENV=/opt/semaphore/apps/ansible/11.1.0/venv |
| ENV PATH=/opt/semaphore/apps/ansible/11.1.0/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENTRYPOINT ["/bin/tini" "--"] |
| CMD ["/usr/local/bin/bw_unlock"] |
Details
2025-05-11 19:42:36 +00:00
Versions (2)
View all
Container
2
OCI / Docker
linux/amd64
787 MiB
debian-bw-20250511
2025-05-11
debian-bw-20250507
2025-05-09