add semaphore-arm64

This commit is contained in:
kev 2021-12-01 10:53:38 +08:00
parent 9e6c60d517
commit 2c3aaff6b0
3 changed files with 63 additions and 1 deletions

View File

@ -0,0 +1,27 @@
#
# Dockerfile for semaphore-arm64
#
FROM debian:bullseye
MAINTAINER EasyPi Software Foundation
ENV APP_VERSION=2.8.22
ENV APP_ARCH=arm64
ENV APP_FILE=semaphore_${APP_VERSION}_linux_${APP_ARCH}.deb
ENV APP_URL=https://github.com/ansible-semaphore/semaphore
ENV APP_PACKAGE_URL=${APP_URL}/releases/download/v${APP_VERSION}/${APP_FILE}
ENV APP_WRAPPER_URL=${APP_URL}/raw/v${APP_VERSION}/deployment/docker/common/semaphore-wrapper
RUN set -xe \
&& apt update \
&& apt install -y ansible netcat tini wget \
&& wget ${APP_PACKAGE_URL} -O ${APP_FILE} \
&& wget ${APP_WRAPPER_URL} -O /usr/bin/semaphore-wrapper \
&& chmod +x /usr/bin/semaphore-wrapper \
&& (dpkg -i ${APP_FILE} || apt -f install -y) \
&& rm -rf ${APP_FILE} /var/lib/apt/lists/*
EXPOSE 3000
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["/usr/bin/semaphore-wrapper", "/usr/bin/semaphore", "--config", "/etc/semaphore/config.json"]

View File

@ -0,0 +1,36 @@
version: "3.8"
services:
semaphore:
image: easypi/semaphore-arm64
ports:
- "3000:3000"
volumes:
- ./data/semaphore:/etc/semaphore
environment:
SEMAPHORE_DB_DIALECT: postgres
SEMAPHORE_DB_USER: semaphore
SEMAPHORE_DB_PASS: semaphore
SEMAPHORE_DB_HOST: postgres
SEMAPHORE_DB_PORT: 5432
SEMAPHORE_DB: semaphore?sslmode=disable
SEMAPHORE_ADMIN: admin
SEMAPHORE_ADMIN_NAME: admin
SEMAPHORE_ADMIN_PASSWORD: admin
SEMAPHORE_ADMIN_EMAIL: admin@localhost
depends_on:
- postgres
restart: unless-stopped
postgres:
image: postgres:14-alpine
ports:
- "5432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: semaphore
POSTGRES_PASSWORD: semaphore
POSTGRES_DB: semaphore
restart: unless-stopped

View File

@ -15,7 +15,6 @@ services:
SEMAPHORE_DB_HOST: postgres
SEMAPHORE_DB_PORT: 5432
SEMAPHORE_DB: semaphore?sslmode=disable
SEMAPHORE_PLAYBOOK_PATH: /tmp/semaphore/
SEMAPHORE_ADMIN: admin
SEMAPHORE_ADMIN_NAME: admin
SEMAPHORE_ADMIN_PASSWORD: admin