Polist Readme instructions

This commit is contained in:
Ilya Rogozhin
2026-06-09 19:28:32 +02:00
parent 792e4d7f28
commit 81e528fe43
5 changed files with 22 additions and 11 deletions
+1
View File
@@ -38,6 +38,7 @@ services:
- ./logs/mysql:/var/log/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: test_fhr
security_opt:
- seccomp:unconfined
redis:
+2
View File
@@ -1,3 +1,5 @@
FROM mysql:latest
COPY ./my.cnf /etc/mysql/my.cnf
#COPY ./init.sql /docker-entrypoint-initdb.d/
+2
View File
@@ -0,0 +1,2 @@
CREATE DATABASE IF NOT EXISTS `test_fhr` CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
+17 -10
View File
@@ -16,14 +16,6 @@
For Linux env:
```bash
mkdir ilya_test
cd ilya_test
git clone https://gitea.wired-mind.ru/ijin82/test-FHR.git .
cp main-repo/.env.example main-repo/.env
docker compose up
```
Алиасы для комфортного подключения `vim ~/.bashrc`
```bash
### Test FHR
@@ -33,6 +25,23 @@ alias fhr-redis='docker exec -it redis_fhr /bin/sh'
alias fhr-php='docker exec -u www-data:www-data -it php8_fhr /bin/bash'
```
```bash
mkdir ilya_test
cd ilya_test
git clone https://gitea.wired-mind.ru/ijin82/test-FHR.git .
cp main-repo/.env.example main-repo/.env
docker compose up
```
Установка компонент и миграции
```bash
fhr-php
composer i
php artisan migrate
```
### Написать сортировку для массива числовых данных от 200 тысяч элементов
Запуск теста
@@ -56,8 +65,6 @@ php artisan app:test-fhr-sort
```bash
fhr-php
php artisan migrate # Структура БД
# Клубы
php artisan db:seed --class=ClubSeeder
# Игроки
-1
View File
@@ -1 +0,0 @@
1