mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
add semaphore-arm64
This commit is contained in:
parent
9e6c60d517
commit
2c3aaff6b0
27
semaphore/arm64/Dockerfile
Normal file
27
semaphore/arm64/Dockerfile
Normal 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"]
|
36
semaphore/arm64/docker-compose.yml
Normal file
36
semaphore/arm64/docker-compose.yml
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user