Add the following snippet to ~/.composer/config.json
:
{
"repositories": [
{
"type": "path",
"url": "/path/to/package",
"options": {
"versions": {
"owner/repo": "3.1.10"
BEGIN MESSAGE. | |
lKvHUyNxgsGdfax uVtOtl6uvD204gN IEvxV8rQFk38YHH 0kdJOnTrnyY9DW3 | |
NwHFi2fp9lkfgA7 sY2DQQYjfj3TCKq 6Xr2MZHgg4izyZ4 ETcON0Q40PLebmO | |
aE8v6UEexRqTVLn jx8MzdrzPY0e05G HI9x8CxD6Ru0c9o Zj7Rlj9CfsqIPRJ | |
mOUD88TeK5ZfBl4 jgdTVnqUwjXRM2M qBpnG2IP. | |
END MESSAGE. |
# Allows for builds using `docker-compose build`. | |
export COMPOSE_DOCKER_CLI_BUILD=0 |
# Tail logs of running build of a Lagoon project's environment. | |
kubectl -n env-ns logs -f --selector=lagoon.sh/jobType=build | |
# Run a busybox image. | |
kubectl run -i -t busybox --image=busybox --restart=Never | |
# Run a curl image. | |
kubectl run curl --image=curlimages/curl --restart=Never -- https://google.com |
Add the following snippet to ~/.composer/config.json
:
{
"repositories": [
{
"type": "path",
"url": "/path/to/package",
"options": {
"versions": {
"owner/repo": "3.1.10"
# Get info. | |
redis-cli INFO | |
# DB size. | |
redis-cli DBSIZE | |
# Get real-time stats. | |
redis-cli --stat | |
# Monitor. |
Set env variables in Gitlab when pushing:
git push origin feature/ci-test -o ci.variable="GOVCMS_CI_IMAGE_VERSION=:edge"
Environment per project/directory
captainVersion: 4 | |
services: | |
$$cap_appname-db: | |
image: bitnami/$$cap_db_type:$$cap_database_version | |
volumes: | |
- $$cap_appname-db-data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: $$cap_db_pass | |
MYSQL_DATABASE: drupal |
<?php | |
/** | |
* Update an entity type's storage definition. | |
* | |
* An example is when the cardinality of a field is updated in config; since | |
* `drush updatedb` no longer performs entity updates, this has to be done | |
* manually now. | |
*/ | |
function _MODULE_NAME_update_field_definition($entity_type_id, $field_name) { |