-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install and enable Carapace theme #700
Comments
My vote is that it is pulled in through composer. |
@jonathangreen I agree, but we need to sort out how that will happen. If the drupal role we're using doesn't support it, then we'll need to implement it ourselves. |
@dannylamb @jonathangreen there will be moments and places where we will be still be using |
@DiegoPino Yeah, for sure. Composer is just for pulling down code with its dependencies. |
@dannylamb To be installed via composer, does carapace have to be on packagist.org, or can composer install it from GitHub? |
@bryjbrown Either, though in practice we've found putting it up on packagist to be easier. Just using Github then spams their API, and you have to pass in an extra authentication key to prevent from getting throttled. |
@jonathangreen Upon inspection it looks like the drupal role is geared towards building from a composer project, so looks like we add it to https://github.com/Islandora-CLAW/drupal-project to get the code pulled down and also add it to https://github.com/Islandora-Devops/claw-playbook/blob/master/inventory/vagrant/group_vars/webserver/drupal.yml#L19 to get it enabled. I'm not sure what we'd need to do to set it to default, or if that's even required. But those two things would be a good start once carapace is on packagist. |
@dannylamb does it make sense to add it to drupal-project? We probably don't want to require that theme in order to use drupal project do we? Depending on the answer to that question we could add an additional variable to the |
@jonathangreen are you thinking about adding those with specific versions or just the package name? |
@DiegoPino either really 😄. I think behind the scenes it would be two composer calls, one to see if the package is already installed and another to install it if not. Instead of the first one call maybe we could look at the If we are just passing the variable off to composer we can probably allow version numbers with the package name, the same way composer does. That would let us not specify version numbers for now, but specify them later when we want to. This may be all overthinking, and we should just add everything to |
@jonathangreen i like 2x calls approach. Like a composer info and then the actual require call. 👍 |
@jonathangreen @DiegoPino Iterating over a list of them and composer requiring sounds good to me. It'd be nice to have the flexibility in the playbook instead of a composer file. |
Looks like this should work with a Will probably be bugging @jonathangreen about it. |
Going to address the composer install under this issue instead of #671 |
Looks like this can be done automagically by the drupal role by defining I'm testing this out now. |
Do we want to jam the variables to up the collection block on the carapace theme in here somewhere? Or maybe we could make another ticket for that. |
@jonathangreen You mean scrape the block's yml out of git and load it into Drupal? Should be straightforward to do that a la https://github.com/Islandora-Devops/claw-playbook/blob/master/roles/internal/webserver-app/tasks/jwt.yml#L25-L40 If you don't run into any other issues bringing up the box, I can try my hand at that. |
Theme looks good to me, everything came up clean! It was really more of a question, we probably want the block to be placed when you spin up the vagrant box, so we need a way to do it. I think what your suggesting makes sense. |
Want me to merge PR and we can deal with setting the block in another ticket? Or do you want to give it a go here? |
@jonathangreen Go ahead and merge and I'll set up another issue. |
Closed with: |
Add https://github.com/Islandora-CLAW/carapace to the list of modules to be installed in Drupal: https://github.com/Islandora-Devops/claw-playbook/blob/master/inventory/vagrant/group_vars/webserver/drupal.yml#L19
The text was updated successfully, but these errors were encountered: