Comments

mrP created an issue. See original summary.

metalbote’s picture

Hi mrP,

I am working on a subprofile now for serveral months, and it is not as easy as you think, and i think, that's why varbase doesn't provide their subprofile generator to public (and support it!).

Have a brief look at https://www.drupal.org/project/drupal/issues/1356276...

You can investigate acquias solution for lightning, and of course the vardoc distribution, and feel free to ask me, if you really want to dive in, be sure you do not get a simple solution, but have to get involved.

It is just not production ready...
One funny example i ran into was that the drupal installer with subprofile patch somehow works in alphabetical order, so it worked with varbase->vardoc but with varbase->greencko not...and as you can imagine, handling config, module and profile installation, order and inheritance is not the easiest code parts...

Rajab Natshah’s picture

Title: [docs] access to Varbase Varbase Sub profile generator from https://bitbucket.org/Vardot/varbase-subprofile-generator » [docs] access to Varbase Varbase Sub profile generator
Rajab Natshah’s picture

Rajab Natshah’s picture

Assigned: Unassigned » Mohammed J. Razem
Status: Active » Fixed

Thanks Joe for reporting and Jörg for following

Went public with the Varbase Subprofile Generator

Created
Vardot/varbase_subprofile_basic
Vardot/varbase-subprofile-basic-project
Vardot/varbase-subprofile-generator

Varbase Subprofile Generator

Clone the repository:

$ git clone git@github.com:Vardot/varbase-subprofile-generator.git
Run the bash command:

$ bash generate-varbase-subprofile.sh "MY_SUB_PROFILE" "/var/www/html/MYPROFILE" -vvv
You should see the following directories as your newly created sub profile.

$ cd /var/www/html/MYPROFILE
$ ls -l
MYPROFILE/
 - MY_SUB_PROFILE/
 - MY_SUB_PROFILE-project/

After that you will need to push the generated profile and project template to https://github.com for example and submit them to https://packagist.org or commit to a project in https://drupal.org

A similar sub-profile generated using this command can be seen below:

bash generate-varbase-subprofile.sh "cv" "/var/www/html/test"

Pushed

CV at Github.com
https://github.com/Vardot/cv
https://github.com/Vardot/cv-project

CV at Packagist.org
https://packagist.org/packages/vardot/cv
https://packagist.org/packages/vardot/cv-project

And in Drupal.org
https://www.drupal.org/project/cv

To test the build and install

composer create-project vardot/cv-project:8.1.x-dev PROJECT_DIR_NAME --stability dev --no-interaction
Rajab Natshah’s picture

Assigned: Mohammed J. Razem » Unassigned
Rajab Natshah’s picture

Next Steps:

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

mrP’s picture

Thank you!