Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: standardize capitalization #29

Closed
wants to merge 116 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
296ec01
docs: fix broken numeration in Pantheon (#5679) [skip ci]
stasadev Jan 16, 2024
520d250
docs: fix composer command code block (#5678) [skip ci]
mttsch Jan 16, 2024
a2739fc
docs: fix name of HeidiSQL executable (#5677) [skip ci]
mttsch Jan 16, 2024
8d2a0bd
docs: update links for VSCode step-debugging extensions (#5699) [skip…
Nick-Hope Jan 16, 2024
cc6ad97
build: bump github.com/cloudflare/circl from 1.3.6 to 1.3.7 (#5683) […
dependabot[bot] Jan 16, 2024
94d7750
refactor: move projects list into its own yaml file, fixes #5639 (#5651)
GuySartorelli Jan 16, 2024
9bd9054
docs: temporarily revert docs on not needing --create-docroot (#5716)
rfay Jan 19, 2024
a066c42
docs: fix gitpod PR link (#5719) [skip ci]
rfay Jan 21, 2024
9676950
fix: Add correct mime types for Javascript (#5661) [skip ci]
jonnitto Jan 26, 2024
6be1176
fix: remove CRAFT_WEB_URL, fixes #5665 (#5668) [skip ci]
timkelty Jan 26, 2024
9d60b74
fix: remove --json-output flag from `logs` command, fixes #962 (#5695…
GuySartorelli Jan 26, 2024
16f2a2e
docs: Overhaul Shell Completion & Autocomplete documentation (#5701) …
Nick-Hope Jan 26, 2024
82925f2
feat: allow global host commands to be run from anywhere, for #4416 (…
GuySartorelli Jan 26, 2024
d121c88
fix: use init option to prevent zombie ddev-router, for #5705 (#5707)…
stasadev Jan 26, 2024
70db05a
fix: acli output has changed, capture the output file correctly, fixe…
rfay Jan 26, 2024
54a71e3
docs: expand docs on PHP extension installation, including pecl (#571…
rfay Jan 26, 2024
9d44584
docs: fix localdev foundation -> DDEV foundation, for #4848 (#5718) […
rfay Jan 26, 2024
5efc9c1
fix: make xhprof faster, fixes #5712 (#5721) [skip ci]
LionsAd Jan 26, 2024
80a490b
feat: Platform.sh specific app pull, fixes #5727 (#5728) [skip ci]
nir-riskified Jan 26, 2024
7403ef4
docs: Update Drupal 9 & 10 CMS Quickstarts (#5733) [skip ci]
Nick-Hope Jan 26, 2024
00c15ca
feat: add WSL2 support to tableplus command (#5738) [skip ci]
plebward Jan 26, 2024
2defedb
feat: add environment and name to TablePlus command (#5741)
marten-wirelab Jan 26, 2024
78dee5f
docs: use Stack Overflow email filter for maintainers (#5764) [skip ci]
stasadev Feb 2, 2024
8602f08
build: bump peter-evans/create-issue-from-file from 4 to 5 (#5752) [s…
dependabot[bot] Feb 2, 2024
14bd9cf
build: bump styfle/cancel-workflow-action from 0.12.0 to 0.12.1 (#575…
dependabot[bot] Feb 2, 2024
b6b542f
fix: update project schema nodejs_version, for #5400 (#5758) [skip ci]
stasadev Feb 2, 2024
da7bb23
fix: wording on install docs home page about Docker providers should …
joachim-n Feb 2, 2024
6e4997f
docs: added sql:sanitize to Drupal hook examples. (#5737) [skip ci]
karenmurky Feb 2, 2024
35bae0c
build: bump actions/cache from 3 to 4 (#5724) [skip ci]
dependabot[bot] Feb 2, 2024
c9d8f54
docs: use zero width non joiner for markdownlint (#5765) [skip ci]
stasadev Feb 2, 2024
d8053c3
build: bump docker-compose to v2.24.5, set `healthcheck.start_interva…
stasadev Feb 2, 2024
121dc59
test: bump docker-login buildkite plugin to 3.0.0 (#5769) [skip ci]
rfay Feb 3, 2024
b4cf613
build: update runc, replaces #5760 (#5766)
rfay Feb 3, 2024
dab6258
test: Revert "test: bump docker-login buildkite plugin to 3.0.0" (#5776)
rfay Feb 3, 2024
bdd783d
feat: add autocomplete for project name arguments, fixes #4880 (#5732)
GuySartorelli Feb 4, 2024
77910a1
test: only test macos amd64 on master (#5779) [skip ci]
rfay Feb 4, 2024
c9aa2b7
test: CircleCI upgrade to go v1.21 (#5780)
rfay Feb 4, 2024
e6ba525
docs: auto-enable/disable Xdebug when step debugging with VS Code (#5…
jameswilson Feb 5, 2024
f15cf72
fix: remove redundant chown in ddev-webserver start.sh, for #4942 (#5…
rfay Feb 5, 2024
baa3d75
fix: when settings files not set, don't chmod, fixes #5675 (#5676)
rfay Feb 5, 2024
9150232
fix: nodejs in web container should be link to /usr/local/bin/node (#…
rfay Feb 5, 2024
c3eab51
build: Use new tag to get new deb.sury.org key (and updated php versi…
rfay Feb 5, 2024
edb09ef
feat: get completion for composer commands (#5756)
GuySartorelli Feb 6, 2024
5c7cd2b
build: bump images to v1.22.7 for release, fixes #5633 (#5798)
rfay Feb 7, 2024
96dcd92
build: update .gitpod.yml for new release [skip ci]
rfay Feb 8, 2024
ee16949
docs: Add using current stable version to troubleshooting section (#5…
rfay Feb 9, 2024
2acaec4
docs: Revert "docs: temporarily revert docs on not needing --create-d…
rfay Feb 9, 2024
03a14bb
test: golangci-lint got pickier, satisfy it (#5812)
rfay Feb 10, 2024
9d82e9e
feat: support TablePlus application located in setapp directory (#581…
peterkraume Feb 11, 2024
42e61d3
fix: follow the zsh naming conventions for completion scripts (#5814)…
rpkoller Feb 11, 2024
8c7af56
docs: update buildkite installation to include icinga (#5802) [skip ci]
rfay Feb 11, 2024
9ffd61e
docs: show initial and project-checkout Backdrop installation (#5781)…
tyler36 Feb 11, 2024
1be7e65
feat: enable autocompletion for custom commands, fixes #5783 (#5785)
GuySartorelli Feb 11, 2024
91d1f46
build: bump ddev-php-base and ddev-webserver to base on Debian 12 boo…
rfay Feb 12, 2024
d2ee118
docs: update developer release instructions (#5789) [skip ci]
stasadev Feb 12, 2024
8c9ad11
build: improve goreleaser, add testing capabilities, "head" release, …
rfay Feb 12, 2024
3e06883
build: revert implementation of 'head' release, fixes #5830 (#5831)
rfay Feb 12, 2024
34485f4
build: bump golangci/golangci-lint-action from 3 to 4 (#5827) [skip ci]
dependabot[bot] Feb 12, 2024
3f22d8f
build: bump fuxingloh/multi-labeler from 2 to 3 (#5828) [skip ci]
dependabot[bot] Feb 12, 2024
3a1bcf9
build: filter binaries for deb and rpm on release, fixes #5734 (#5759)
stasadev Feb 13, 2024
2d59e77
docs: find all DDEV binaries using `which -a ddev` (#5834) [skip ci]
stasadev Feb 14, 2024
6d96bad
docs: update the section about zsh completions (#5825) [skip ci]
rpkoller Feb 14, 2024
0f21004
build: bump traefik to 2.11 (#5833) [skip ci]
nilsingwersen Feb 14, 2024
df3bfed
refactor: update to Node.js v20 LTS as current default (#5453)
peter-neumann-dev Feb 14, 2024
8d04729
docs: improve buildkite setup for WSL2 (#5846) [skip ci]
rfay Feb 15, 2024
6767194
docs: use PHP 8.3 for the TYPO3 Quickstart (#5842) [skip ci]
jonaseberle Feb 15, 2024
efa8cea
feat: change php default version to 8.2, fixes #5767 (#5835)
rfay Feb 15, 2024
046c40b
docs: add maintainer docs about remote-config testing (#5850) [skip ci]
rfay Feb 17, 2024
e280b37
test: silence docker scout nonsense in buildkite [skip ci] (#5851) [s…
rfay Feb 17, 2024
c7ae1b6
docs: don't link check a couple of unstable external urls [skip ci] (…
rfay Feb 17, 2024
ca7e2ab
fix: make `ddev --version` work even if not in project and ~/.ddev/co…
rfay Feb 17, 2024
b3f7cf6
feat: replace fsouza/go-dockerclient with docker/docker/client, fixes…
stasadev Feb 17, 2024
4b052ed
docs: stop checking all stack overflow links (#5858) [skip ci]
rfay Feb 17, 2024
49bf2a4
docs: mostly warn people off of using xdebug_ide_location (#5857) [sk…
rfay Feb 17, 2024
49a79a8
docs: add auto light / dark mode (#5853)
stasadev Feb 19, 2024
2b2091d
build: bump fuxingloh/multi-labeler from 3 to 4 (#5867) [skip ci]
dependabot[bot] Feb 19, 2024
1b90976
docs: buildkite wsl2 setup learning (#5864) [skip ci]
rfay Feb 19, 2024
8c9441b
docs: stop checking link to community.chocolatey.org (#5869) [skip ci]
rfay Feb 19, 2024
8956afd
test: stop testing TestAutocompletionForCustomCmds on Windows, fixes …
rfay Feb 19, 2024
08d94f7
fix: do not create project network programmatically on `ddev start`, …
stasadev Feb 19, 2024
b1c32a9
test: Minor improvement to TestComposerVersion (#5879) [skip ci]
rfay Feb 21, 2024
12da4ba
test: Fix TestPantheonPush, broken due to php8.2 default (#5874) [ski…
rfay Feb 21, 2024
8f7a15d
fix: don't panic in app.Describe() if container not found (#5873) [sk…
rfay Feb 21, 2024
2e2afbc
fix: ddev start should not continue if web/db containers aren't healt…
rfay Feb 21, 2024
ce909b2
docs: fix 404 link in phpstorm docs (#5881) [skip ci]
rfay Feb 21, 2024
2bde673
docs: Link to 'Upgrading DDEV' in 'Usage' section (#5877) [skip ci]
amanire Feb 21, 2024
ae1a18a
fix: error message 'Error converting to int' on `ddev import-db` (#58…
rfay Feb 21, 2024
18842b6
fix: cache Docker client instead of creating a new one all the time, …
stasadev Feb 21, 2024
d7163e7
test: exclude TestPHPOverrides on Colima and TestProcessHooks on Wind…
rfay Feb 22, 2024
e5e0238
fix: don't start 'mutagen daemon run' during ddev stop/delete (#5868)…
rfay Feb 23, 2024
20a58d4
feat: change database default to mariadb:10.11, fixes #5797 (#5836)
rfay Feb 23, 2024
d9d922f
test: Run colima tests native instead of github, fixes #5598 (#5886)
rfay Feb 25, 2024
3c07de8
test: make sure buildkite leaves docker in sane setup (#5897) [skip ci]
rfay Feb 26, 2024
099b9c3
docs: point to HEAD version of TestSites array (#5895) [skip ci]
diegoe Feb 26, 2024
cff220b
docs: show a warning banner for the latest docs (readthedocs+mkdocs) …
stasadev Feb 26, 2024
cc84e74
feat: change upgrade pester interval to 4 hours, for #5889 (#5890) [s…
rfay Feb 26, 2024
8a6addb
feat: make `ddev composer create` fully compatible with `composer cre…
gilbertsoft Feb 26, 2024
c8fb3fc
test: more buildkite work, windows not working [skip ci] (#5902)
rfay Feb 27, 2024
02bcf8f
fix: set permissions on /run/php so php-fpm can run (#5900)
stasadev Feb 27, 2024
fc50176
docs: update Debugging & Profiling for recent updates to phpstorm ui …
vanWittlaer Feb 27, 2024
499b164
docs: improve database type and version visibility (#5884) [skip ci]
tyler36 Feb 27, 2024
73abc7a
fix: make a copy of the bytes array before passing to the channel, fi…
deviantintegral Feb 27, 2024
751b6a5
docs: add instructions for Grav CMS to quickstart.md (#5796) [skip ci]
rpkoller Feb 28, 2024
a816a36
docs: add kirby to cms quickstart instructions (#5791) [skip ci]
texnixe Feb 28, 2024
904d69b
docs: fix systemd unit example for casual hosting (#5876) [skip ci]
vanWittlaer Feb 28, 2024
1c847f1
refactor: point go code to the stable docs (#5905) [skip ci]
stasadev Feb 28, 2024
f6474f2
fix: ddev config should not change unspecified options, fixes #5882 (…
stasadev Feb 28, 2024
61f9e4e
docs: mention more Docker providers for macOS (#5914) [skip ci]
stasadev Feb 29, 2024
9e31187
docs: Add Pimcore quickstart, fixes #5843 (#5909) [skip ci]
rfay Mar 1, 2024
cd798dc
docs: Use backticks when referencing custom command annotations, fixe…
GuySartorelli Mar 4, 2024
d4fc865
docs: update faq with new questions, fix menus (#5924) [skip ci]
rfay Mar 4, 2024
e4b45d5
docs: fix extraneous '#' in FAQ (#5930) [skip ci]
rfay Mar 4, 2024
e294282
fix: magento2 requires mariadb 10.6, for #5919 (#5922)
rfay Mar 4, 2024
c5ec069
docs: remove 'just' (#5933) [skip ci]
rfay Mar 4, 2024
1c2e0e5
standardize capitalization
tyler36 Mar 4, 2024
dbe2203
Capitalize for provider
tyler36 Mar 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .buildkite/macos-colima.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Colima with qemu and sshfs
# See https://buildkite.com/ddev/macos-colima/settings/repository
# Runs on master and PRs, including forked PRs

- command: ".buildkite/test.sh"
plugins:
- docker-login#v2.1.0:
username: druddockerpullaccount
password-env: DOCKERHUB_PULL_PASSWORD
agents:
- "os=macos"
- "colima=true"
- "architecture=arm64"
env:
BUILDKITE_CLEAN_CHECKOUT: true
BUILDKITE_BUILD_PATH: ~/tmp/buildkite_builds
BUILDKIT_PROGRESS: plain
DDEV_TEST_SHARE_CMD: "false"
DDEV_RUN_GET_TESTS: "false"
DOCKER_TYPE: "colima"
parallelism: 1
23 changes: 23 additions & 0 deletions .buildkite/macos-colima_vz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Colima with VZ and virtiofs
# See https://buildkite.com/ddev/macos-colima-vz/settings/repository
# Runs on master and PRs, including forked PRs

- command: ".buildkite/test.sh"
plugins:
- docker-login#v2.1.0:
username: druddockerpullaccount
password-env: DOCKERHUB_PULL_PASSWORD
agents:
- "os=macos"
- "colima=true"
- "colima_vz=true"
- "architecture=arm64"
#branches: "master"
env:
BUILDKITE_CLEAN_CHECKOUT: true
BUILDKITE_BUILD_PATH: ~/tmp/buildkite_builds
BUILDKIT_PROGRESS: plain
DDEV_TEST_SHARE_CMD: "false"
DDEV_RUN_GET_TESTS: "false"
DOCKER_TYPE: "colima_vz"
parallelism: 1
5 changes: 5 additions & 0 deletions .buildkite/macos-docker-desktop-amd64.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Docker Desktop on macOS amd64
# See https://buildkite.com/ddev/ddev-macos-amd64-mutagen/settings/repository
# Runs on master only

- command: ".buildkite/test.sh"
plugins:
- docker-login#v2.1.0:
Expand All @@ -7,6 +11,7 @@
- "os=macos"
- "docker-desktop=true"
- "architecture=amd64"
branches: "master"
env:
BUILDKITE_CLEAN_CHECKOUT: true
BUILDKITE_BUILD_PATH: ~/tmp/buildkite_builds
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/macos-docker-desktop-arm64.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Docker Desktop on macOS arm64
# See https://buildkite.com/ddev/ddev-macos-arm64-mutagen/settings/repository
# Runs on master and PRs, including forked PRs

- command: ".buildkite/test.sh"
plugins:
- docker-login#v2.1.0:
Expand Down
22 changes: 22 additions & 0 deletions .buildkite/macos-lima.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# macOS Lima on arm64 with VZ/Virtiofs
# Experimental, not yet enabled
# See https://buildkite.com/ddev/macos-lima/settings/repository

- command: ".buildkite/test.sh"
plugins:
- docker-login#v2.1.0:
username: druddockerpullaccount
password-env: DOCKERHUB_PULL_PASSWORD
agents:
- "os=macos"
- "lima=true"
- "architecture=arm64"
branches: "none"
env:
BUILDKITE_CLEAN_CHECKOUT: true
BUILDKITE_BUILD_PATH: ~/tmp/buildkite_builds
BUILDKIT_PROGRESS: plain
DDEV_TEST_SHARE_CMD: "false"
DDEV_RUN_GET_TESTS: "false"
DOCKER_TYPE: "lima"
parallelism: 1
6 changes: 5 additions & 1 deletion .buildkite/macos-orbstack.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Orbstack on macOS arm64
# See https://buildkite.com/ddev/macos-orbstack/settings/repository
# Runs on master and PRs, including forked PRs

- command: ".buildkite/test.sh"
plugins:
- docker-login#v2.1.0:
Expand All @@ -7,7 +11,7 @@
- "os=macos"
- "orbstack=true"
- "architecture=arm64"
#branches: "master"
# branches: "master"
env:
BUILDKITE_CLEAN_CHECKOUT: true
BUILDKITE_BUILD_PATH: ~/tmp/buildkite_builds
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/macos-rancher-desktop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Rancher Desktop on macOS arm64
# See https://buildkite.com/ddev/macos-rancher-desktop/settings/repository
# Runs on ddev/ddev only, not on PRs

- command: ".buildkite/test.sh"
plugins:
- docker-login#v2.1.0:
Expand Down
21 changes: 5 additions & 16 deletions .buildkite/nfstest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,11 @@ set -o errexit
set -o pipefail
set -o nounset

function cleanup {
docker volume rm nfstest >/dev/null || true
}
trap cleanup EXIT
NFS_PROJECT_DIR=~/tmp/ddev-nfs-test
mkdir -p ${NFS_PROJECT_DIR} || true && cd ${NFS_PROJECT_DIR}

mkdir -p ~/.ddev
ddev config --auto
ddev debug nfsmount
ddev delete -Oy

# Handle new macOS Catalina /System/Volumes/Data share path.
share=${HOME}/.ddev
if [ -d "/System/Volumes/Data${HOME}/.ddev" ] ; then
share="/System/Volumes/Data${HOME}/.ddev"
fi

# Find host.docker.internal name using host-docker-internal.sh script
hostDockerInternal=$($(dirname $0)/../scripts/host-docker-internal.sh)

docker volume create --driver local --opt type=nfs --opt o=addr=${hostDockerInternal},hard,nolock,rw --opt device=:${share} nfstest >/dev/null
docker run -t --rm -v nfstest:/tmp/nfs busybox:stable ls //tmp/nfs >/dev/null
echo "nfsd seems to be set up ok"
4 changes: 2 additions & 2 deletions .buildkite/sanetestbot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ if command -v ddev >/dev/null && version_gt ${MIN_DDEV_VERSION} ${CURRENT_DDEV_V
exit 4
fi

# Skip nfs check on linux, as we won't run nfs there
if [ ${OSTYPE%%-gnu} != "linux" ]; then
# Skip nfs check on linux/lima, as we won't run nfs there
if [ ${OSTYPE%%-gnu} != "linux" ] && [ ${DOCKER_TYPE:-nothing} != "lima" ]; then
$(dirname $0)/nfstest.sh
fi

Expand Down
145 changes: 102 additions & 43 deletions .buildkite/test.sh
Original file line number Diff line number Diff line change
@@ -1,37 +1,75 @@
#!/bin/bash
# This script is used to build ddev/ddev using buildkite

set -eu -o pipefail

export PATH=$PATH:/home/linuxbrew/.linuxbrew/bin

# GOTEST_SHORT=8 means drupal9
export GOTEST_SHORT=8
# GOTEST_SHORT=12 means drupal10
export GOTEST_SHORT=12

export DOCKER_SCAN_SUGGEST=false
export DOCKER_SCOUT_SUGGEST=false

# On macOS, we can have several different docker providers, allow testing all
# In cleanup, stop everything we know of but leave either Orbstack or Docker Desktop running
if [ "${OSTYPE%%[0-9]*}" = "darwin" ]; then
function cleanup {
# docker context use default
true
command -v orb 2>/dev/null && echo "Stopping orbstack" && (nohup orb stop &)
sleep 3 # Since we backgrounded orb stop, make sure it completes
if [ -f /Applications/Docker.app ]; then echo "Stopping Docker Desktop" && (killall com.docker.backend || true); fi
command -v colima 2>/dev/null && echo "Stopping colima" && (colima stop || true)
command -v colima 2>/dev/null && echo "Stopping colima_vz" && (colima stop vz || true)
command -v limactl 2>/dev/null && echo "Stopping lima" && (limactl stop lima-vz || true)
if [ -f ~/.rd/bin/rdctl ]; then echo "Stopping Rancher Desktop" && (~/.rd/bin/rdctl shutdown || true); fi
docker context use default
# Leave orbstack running as the most likely to be reliable, otherwise Docker Desktop
if command -v orb 2>/dev/null ; then
echo "Starting orbstack" && (nohup orb start &)
else
open -a Docker
fi
sleep 5
}
trap cleanup EXIT

echo "original docker context situation:"
# Start with a predictable docker provider running
cleanup

echo "starting docker context situation:"
docker context ls
case ${DOCKER_TYPE} in

# Now start the docker provider we want
case ${DOCKER_TYPE:=none} in
"colima")
colima start
# Colima seems to end up working better with less failures if we restart after starting
colima restart
docker context use colima
;;
"colima_vz")
colima start vz
colima restart vz
docker context use colima-vz
;;

"lima")
limactl start lima-vz
docker context use lima-lima-vz
;;

"docker-desktop")
orb stop &
~/.rd/bin/rdctl shutdown || true
open -a Docker &
open -a Docker
docker context use desktop-linux
;;

"orbstack")
~/.rd/bin/rdctl shutdown || true
killall com.docker.backend || true
orb start &
nohup orb start &
sleep 3
docker context use orbstack
;;

"rancher-desktop")
killall com.docker.backend || true
orb stop &
~/.rd/bin/rdctl start
for i in {1..120}; do
if docker context use rancher-desktop >/dev/null 2>&1 ; then
Expand All @@ -55,56 +93,77 @@ if [ ${OSTYPE%%-*} = "linux" ]; then
fi

# Make sure docker is working
echo "Waiting for docker to come up: $(date)"
date && ${TIMEOUT_CMD} 10m bash -c 'while ! docker ps >/dev/null 2>&1 ; do
echo "Waiting for docker provider to come up: $(date)"
date && ${TIMEOUT_CMD} 3m bash -c 'while ! docker ps >/dev/null 2>&1 ; do
sleep 10
echo "Waiting for docker to come up: $(date)"
echo "Waiting: $(date)"
done'
echo "Testing again to make sure docker came up: $(date)"
if ! docker ps >/dev/null 2>&1 ; then
echo "Docker is not running, exiting"
exit 1
fi

echo "buildkite building ${BUILDKITE_JOB_ID:-} at $(date) on $(hostname) as USER=${USER} for OS=${OSTYPE} DOCKER_TYPE=${DOCKER_TYPE:notset} in ${PWD} with GOTEST_SHORT=${GOTEST_SHORT} golang=$(go version | awk '{print $3}') docker-desktop=$(scripts/docker-desktop-version.sh) docker=$(docker --version | awk '{print $3}') ddev version=$(ddev --version | awk '{print $3}'))"

echo
echo "buildkite building ${BUILDKITE_JOB_ID:-} at $(date) on $(hostname) as USER=${USER:-unknown} for OS=${OSTYPE:-unknown} DOCKER_TYPE=${DOCKER_TYPE:-notset} in ${PWD} with GOTEST_SHORT=${GOTEST_SHORT:-notset} golang=$(go version | awk '{print $3}') ddev version=$(ddev --version | awk '{print $3}')"

echo
case ${DOCKER_TYPE:-none} in
"docker-desktop")
echo "docker-desktop for mac version=$(scripts/docker-desktop-version.sh)"
;;
"colima")
echo "colima version=$(colima version)"
;;
"colima_vz")
echo "colima version=$(colima version)"
;;

"orbstack")
echo "orbstack version=$(orbctl version)"
;;
"rancher-desktop")
echo "rancher-desktop=$(~/.rd/bin/rdctl version)"
;;
"wsl2dockerinside")
echo "Running wsl2dockerinside"
;;
"dockerforwindows")
echo "Running Windows docker desktop for windows"
;;
"wsl2-docker-desktop")
echo "Running wsl2-docker-desktop"
;;
*)
echo "$DOCKER_TYPE not found"
;;
esac

echo "Docker version:"
docker version
echo "ddev version"
ddev version
echo

export DDEV_NONINTERACTIVE=true
export DDEV_DEBUG=true

set -o errexit
set -o pipefail
set -o nounset
set -x

# Broken docker context list from https://github.com/docker/for-win/issues/13180
# When this is solved this can be removed.
# The only place we care about non-default context is macOS Colima
if ! docker context list >/dev/null; then
rm -rf ~/.docker/contexts && docker context list >/dev/null
# We can skip builds with commit message of [skip buildkite]
if [[ $BUILDKITE_MESSAGE == *"[skip buildkite]"* ]] || [[ $BUILDKITE_MESSAGE == *"[skip ci]"* ]]; then
echo "Skipping build because message has '[skip buildkite]' or '[skip ci]'"
exit 0
fi

# If this is a PR and the diff doesn't have code, skip it
if [ "${BUILDKITE_PULL_REQUEST:-false}" != "false" ] && ! git diff --name-only refs/remotes/origin/${BUILDKITE_PULL_REQUEST_BASE_BRANCH:-} | egrep "^(\.buildkite|Makefile|pkg|cmd|vendor|go\.)" >/dev/null; then
echo "Skipping build since no code changes found"
exit 0
fi

# We can skip builds with commit message of [skip buildkite]
if [[ $BUILDKITE_MESSAGE == *"[skip buildkite]"* ]] || [[ $BUILDKITE_MESSAGE == *"[skip ci]"* ]]; then
echo "Skipping build because message has '[skip buildkite]' or '[skip ci]'"
echo "Skipping buildkite build since no code changes found"
exit 0
fi

# On macOS, restart docker to avoid bugs where containers can't be deleted
#if [ "${OSTYPE%%[0-9]*}" = "darwin" ]; then
# killall Docker || true
# nohup /Applications/Docker.app/Contents/MacOS/Docker --unattended &
# sleep 10
#fi
set -x

docker volume rm ddev-global-cache >/dev/null 2>&1 || true
# We don't want any docker volumes to be existing and changing behavior
docker volume prune -a -f >/dev/null 2>&1 || true

# Run any testbot maintenance that may need to be done
echo "--- running testbot_maintenance.sh"
Expand Down
9 changes: 5 additions & 4 deletions .buildkite/testbot_maintenance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu -o pipefail

os=$(go env GOOS)

rm -rf ~/.ddev/Test* ~/.ddev/global_config.yaml ~/.ddev/homeadditions ~/.ddev/commands ~/.ddev/bin/docker-compose* ~/tmp/ddevtest
rm -rf ~/.ddev/Test* ~/.ddev/global_config.yaml ~/.ddev/project_list.yaml ~/.ddev/homeadditions ~/.ddev/commands ~/.ddev/bin/docker-compose* ~/tmp/ddevtest

# Latest git won't let you do much in a non-safe directory
git config --global --add safe.directory '*' || true
Expand All @@ -27,7 +27,7 @@ fi
# Upgrade various items on various operating systems
case $os in
darwin)
for item in ddev/ddev-edge/ddev golang golangci-lint libpq mkcert mkdocs; do
for item in ddev/ddev/ddev golang golangci-lint libpq mkcert mkdocs; do
brew upgrade $item || brew install $item || true
done
brew link --force libpq
Expand All @@ -39,7 +39,7 @@ windows)
linux)
# homebrew is only on amd64
if [ "$(arch)" = "x86_64" ]; then
for item in ddev/ddev-edge/ddev golang libpq mkcert mkdocs; do
for item in libpq mkcert mkdocs; do
brew upgrade $item || brew install $item || true
done
brew link --force libpq
Expand All @@ -48,7 +48,8 @@ linux)

esac

(yes | ddev delete images >/dev/null) || true
echo "Deleting unused images with ddev delete images"
ddev delete images -y || true

# Remove any -built images, as we want to make sure tests do the building.
docker rmi -f $(docker images --filter "dangling=true" -q --no-trunc) >/dev/null 2>&1 || true
Expand Down
Loading
Loading