ymcatwincities/openy-docksal 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ymcatwincities/openy-docksal

Composer 安装命令:

composer require ymcatwincities/openy-docksal

包简介

Development Environment for Open Y based on open source tool http://docksal.io

README 文档

README

This is a Docksal-based for the YMCA’s Website Service Drupal distribution.

Docksal is used as a local development environment.

Get Started

You need to install Docksal on your local machine according to Docksal setup instructions.

Full install from scratch

Note: a local instance of PHP and/or Composer is not required.

Follow these steps to get fully prepared project.

Install Docksal

curl -fsSL https://get.docksal.io | bash

Clone OpenY docksal project

git clone git@github.com:ymcatwincities/openy-docksal.git

Add your custom settings

  • Create docksal-local.env file inside .docksal directory with content:
YUSAOPENY_PROJECT_VERSION='9.2.x' YUSAOPENY_VERSION='9.x-2.x' GIT_REMOTE_UPSTREAM='git@github.com:USER/yusaopeny.git' IGNORE_CUSTOM='.idea'
  • Use OPENY_PROJECT_VERSION to specify the branch of the YCloudYUSA/yusaopeny-project to be used as a composer project. In the most cases you'll need:

    • 9.2.x for a last stable yusaopeny release.
    • 9.2.x-development for a latest development yusaopeny.
  • Use YUSAOPENY_VERSION to specify the branch of the YCloudYUSA/yusaopeny will be checkout automatically. Take in mind, the yusaopeny version corresponds the one, required in a root composer.json. Use 9.x-2.x to start the development from the latest yusaopeny progress.

  • Replace USER by your user name from github or remove GIT_REMOTE_UPSTREAM if you don't need an upstream repository to be set automatically.

  • During an execution of a build_project command, all the directories except an ignored ones would be deleted. If you work on the existing project and want to save any folder in a project root directory - add folder name to IGNORE_CUSTOM. Directories names should be separated with spaces.

If you want to use your fork as an origin remote and the main repository as an upstream remote, add the following variables to the docksal-local.env file as follows:

GIT_REMOTE_UPSTREAM='git@github.com:YCloudYUSA/yusaopeny.git' GIT_REMOTE_ORIGIN='git@github.com:USER/yusaopeny.git'

In this case, after project install git will already track the repositories you specified as origin and upstream remotes

Build Y USA Open YMCA project

Run this command inside your project directory:

fin build_project

As a result you will get full YMCA’s Website Service installation in your file system.

The "Killed" message during command run usually means that you need to increase memory limits in your Docksal. For macOS or Windows overall memory volume available for Docker is limited by the virtual machine or Docker Desktop settings.

Install YMCA’s Website Service site

After fin build_project command finish you need to install a site. For this you can use one of this commands:

  • fin init
  • fin install_steps
  • fin upgrade_init

More details about these commands you can get below.

Alternative installation process

# Install Docksal curl -fsSL https://get.docksal.io | bash # Change directory to your workspace fin run-cli composer create-project YCloudYUSA/yusaopeny-project yusaopeny --no-interaction --no-dev cd yusaopeny fin run-cli composer install fin init

Open the URL printed at the end of the setup (e.g. http://yusaopeny.docksal.site) to see your local copy of the latest stable YMCA’s Website Service.

Docksal environment for YMCA’s Website Service

Open the project's folder and run one of the commands.

Administrator account is admin:admin.

Start the project

fin init

The webserver starts up, and the site will be installed automatically with drush si.

Install site from UI

fin install_steps

The webserver starts up and for site will be provided base configuration. After finish you need to open site in browser and continue installation from UI. This command is useful for testing YMCA’s Website Service install form.

Testing Upgrade path

fin upgrade_init

The webserver starts up and the site will be installed from YMCA’s Website Service DB dump that contain pre-installed previous YMCA’s Website Service version. After installation will be executed all new updates that were added in the latest YMCA’s Website Service versions.

How to develop?

After you run the "fin init" and have your environment ready you need to do few things.

  • Create a fork of https://github.com/YCloudYUSA/yusaopeny.
  • In your project go to docroot/profiles/contrib/yusaopeny and edit .git/config file. Replace repo URL to your newly created fork.
  • Then you can create a branch in your repo, push some code and create a pull request back to YCloudYUSA/yusaopeny repo.

How to run behat tests?

Edit behat.local.yml and set base_url to web and wd_host to http://browser:4444/wd/hub. Then you can run your behat tests with ./vendor/behat/behat/bin/behat.

ymcatwincities/openy-docksal 适用场景与选型建议

ymcatwincities/openy-docksal 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 51.66k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 ymcatwincities/openy-docksal 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ymcatwincities/openy-docksal 我们能提供哪些服务?
定制开发 / 二次开发

基于 ymcatwincities/openy-docksal 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 51.66k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 8
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 9
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2026-01-04