Skip to content

Commit 7cc2433

Browse files
authored
Merge pull request #38 from dotkernel/arhimede-patch-1
trying to solve the missing redis
2 parents 698df95 + 71f8c86 commit 7cc2433

File tree

8 files changed

+31
-28
lines changed

8 files changed

+31
-28
lines changed

.laminas-ci.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"--no-scripts",
44
"--no-plugins"
55
],
6+
"extensions": [
7+
"redis"
8+
],
69
"ignore_php_platform_requirements": {
710
}
8-
}
11+
}

.laminas-ci/pre-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
# Due to the fact that we are disabling plugins when installing/updating/downgrading composer dependencies
44
# we have to manually enable the coding standard here.
5-
composer enable-codestandard
5+
#composer enable-codestandard

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ The greatest benefit is to application responsiveness which allows faster execut
1111

1212
The queue system uses logs to ensure maintainability and implements retry features for reliability and stability.
1313

14-
<img width="641" height="481" alt="Queue process" src="https://github.com/user-attachments/assets/8eb60c02-4e3a-4a88-b3ff-811d0410337b" />
15-
16-
14+
![Queue process](https://github.com/user-attachments/assets/8eb60c02-4e3a-4a88-b3ff-811d0410337b)
1715

1816
## Badges
1917

@@ -30,7 +28,6 @@ The greatest benefit is to application responsiveness which allows faster execut
3028
[![Qodana](https://github.com/dotkernel/queue/actions/workflows/qodana_code_quality.yml/badge.svg?branch=main)](https://github.com/dotkernel/queue/actions/workflows/qodana_code_quality.yml)
3129
[![PHPStan](https://github.com/dotkernel/queue/actions/workflows/static-analysis.yml/badge.svg?branch=main)](https://github.com/dotkernel/queue/actions/workflows/static-analysis.yml)
3230

33-
3431
## Installation
3532

3633
> Until we have a compiled documentation, read the files from /doc/book/v1 folder

docs/book/v1/commands.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Available commands and usage
1+
# Available commands and usage
22

33
The commands available are:
44

@@ -8,7 +8,7 @@ The commands available are:
88

99
The commands can be run in two different ways:
1010

11-
### CLI
11+
## CLI
1212

1313
To run the commands via CLI, use the following syntax:
1414

@@ -18,7 +18,7 @@ To run the commands via CLI, use the following syntax:
1818

1919
`php bin/cli.php inventory`
2020

21-
### TCP message
21+
## TCP message
2222

2323
To use commands using TCP messages the following messages can be used:
2424

docs/book/v1/installation.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
## INSTALLATION
1+
# INSTALLATION
22

3-
### git clone
3+
## git clone
44

55
`git clone -b default-queue https://github.com/dotkernel/queue.git`
66

7-
### Edit .dist files from config/autoload folder
7+
## Edit .dist files from config/autoload folder
88

99
- local.php.dist
1010
- log.local.dist
1111
- messenger.local.php.dist
1212
- swoole.local.php.dist
1313

14-
## Run Composer
14+
## Run Composer
1515

1616
`composer install --no-dev`
1717

18-
### Create services ( daemon)
18+
## Create services ( daemon)
1919

2020
- Edit the files from `/daemon` folder and set proper paths
2121
- copy them in /etc/systemd/system/
@@ -24,8 +24,7 @@
2424

2525
`sudo cp /home/dotkernel/queue/daemon\messenger.service`
2626

27-
28-
### Start the daemon
27+
## Start the daemon
2928

3029
`sudo systemctl daemon-reload`
3130

@@ -35,9 +34,8 @@
3534

3635
`sudo systemctl status swoole.service`
3736

38-
3937
### Testing the installation
4038

41-
Send a request from your local machine
39+
Send a request from your local machine
4240

4341
`echo "Hello" | socat -T1 - TCP:SERVER-IP:8556`

docs/book/v1/overview.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Overview
2+
13
> [!IMPORTANT]
24
> Dotkernel component used to queue tasks to be processed asynchronously based on [netglue/laminas-messenger](https://github.com/netglue/laminas-messenger)
35
@@ -14,4 +16,4 @@
1416
[![Build Status](https://github.com/mezzio/mezzio-skeleton/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/mezzio/mezzio-skeleton/actions/workflows/continuous-integration.yml)
1517
[![codecov](https://codecov.io/gh/dotkernel/queue/graph/badge.svg?token=pexSf4wIhc)](https://codecov.io/gh/dotkernel/queue)
1618
[![Qodana](https://github.com/dotkernel/queue/actions/workflows/qodana_code_quality.yml/badge.svg?branch=main)](https://github.com/dotkernel/queue/actions/workflows/qodana_code_quality.yml)
17-
[![PHPStan](https://github.com/dotkernel/queue/actions/workflows/static-analysis.yml/badge.svg?branch=main)](https://github.com/dotkernel/queue/actions/workflows/static-analysis.yml)
19+
[![PHPStan](https://github.com/dotkernel/queue/actions/workflows/static-analysis.yml/badge.svg?branch=main)](https://github.com/dotkernel/queue/actions/workflows/static-analysis.yml)

docs/book/v1/server-setup.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
## Server setup
1+
# Server setup
22

33
> Below instructions are working only on **AlmaLinux 9**
4-
>
4+
>
55
>For other OS's need to be adapted accordingly
66
77
## Starting point
8-
A server with AlmaLinux 9 freshly installed, with root access and updated
8+
9+
A server with AlmaLinux 9 freshly installed, with root access and updated
910

1011
### Update OS
12+
1113
dnf update
1214

1315
### Create a new user with sudo permissions
@@ -22,7 +24,7 @@ dnf update
2224

2325
### SSH to the server as new user
2426

25-
### Install various utilities
27+
### Install various utilities
2628

2729
`sudo dnf install -y dnf-utils`
2830

@@ -69,6 +71,7 @@ dnf update
6971
`sudo dnf install git`
7072

7173
### Composer
74+
7275
`wget https://getcomposer.org/installer -O composer-installer.php`
7376

7477
`sudo chmod 777 /usr/local/bin`
@@ -86,7 +89,7 @@ connections from outside only to certain ports, from certain IP's.
8689

8790
`sudo systemctl enable firewalld`
8891

89-
> Before starting the firewall, be sure you will not be locked outside
92+
> Before starting the firewall, be sure you will not be locked outside
9093
9194
`sudo firewall-offline-cmd --zone=public --add-port=22/tcp --permanent`
9295

docs/book/v1/valkey.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
## Valkey usage
1+
# Valkey usage
22

33
Valkey is an open source (BSD) high-performance key/value datastore that supports a variety of workloads such as caching, message queues, and can act as a primary database.
44

55
The following commands can be run in the CLI to interact with Valkey. To enter CLI run:
66

77
`valkey-cli`
88

9-
### Utility Commands
9+
## Utility Commands
1010

1111
List all keys matching a pattern.
1212

@@ -28,7 +28,7 @@ Check data type stored at a specific key (Possible types: string, list, set, zse
2828

2929
`TYPE keyName`
3030

31-
### Key-Value Operations
31+
## Key-Value Operations
3232

3333
Set a string key to a value.
3434

@@ -42,7 +42,7 @@ Delete one or more keys.
4242

4343
`DEL keyName1 keyName2`
4444

45-
### Stream Commands
45+
## Stream Commands
4646

4747
Read entries from a stream oldest to newest (revers '-' and '+' to reverse order).
4848

0 commit comments

Comments
 (0)