diff --git a/semaphore/arm64/Dockerfile b/semaphore/arm64/Dockerfile index 163164e..cc8e302 100644 --- a/semaphore/arm64/Dockerfile +++ b/semaphore/arm64/Dockerfile @@ -5,12 +5,12 @@ 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 +ARG APP_VERSION=2.8.53 +ARG APP_ARCH=arm64 +ARG APP_FILE=semaphore_${APP_VERSION}_linux_${APP_ARCH}.deb +ARG APP_URL=https://github.com/ansible-semaphore/semaphore +ARG APP_PACKAGE_URL=${APP_URL}/releases/download/v${APP_VERSION}/${APP_FILE} +ARG APP_WRAPPER_URL=${APP_URL}/raw/v${APP_VERSION}/deployment/docker/common/semaphore-wrapper RUN set -xe \ && apt update \ diff --git a/semaphore/arm64/README.md b/semaphore/arm64/README.md new file mode 100644 index 0000000..a72c09c --- /dev/null +++ b/semaphore/arm64/README.md @@ -0,0 +1,13 @@ +semaphore-arm64 +=============== + +## up and running + +```bash +$ docker-compose run --rm semaphore bash +>>> semaphore user add --admin --login admin --name admin --password admin --email admin@example.com +>>> git config --global pull.ff only +>>> exit +$ docker-compose up -d +$ curl http://localhost:3000 +``` diff --git a/semaphore/arm64/data/etc/config.json b/semaphore/arm64/data/etc/config.json new file mode 100644 index 0000000..212f561 --- /dev/null +++ b/semaphore/arm64/data/etc/config.json @@ -0,0 +1,6 @@ +{ + "dialect": "bolt", + "bolt": { + "host": "/var/lib/semaphore/semaphore.bolt" + } +} diff --git a/semaphore/arm64/docker-compose.yml b/semaphore/arm64/docker-compose.yml index 80385fd..e87b50e 100644 --- a/semaphore/arm64/docker-compose.yml +++ b/semaphore/arm64/docker-compose.yml @@ -1,36 +1,16 @@ version: "3.8" - services: - semaphore: image: easypi/semaphore-arm64 + command: ["semaphore", "server", "--config", "/etc/semaphore/config.json"] ports: - "3000:3000" volumes: - - ./data/semaphore:/etc/semaphore + - ./data/etc:/etc/semaphore + - ./data/var:/var/lib/semaphore + tmpfs: + - /tmp 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 + - ANSIBLE_HOST_KEY_CHECKING=False + working_dir: /etc/semaphore restart: unless-stopped