Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

Contenta (Take2) #128

Merged
merged 28 commits into from
Jan 29, 2018
Merged

Contenta (Take2) #128

merged 28 commits into from
Jan 29, 2018

Conversation

stevector
Copy link
Contributor

@greg-1-anderson here's a PR on a PR. This is an update to the Contenta branch.

I've gotten it to install successfully via Build Tools with

terminus build:project:create pantheon-systems/example-drops-8-composer:dev-contenta--take2  contenta-take2-e  --team="ACEs"

Let merge this and then pick up the conversation back in #93

stevector and others added 27 commits July 14, 2017 10:14
…ove the '-n' flag to the front of the argument list for clarity. (#99)
)

allowing files such as `services.pantheon.preproduction.yml` to be committed to the repo
```
Loading composer repositories with package information
Updating dependencies
Package operations: 0 installs, 5 updates, 0 removals
  - Updating drupal/core (8.4.0 => 8.4.2): Downloading (100%)
  - Updating psy/psysh (v0.8.11 => v0.8.13): Loading from cache
  - Updating consolidation/annotated-command (2.7.2 => 2.8.1): Loading from cache
  - Updating webflo/drupal-finder (1.0.0 => 1.1.0): Loading from cache
Writing lock file
Generating optimized autoload files
Downloading (connecting...)���������������������������Downloading (0%)           ���������������������������Downloading (100%)Downloading (connecting...)���������������������������Downloading (0%)           ���������������������������Downloading (100%)Downloading (connecting...)���������������������������Downloading (0%)           ���������������������������Downloading (100%)Downloading (connecting...)���������������������������Downloading (0%)           ���������������������������Downloading (100%)Downloading (connecting...)���������������������������Downloading (0%)           ���������������������������Downloading (80%)�����������������Downloading (100%)Downloading (connecting...)���������������������������Downloading (0%)           ���������������������������Downloading (100%)Downloading (connecting...)���������������������������Downloading (0%)           ���������������������������Downloading (100%)Downloading (connecting...)���������������������������Downloading (0%)           ���������������������������Downloading (100%)Downloading (connecting...)���������������������������Downloading (0%)           ���������������������������Downloading (100%)Downloading (connecting...)���������������������������Downloading (0%)           ���������������������������Downloading (100%)Downloading (connecting...)���������������������������Downloading (0%)           ���������������������������Downloading (100%)> DrupalProject\composer\ScriptHandler::createRequiredFiles

Symfony Security Check Report
=============================

 // Checked file: /private/var/folders/46/rc22cmtx3g54h2jw6w5xj68c0000gq/T/composer-update-681effb/composer.lock

 [OK] No packages have known vulnerabilities.

 ! [NOTE] This checker can only detect vulnerabilities that are referenced in the SensioLabs security advisories
 !        database. Execute this command regularly to check the newly discovered vulnerabilities.

```
* Use Terminus Build Tools plugin 2.0.0-alpha4 and later.

* Comment out BUILD_TOOLS_VERSION so that the version installed in the docker container will be used by default.
@stevector
Copy link
Contributor Author

@greg-1-anderson, here is the part you might be most interested in that allows for drush site-install to complete:

if (function_exists('drush_get_arguments')) {

if (function_exists('drush_get_arguments')) {
  $drush_args = drush_get_arguments();
  if (!empty($drush_args[0])  && 'site-install' === $drush_args[0]) {
    $config_directories['sync'] = 'profiles/contrib/contenta_jsonapi/config/sync';
  }
}

@greg-1-anderson
Copy link
Member

Just two questions:

  1. Why is web/libraries/dropzone checked in to the repository?
    2.Why did you switch from my install hack to yours (above)? I guess mine wasn't working any longer. The way you've done it is Drush-8-specific, so installs from Drush 9 or Drupal Console would fail.

@stevector
Copy link
Contributor Author

Why is web/libraries/dropzone checked in to the repository?

content_jsonapi_project has it fully committed as well.
https://github.com/contentacms/contenta_jsonapi_project/tree/8.x-1.x/web/libraries/dropzone

I should have said directly that I'm treating this branch as a conglomeration of example-drops-8-composer and contenta_jsonapi_project.

That being said, I don't like the fact that dropzone is fully committed. My understanding is that it is fully committed because there is not a great way to include via composer alone. But I'd like to revisit this question with the Contenta team.

Why did you switch from my install hack to yours (above)?

So that terminus build:project:create pantheon-systems/example-drops-8-composer:dev-contenta--take2 could complete without error. I think the real fix will need to happen in Contenta as you suggested here #93 (comment)

@greg-1-anderson
Copy link
Member

content_jsonapi_project has it fully committed as well.

Okay. Maybe the Contenta team could consider downloading it in a post-update task.

So that [the build] could complete without error.

Yes, that was the purpose of my hack as well. I was just wondering if there was some way to detect that installation was happening, as my old hack did, so that we don't fail in the Drush 9 / Drupal Console case. Do you have any insight into why the old hack does not work any more?

@stevector
Copy link
Contributor Author

Do you have any insight into why the old hack does not work any more?

I thought I had tried it unsuccessfully. But I was wrong. I just tested it again and it worked so I have brought your original settings.php hack back to this branch.

@broeker
Copy link

broeker commented Jan 23, 2018

@stevector thanks for chiming in on the contenta issue I posted -- I updated my terminus plugins to latest versions, and then ran this command:

terminus build:project:create --org="xxxx" --team="xxxx" pantheon-systems/example-drops-8-composer:dev-contenta--take2 xxxxx

Everything seemed to spin up correctly through the "Successfully applied pantheon.yml to the 'dev' environment" message but ended up with this error right after the "Install site on lawhelp.dev" step:

Checking out files: 100% (23413/23413), done. HEAD is now at 55ad450 Initial commit [notice] Install the site on the dev environment [notice] Install site on lawhelp.dev [error] Successfully queued converge_appserver_binding

I'll give it another try but let me know if you have an idea...

@broeker
Copy link

broeker commented Jan 23, 2018

@stevector I guess I should have tried twice -- looks like the error was just a random network/app problem because on attempt number two the install went flawlessly and we now have a github+circle+pantheon contenta site. Next beer is on me :)

@stevector stevector merged commit fd30770 into contenta Jan 29, 2018
@stevector stevector deleted the contenta--take2 branch January 29, 2018 21:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants