Skip to content
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

Refactor deployment #159

Merged
merged 23 commits into from
Mar 16, 2018
Merged

Refactor deployment #159

merged 23 commits into from
Mar 16, 2018

Commits on Mar 9, 2018

  1. Have Git ignore local versions of modules

    When installing modules as part of local development, Composer
    adds the files for those modules. This commit updates .gitignore
    to exclude those files from the repository so we can manage those
    changes more efficiently.
    fureigh committed Mar 9, 2018
    Configuration menu
    Copy the full SHA
    1d4b1f0 View commit details
    Browse the repository at this point in the history
  2. Move most of these files to a /web/ subdirectory

    This repository has essentially been based in an existing `/web/`
    directory. Moving most of its files to a new subdirectory will
    allow us to include the files that have been one level above this.
    fureigh committed Mar 9, 2018
    Configuration menu
    Copy the full SHA
    f083aa1 View commit details
    Browse the repository at this point in the history
  3. Remove old modules and themes directories

    This is part of reorganizing these files within a `/web/` directory.
    fureigh committed Mar 9, 2018
    Configuration menu
    Copy the full SHA
    0fadb79 View commit details
    Browse the repository at this point in the history
  4. Add several files required for deployment

    Drawn from github.com/18F/cf-ex-drupal/. h/t @pburkholder
    fureigh committed Mar 9, 2018
    Configuration menu
    Copy the full SHA
    299aa00 View commit details
    Browse the repository at this point in the history
  5. Add sample manifest.yml

    fureigh committed Mar 9, 2018
    Configuration menu
    Copy the full SHA
    85629b0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    37d3b01 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2018

  1. Add .htaccess file

    Drawn from github.com/18F/cf-ex-drupal/
    fureigh committed Mar 12, 2018
    Configuration menu
    Copy the full SHA
    eac11c7 View commit details
    Browse the repository at this point in the history
  2. Add all local modules to .gitignore

    Theoretically this precludes the addition of custom modules. May
    want to scale back to /contrib at some point.
    fureigh committed Mar 12, 2018
    Configuration menu
    Copy the full SHA
    a10ded2 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2018

  1. Add exported configuration

    Brightcove API credentials have been redacted.
    fureigh committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    20d48ee View commit details
    Browse the repository at this point in the history
  2. Tweak manifest file to include s3, db, secrets.

    This doesn't include multiple instances and only covers the demo app, but
    should be enough to get us started.
    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    2b6101d View commit details
    Browse the repository at this point in the history
  3. Rebuild composer file based on cf-ex-drupal.

    In an effort to closer align with the cloud.gov Drupal example, this adds a
    handful of dependencies. It looks like the previous code was also built with a
    generator, so this shouldn't be a big issue. All of the previous Drupal
    modules should still be present.
    
    Notably, however, this *does* declare that we're using PHP 7.1.
    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    e635574 View commit details
    Browse the repository at this point in the history
  4. Add settings files.

    These are largely auto-generated, but we don't want to recreate them every
    time an instance restarts, so we'll commit them to the repository.
    
    The exception is the settings.cf.php file, which configures the database
    connection, flysystem, and the hash salt based on values injected by cloud.gov
    services. The values can be missing (e.g. if running locally), and a local
    settings file can be used instead.
    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    680112e View commit details
    Browse the repository at this point in the history
  5. Add a bootstrap script, more config options.

    This pulls in more configuration from the cloud.gov example. It uses their
    bootstrap.sh as a guide, but ends up rewriting it to leak less information and
    to make use of our settings files.
    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    a28b560 View commit details
    Browse the repository at this point in the history
  6. Remove config/sync dir.

    It's not used and now misleading.
    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    4b02fff View commit details
    Browse the repository at this point in the history
  7. Tweaks to brightcove and remove nsf_brightcove.

    The uuid isn't sensitive, so we're safe to include it (it might be referenced
    by other configs in the future). This also removes the nsf-brightcove module,
    which we don't have anymore.
    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    f10e9b4 View commit details
    Browse the repository at this point in the history
  8. Add modules from dev site.

    These are needed for the current config import. We'll likely remove some of
    these in the future.
    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    dc073d1 View commit details
    Browse the repository at this point in the history
  9. Ignore additional local development files.

    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    192c979 View commit details
    Browse the repository at this point in the history
  10. Cleanup when installing Drupal for the first time.

    The "standard" install profile adds a "shortcut_set" that conflicts with our
    configs, so we need to remove it. Similarly, we need to indicate that our
    Drupal install is downstream from a set of configurations (by giving it the
    same UUID as those configs).
    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    bf15e16 View commit details
    Browse the repository at this point in the history
  11. Load configs when bootstrapping.

    This will effectively duplicate the latest config changes. It also clears the
    cache, in case it'd have been affected by code/theme changes.
    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    3318f5c View commit details
    Browse the repository at this point in the history
  12. Load secrets in bootstrap script.

    We'll fetch these from the "secrets" service and set them via drupal
    config:override. Note that this sends its output to /dev/null, lest the
    sensitive data become part of the app longs.
    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    228b62f View commit details
    Browse the repository at this point in the history
  13. Move htaccess to an accessible location.

    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    08e4409 View commit details
    Browse the repository at this point in the history
  14. Remove dev reqs; tweak composer description.

    CM Lubinski committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    5240738 View commit details
    Browse the repository at this point in the history
  15. Merge pull request #167 from 18F/cloud-gov-edits

    Edits for cloud.gov configuration
    fureigh committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    f8ef1ae View commit details
    Browse the repository at this point in the history