Commit graph

12 commits

Author SHA1 Message Date
Ahmon Dancy
4919bfa7c2 Trigger update-train-versions job at end of wmf-publish pipeline
Change-Id: I998a000d4a5f67f77427a1168d39b79d82284608
2021-06-29 08:02:03 -07:00
Dan Duvall
33138a3984 pipeline: Use /srv/mediawiki as production working directory
Change-Id: I01860e9448129658027fd4509b23426c3b88fd5c
2021-02-23 09:48:42 -08:00
Dan Duvall
96544d33c3 pipeline: Drop "core" suffix from wmf branch image names
Image names are derived from the project patch by default, in this case
"mediawiki-core". However, single-version images published from building
WMF branches contain core+extensions+skins+vendor. Let's name them
simply "mediawiki".

Change-Id: I7123a0db4e05b4716c180c3ecf72a541a08f4215
2021-02-05 10:46:33 -08:00
Dan Duvall
0ac18eb474 pipeline: Increase fetch depth to 50
Change-Id: Ibdf99ffe44006c2f307acfe30afc70f7839b4a37
2020-12-18 15:59:02 -08:00
Dan Duvall
ce5fdcb1b6 pipeline: Fix malformed pipeline config
Change-Id: I9a8fd80627831b06f7db6aca0e057fb8349d7677
2020-12-18 10:25:53 -08:00
Dan Duvall
5f2d126f13 pipeline: Define wmf-publish image build pipeline
Defines a new wmf-publish pipeline for building and publishing MediaWiki
container images from wmf branches.

Depends-On: Ie74b45e9455ee2c33912c5426d6b4556368ab0d0
Bug: T269617
Change-Id: I4afb024953b902c739f052fed6ce1bd45dab80c5
2020-12-14 13:03:01 -08:00
Brennen Bearnes
26e00e87a1 blubber.yml: Use renamed base image for dev images
Uses:

  - https://gerrit.wikimedia.org/r/c/releng/dev-images/+/568140

Name aside, should be otherwise identical.

Bug: T238224
Change-Id: I8e57aa231622782cc5606f137f473d63fe162c05
2020-01-28 17:53:04 -07:00
Jeena Huneidi
1f891df091 Exit on error for .pipeline/dev_prereq.sh
Make sure the script exits if there is an error to avoid
publishing broken images.

As a temporary fix, change submodule update --init to depth 10
because the submodule might be at a commit not present in the
shallow clone.

Bug: T237310
Change-Id: Id05f487798b1c74550c802be886f5a770f431d43
2019-11-04 13:13:13 -08:00
Brennen Bearnes
292c061587 .pipeline/config.yaml: remove extraneous tab character
Change-Id: Ibafbf255a78189adbd3137359ff331ddd7f856c9
2019-10-02 13:43:01 -06:00
Brennen Bearnes
4cb12d6d19 pipeline: rename publish stage to dev; add dev tag
Renamed `dev` stage of the `publish` pipeline to `publish` here:

  https://gerrit.wikimedia.org/r/c/mediawiki/core/+/539589

This turns out to have been unnecessary, and is confusing since the name
of the stage winds up as part of the default tag on the published
images, so reverting.

This patch also adds a "dev" tag to the image, so that we have a fixed
name for use by development environments.

Bug: T234379
Change-Id: I280ec935d5159f2992a62a5e7e33e71b6cbcd8a2
2019-10-01 15:07:14 -06:00
Brennen Bearnes
1a76004e99 .pipeline/config.yaml: rename dev stage to publish
This should align with the "publish" pipeline defined in
integration/config.

Bug: T218360
Change-Id: Iba27755416843dd547ac1889d932a3b5ea9d1fd2
2019-09-27 11:43:52 -06:00
Brennen Bearnes
315df62758 Add .pipeline/ with dev image variant
This adds a .pipeline/, containing:

  - blubber.yaml which, for now, defines a single variant for creating
    a Docker image to be used by the local-charts[0] environment.  This
    image is built on dev-stretch-php72-fpm-apache2, which is defined in
    dev-images[1].

  - dev_prereq.sh which installs some extensions, runs composer, and
    creates a stub LocalSettings.php in the dev image as a blubber builder
    command.

  - config.yaml for building the dev image.

This depends on publication of dev/stretch-php72-fpm-apache2 to
docker-registry.wikimedia.org:

  - https://phabricator.wikimedia.org/T223327
  - https://phabricator.wikimedia.org/T223329

It can be tested locally by:

  1. Installing Docker, blubber[2], and Minikube

  2. Building the images in dev-images with `make`

  3. Saving a copy of the dev-stretch-php72-fpm-apache2 image:

     $ docker save -o dev-stretch-php72-fpm-apache2.tar
       docker-registry.wikimedia.org/dev/dev-stretch-php72-fpm-apache2

  4. Importing that image into Minikube's docker:

     $ eval $(minikube docker-env)
     $ docker load --input ./dev-stretch-php72-fpm-apache2.tar

  5. Building an image tagged "docker-registry.wikimedia.org/dev/mediawiki"
     from the root of this repository:

     $ blubber .pipeline/blubber.yaml dev | docker build --pull=false -t docker-registry.wikimedia.org/dev/mediawiki -f - .

That image should now be usable by local-charts.

[0]. https://gerrit.wikimedia.org/r/plugins/gitiles/releng/local-charts/
[1]. https://gerrit.wikimedia.org/r/plugins/gitiles/releng/dev-images/
[2]. https://wikitech.wikimedia.org/wiki/Blubber/Download

Bug: T218360
Change-Id: I1c8192e67c39e86c4903a9137dba7c02faee3145
Depends-On: I8a5a5f2c24d81fb94b104a3a98627d9fbe6059bf
2019-09-24 17:20:10 -06:00