aboutsummaryrefslogtreecommitdiffstats
path: root/.pipeline
Commit message (Collapse)AuthorAgeFilesLines
* blubber.yml: Use renamed base image for dev imagesBrennen Bearnes2020-01-281-1/+1
| | | | | | | | | | | Uses: - https://gerrit.wikimedia.org/r/c/releng/dev-images/+/568140 Name aside, should be otherwise identical. Bug: T238224 Change-Id: I8e57aa231622782cc5606f137f473d63fe162c05
* Exit on error for .pipeline/dev_prereq.shJeena Huneidi2019-11-041-3/+5
| | | | | | | | | | | | 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
* .pipeline/config.yaml: remove extraneous tab characterBrennen Bearnes2019-10-021-1/+1
| | | | Change-Id: Ibafbf255a78189adbd3137359ff331ddd7f856c9
* pipeline: rename publish stage to dev; add dev tagBrennen Bearnes2019-10-011-2/+3
| | | | | | | | | | | | | | | | 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
* .pipeline/config.yaml: rename dev stage to publishBrennen Bearnes2019-09-271-2/+1
| | | | | | | | This should align with the "publish" pipeline defined in integration/config. Bug: T218360 Change-Id: Iba27755416843dd547ac1889d932a3b5ea9d1fd2
* Add .pipeline/ with dev image variantBrennen Bearnes2019-09-243-0/+39
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