Master: cp example.env .env). Replace the values if needed../bin/build.sh
A working Docker installation is mandatory.
Copy the following files:
shcp example.env .env cp dev/example.env dev/.env cp config/development.config.php.dist config/development.config.php cp config/autoload/local.php.dist config/autoload/local.php cp config/autoload/tiresias.local.php.dist config/autoload/tiresias.local.php cp config/autoload/development.local.php.dist config/autoload/development.local.php
You can replace the values if needed, but the default ones should work.
Edit hosts file to point dilps.docker and tiresias.docker to your docker host.
Run the following docker commands from the project root directory.
Build & run all the containers for this project:
docker compose up (add -d if you want to run in the background and silence the logs)
The project is compiled each time the containers are started. You'll get a Build at log message as soon as everything is ready to be used.
To load some dummy data & users, please run the following command:
docker exec dilps-tiresias-app ./bin/load-test-data.php
To access the application container (apache-php):
docker exec -it dilps-tiresias-app bash
Data for the mysql service is persisted using docker named volumes. You can see what volumes are currently present with:
docker volume ls
If you want to remove a volume (e.g. to start with a fresh database), you can use the following command.
docker volume rm volume_name
To access the main application please use the following links.
To access the database please use the following link.
[***]
To access mails please use the following link.
[***]
Or to get the messages in JSON format.
[***]
To switch the API to development (to enable logging), run:
composer development-enable
Logs will be available in logs/all.log.
When in development mode, the configuration cache is disabled, and switching in and out of development mode will remove the configuration cache.
You may need to clear the configuration cache in production when deploying if you deploy to the same directory. You may do so using the following:
composer clear-config-cache
PHPUnit tests require a reference database dump. When the dump is loaded it will destroy existing database. This must be done once before running tests. Then each test is ran within a transaction which is rolled back, so the database state is always predictable.
To run PHPunit test:
sh./bin/load-test-data.php ./vendor/bin/phpunit # as many times as necessary
Run ng test to execute the unit tests via Karma.
To run Karma or e2e tests inside a Docker container, run the following command from the base repository directory.
The image tag used should be the same as the playwright version installed for this app.
The docker compose must be up for these tests to be executed.
bash# Karma docker run -it --rm -v $PWD:/var/www -w /var/www --ipc host --network dilps-tiresias_dilps-tiresias-net mcr.microsoft.com/playwright:v1.33.0-focal yarn ng test --watch false --browsers ChromeHeadlessCustom # e2e docker run -it --rm -v $PWD:/var/www -w /var/www --ipc host --network dilps-tiresias_dilps-tiresias-net mcr.microsoft.com/playwright:v1.33.0-focal yarn e2e
Run yarn e2e to execute the end-to-end tests via Playwright.
This project is tested with BrowserStack.
来自真实用户的反馈,见证轩辕镜像的优质服务
免费版仅支持 Docker Hub 加速,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
免费版仅支持 docker.io;专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像加速服务
在 Docker Desktop 配置镜像加速
Docker Compose 项目配置加速
Kubernetes 集群配置 Containerd
在宝塔面板一键配置镜像加速
Synology 群晖 NAS 配置加速
飞牛 fnOS 系统配置镜像加速
极空间 NAS 系统配置加速服务
爱快 iKuai 路由系统配置加速
绿联 NAS 系统配置镜像加速
QNAP 威联通 NAS 配置加速
Podman 容器引擎配置加速
HPC 科学计算容器配置加速
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名加速
需要其他帮助?请查看我们的 常见问题 或 官方QQ群: 13763429