1. 21 Sep, 2021 1 commit
  2. 16 Sep, 2021 2 commits
  3. 17 Aug, 2021 1 commit
    • Addshore's avatar
      Format files consistently · 7f754c1d
      Addshore authored
      My IDE wants to do this on save now...
      
      Change-Id: I6153b0939095cb7d2cd81cab634e7243de01fa49
      7f754c1d
  4. 10 Aug, 2021 1 commit
  5. 30 Jun, 2021 1 commit
  6. 22 May, 2021 3 commits
    • Addshore's avatar
      mwdd: Use TTY for almost all command execution · 803b6ec8
      Addshore authored and Addshore's avatar Addshore committed
      This means all output is now streamed which is nice.
      The only non TTY execution is for a command where we
      only care about the exit code and don't want to bother
      the user with the output anyway!
      
      Bug: T282375
      Change-Id: I34edbb9a210e4045e47091087bfea1e410a172ac
      803b6ec8
    • Addshore's avatar
      mwdd: Allow any docker-compose commands to be used · e8753dc2
      Addshore authored and Addshore's avatar Addshore committed
      This ends up being an advanced feature in most cases,
      but it is quite nice for commands like ps!
      This will also allow inspection of logs for any of the services
      with ease without needing to provide more special commands etc.
      This can be useful for debugging.
      
      Bug: T282335
      Change-Id: I1645423ddf785857171e26a7fef766084c05615a
      e8753dc2
    • Addshore's avatar
      mwdd: composer install & mediawiki composer command · 531fa275
      Addshore authored and Addshore's avatar Addshore committed
      Will still need to aim to:
       - Make use of composer cache
       - Make working in different directories nice!
      
      Change-Id: If96edd73f60aad1757a8ec67512f2ad97e4f5c7a
      531fa275
  7. 18 May, 2021 1 commit
    • Addshore's avatar
      mwdd: Wizard to guide you through env setup · 7243f0ed
      Addshore authored and Addshore's avatar Addshore committed
      This includes:
       - Prompting the user to pick a PORT for the mwdd env
       - Prompting the user to pick a MW directory if not set
       - Clone of MediaWiki and optionally Vector
       - Ability to do a shallow clone for speed
       - Ability to clone from Github and switch to Gerrit
      
      This also leaves some TODOs around the place:
       - Allow the user to choose if the remotes end up on https or ssh
       - Allow cloning async for more speed
       - Allow the user to get more skins or extensions?
       - Auto detection of MW directory
       - Check if git is even installed
      
      And leaves 1 clear next step to make initial setup quite
      slick, this being do an initial composer install if
      MW determines that it needs it (will be done in a followup)
      
      Change-Id: Id58e45c26fed77a06226b081f6248d5f27a234b6
      7243f0ed
  8. 12 May, 2021 2 commits
    • Addshore's avatar
      mwdd: Implement nice destroy commands for individual services · 77f36074
      Addshore authored and Addshore's avatar Addshore committed
      These commands now destroy the containers and volumes of the
      specific service being interacted with.
      Prior to this the mediawiki destroy command would just run
      down on the whole docker-compose setup (as it was the only service).
      But now we need to be a little more selective.
      
      docker-compose doesn't provide commands to do all of this out of
      the box, which is why a docker command is needed to destroy specific
      named volumes for the services.
      
      Bug: T253313
      Change-Id: I8a861978894dd0fe10ffbcadc73314d64138ddd3
      77f36074
    • Addshore's avatar
      mwdd: Refactor mwdd.DockerCompose to use a struct instead of parameters · 0477c538
      Addshore authored and Addshore's avatar Addshore committed
      This will allow easier adding of specific extra modifications
      to the parameters, such as allowing conditional loading of
      only some of the docker-compose files.
      
      This also cleans up all of the string slice appending that was going
      on in mwdd.DockerCompose instead only taking a single slice of strings.
      
      Change-Id: I53680c010ea600d1c95706855a7e35a74ce55efb
      0477c538
  9. 11 Apr, 2021 1 commit
    • Addshore's avatar
      mwdd: Implement docker-compose ps command · a64a5cd5
      Addshore authored
      Allows easy running of the "ps" docker-compose command
      for the mwdd setup.
      This sort of wrapping is needed as the number of docker-compose files
      that you would need to specify to run these commands by hand will
      slowly increase..
      
      Change-Id: Id69849889217d7efbfc38c906938b7ad27d28155
      a64a5cd5
  10. 03 Apr, 2021 1 commit
    • Addshore's avatar
      mwdd: mediawiki create & destroy. · 2a33a8c1
      Addshore authored and Addshore's avatar Addshore committed
      Working starters for mwdd solution with implemented create and
      destroy commands.
      
      Change-Id: I84b000c0c1d0e3ee873e1a755476c25bda693167
      2a33a8c1
  11. 19 Mar, 2021 1 commit
    • Addshore's avatar
      mwdd: Introduce framework and empty commands · 438b2ba3
      Addshore authored
      Written as a separate commit so that the diff is easier
      to look at.
      This introduces the basic set of files and commands that
      will be used, without any real logic.
      That will follow in future commits.
      
      Change-Id: I11f80c9c11c4d9f7045838be9a406f7e5acd3ffe
      438b2ba3