Skip to content

Commit c20a957

Browse files
author
Eugene Leonovich
committed
Tweak some files
1 parent f5022c2 commit c20a957

File tree

7 files changed

+30
-3
lines changed

7 files changed

+30
-3
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/app/config/jobserver_config.lua
22
/app/config/local.php
3-
/var/log/
3+
/var/
44
/vendor/
55
/.env
66
/.php_cs

.php_cs.dist

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
$finder = PhpCsFixer\Finder::create()
44
->in(__DIR__)
55
->exclude('docker')
6+
->exclude('res')
67
->exclude('var')
78
;
89

docker/worker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM php:7-alpine
33
RUN echo http://dl-5.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories
44

55
RUN apk add --update --no-cache libintl icu icu-dev zlib-dev autoconf g++ make bash && \
6-
docker-php-ext-install opcache intl zip pdo_mysql
6+
docker-php-ext-install opcache intl zip
77

88
# DEV packages
99
RUN apk add --update --no-cache git openssh

res/logrotate.d/logs.tpl

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
${APP_LOG_DIR}/*.log {
2+
daily
3+
missingok
4+
rotate 4
5+
size 1M
6+
compress
7+
delaycompress
8+
notifempty
9+
copytruncate
10+
}
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=Job Server Worker (${APP_TNT_QUEUE})
3+
4+
[Service]
5+
EnvironmentFile=/etc/default/jobserver-worker
6+
ExecStart=${APP_RELEASE_DIR}/vendor/bin/jobqueue run "${APP_TNT_QUEUE}" --host "${TNT_JOBQUEUE_HOST}" -c ${APP_RELEASE_DIR}/app/config/jobqueue.php --executors-config ${APP_RELEASE_DIR}/app/config/executors.php --log-file ${APP_RELEASE_DIR}/var/log/workers.log
7+
Restart=always
8+
9+
[Install]
10+
WantedBy=multi-user.target

res/systemd/jobserver-worker.tpl

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# copy this file to /etc/default/jobserver-worker
2+
# and adjust variable values
3+
4+
TNT_JOBQUEUE_HOST=${APP_TNT_HOST}
5+
TNT_JOBQUEUE_USER=${APP_TNT_USER}
6+
TNT_JOBQUEUE_PASSWORD=${APP_TNT_PASSWORD}

tests/Unit/UseCase/Greet/GreetHandlerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App\Tests\Unit\Handler;
3+
namespace App\Tests\Unit\UseCase\Greet;
44

55
use App\UseCase\Greet\GreetHandler;
66
use PHPUnit\Framework\TestCase;

0 commit comments

Comments
 (0)