SETTING UP A NO-OPS PROJECT USING LANDO, GITLAB AND PLATFORM.SH
Levi Govaerts & Nick Daelemans
The Reference
Levi Govaerts
@legovaer
Solution Architect
Nick Daelemans
@ndaelemans
Lead Developer
LANDO
https://github.com/lando/lando
Not the star wars dude.
LANDO
- Docker manager
- Recipes
- CLI
DON'T UPDATE TO DOCKER 2!
DRUPAL 8 DEFAULT RECIPE
APACHE:
PHP: 7.1
MYSQL: 5.7
.LANDO.YML
name: demo-drupalcamp
recipe: drupal8
config:
webroot: web
.LANDO.YML FOR PLATFORM.SH
name: demo-drupalcamp
recipe: drupal8
config:
webroot: web
via: nginx
database: mariadb
php: 7.2
SOME HANDY COMMANDS
// Initialize a Lando environment.
lando init
// Start up your new local environment.
lando start
// Get all info about your lando instance.
lando info
// Get all possible commands.
lando help
// Get list of all enabled lando projects
lando list
GITLAB
Issue Board
User Management
Container Registry
Wiki
GIT Repository
Integrates with anything
Time Tracking
GitLab Pipelines (CI)
image: thereference/docker-drupal-tools:1.1
stages:
- test
phplint:
except:
- develop
- acceptance
- master
- tags
stage: test
script:
- phplint
phpcs:
except:
- develop
- acceptance
- master
- tags
- content-acceptance
- content-develop
stage: test
script:
- phpcs --config-set installed_paths /root/.composer/vendor/drupal/coder/coder_sniffer
# If I made changes, phpcs on the files that are changed.
- if [[ $(git diff origin/content-develop --name-only --diff-filter=d) ]]; then phpcs --standard=Drupal --ignore=*.html.twig,*.gif,*.eot,libs/*.js,*.jpg,*.xml,*.png,*.svg --extensions=install,module,php,inc,theme $(git diff origin/content-develop --name-only --diff-filter=d); else echo "No diff found"; fi
YOU
PHPCS
Live Demo
Merge Request
Code Analysis
QA
DEV Deploy
TST Deploy
ACC Deploy
Pregolive
Go-Live
Setting up a No-Ops project using Lando, GitLab and Platform.sh
By Levi Govaerts
Setting up a No-Ops project using Lando, GitLab and Platform.sh
- 1,267