File tree Expand file tree Collapse file tree 7 files changed +53
-17
lines changed Expand file tree Collapse file tree 7 files changed +53
-17
lines changed Original file line number Diff line number Diff line change 26
26
name : Prepare env variables
27
27
run : |
28
28
echo "BUILD_DATE=$(TZ=':UTC' date +'%Y-%m-%d %H:%M:%S (%Z)')" >> ${GITHUB_ENV}
29
- echo "BUILD_VER =${GITHUB_SHA::7}" >> ${GITHUB_ENV}
29
+ echo "BUILD_FINGERPRINT =${GITHUB_SHA::7}" >> ${GITHUB_ENV}
30
30
31
31
-
32
32
name : Check out code
@@ -62,10 +62,10 @@ jobs:
62
62
file : ./docker/Dockerfile
63
63
build-args : |
64
64
BUILD_DATE=${{ env.BUILD_DATE }}
65
- BUILD_VER =${{ env.BUILD_VER }}
65
+ BUILD_FINGERPRINT =${{ env.BUILD_FINGERPRINT }}
66
66
tags : |
67
67
legacyphp/gearman-ui:latest
68
- ghcr.io/phplegacy/gearman-ui:latest
68
+ ghcr.io/phplegacy/gearman-ui-docker :latest
69
69
pull : true
70
70
push : true
71
71
Original file line number Diff line number Diff line change @@ -25,6 +25,3 @@ logs: ## Show docker logs
25
25
26
26
gearman-ui :
27
27
docker-compose exec gearman-ui sh
28
-
29
- gearman :
30
- docker-compose exec gearman sh
Original file line number Diff line number Diff line change 1
- # https://github.com/phplegacy/gearman-ui-docker/
1
+ # Gearman UI Docker image
2
2
3
+ <p align =" center " ><a href =" https://github.com/phplegacy/gearman-ui-docker " ><img src =" https://github.com/phplegacy/gearman-ui-docker/raw/master/docs/gearman-ui.png " ></a ></p >
3
4
4
5
6
+ Docker image for [ Gearman UI] ( https://github.com/phplegacy/gearman-ui ) , a small PHP application providing a minimal monitoring dashboard for a cluster of Gearman Job Servers.
5
7
6
- GEARMAN_SERVERS = 'Gearman#1:gearman:4730,Gearman#2:gearman2:4730';
8
+ ## Docker repository
9
+ [ Docker Hub] ( https://hub.docker.com/r/legacyphp/gearman-ui )
10
+ ` docker pull legacyphp/gearman-ui:latest `
11
+
12
+ [ GitHub Packages] ( https://github.com/phplegacy/gearman-ui-docker/pkgs/container/gearman-ui-docker )
13
+ ` docker pull ghcr.io/phplegacy/gearman-ui-docker:latest `
14
+
15
+ ## Usage
16
+
17
+ Use provided [ ` docker-compose.yml ` ] ( https://github.com/phplegacy/gearman-ui-docker/blob/master/docker-compose.yml ) as an example.
18
+
19
+ ## Configuration
20
+
21
+ Use environment variables to define gearman server name, address and port:
22
+ ```
23
+ GEARMAN_SERVERS = 'Gearman#1:gearman:4730';
24
+ ```
25
+
26
+ Separate configuration with comma in order to connect to multiple gearman servers:
27
+ ```
28
+ GEARMAN_SERVERS = 'Gearman#1:gearman:4730,Gearman#2:gearman2:4730';
29
+ ```
30
+
31
+ ## License
32
+
33
+ The MIT License (MIT). Please see [ License File] ( https://github.com/phplegacy/gearman-ui-docker/blob/master/LICENSE ) for more information.
34
+
35
+ ---
36
+ If you like this project, please consider giving me a ⭐
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ services:
10
10
restart : unless-stopped
11
11
environment :
12
12
- ' TZ=UTC'
13
- - ' GEARMAN_SERVERS=Gearman#1:gearman:4730,Gearman#2:gearman2:4730'
14
- - ' COMPOSE_CONVERT_WINDOWS_PATHS=1'
13
+ - ' GEARMAN_SERVERS=Gearman#1:gearman:4730'
15
14
networks :
16
15
- network1
17
16
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ FROM node:4-alpine as node
3
3
4
4
WORKDIR /tmp/
5
5
ENV NODE_ENV=production
6
+ ENV NPM_CONFIG_UNSAFE_PERM=true
6
7
7
8
8
9
# Core utilites install
@@ -21,7 +22,6 @@ RUN set -eux \
21
22
22
23
23
24
FROM php:5.6-fpm-alpine as php
24
- LABEL org.opencontainers.image.source=https://github.com/phplegacy/gearman-ui-docker
25
25
26
26
ENV TERM="xterm-256color" \
27
27
LANGUAGE="en_US.UTF-8" \
@@ -81,13 +81,23 @@ ENV PATH ${PATH}:${HOME}/.composer/vendor/bin:/app/vendor/bin/
81
81
82
82
ENV COMPOSER_ALLOW_SUPERUSER=1
83
83
84
+ LABEL org.opencontainers.image.title="Gearman UI Docker image" \
85
+ org.opencontainers.image.description="phplegacy Gearman UI Docker image" \
86
+ org.opencontainers.image.authors="https://github.com/phplegacy/gearman-ui-docker" \
87
+ org.opencontainers.image.documentation="https://github.com/phplegacy/gearman-ui-docker" \
88
+ org.opencontainers.image.url="https://github.com/phplegacy/gearman-ui-docker" \
89
+ org.opencontainers.image.source="https://github.com/phplegacy/gearman-ui-docker"
90
+
84
91
ARG TZ='UTC'
85
92
ENV TZ=$TZ
93
+
86
94
# These params meant to be set by CI
87
95
ARG BUILD_DATE
88
96
ENV BUILD_DATE=$BUILD_DATE
89
- ARG BUILD_VER
90
- ENV BUILD_VER=$BUILD_VER
97
+ RUN echo $BUILD_DATE
98
+ ARG BUILD_FINGERPRINT
99
+ ENV BUILD_FINGERPRINT=$BUILD_FINGERPRINT
100
+ RUN echo $BUILD_FINGERPRINT
91
101
92
102
COPY --from=node /tmp/gearman-ui-master/ /app/
93
103
COPY ./docker/config/gearmanui/config.yml /app/config.yml
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export NUM_CPUS=`nproc`
13
13
for f in /docker-entrypoint.init.d/* ; do
14
14
case " $f " in
15
15
* .sh) # this should match the set of files we check for below
16
- echo " ⚙ Executing entrypoint.init file: ${f} "
16
+ echo " ⚙ Executing entrypoint.init file: ${f} "
17
17
. $f
18
18
break
19
19
;;
23
23
if [ " $1 " = ' supervisor' ]; then
24
24
EXEC=" /usr/bin/supervisord -c /etc/supervisord.conf"
25
25
26
- printf " \n${GRN} --->${NC} 🚀️️ Starting ${GRN} Gearman UI${NC} container..."
27
- printf " \n${GRN} --->${NC} Build date: ${GRN}${BUILD_DATE}${NC} , Build version : ${GRN}${BUILD_VER }${NC} "
28
- printf " \n${GRN} --->${NC} Exec command : ${EXEC } \n\n"
26
+ printf " \n${GRN} --->${NC} 🚀️️ Welcome to ${GRN} phplegacy Gearman UI${NC} container..."
27
+ printf " \n${GRN} --->${NC} Docker image build date: ${GRN}${BUILD_DATE}${NC} , fingerprint : ${GRN}${BUILD_FINGERPRINT }${NC} "
28
+ printf " \n${GRN} --->${NC} Subscribe to project updates : ${GRN} https://github.com/phplegacy/gearman-ui-docker ${NC } \n\n"
29
29
30
30
exec ${EXEC}
31
31
fi
You can’t perform that action at this time.
0 commit comments