The "magical" whale.
- Remove existing image, if needed. See "Misc commands" for details.
- Build the new image
docker build -t app .
- Find the image ID
docker images
docker run -t -d --name my_app
certbot certonly --manual --preferred-challenges dns -d '*.domain.com' -d domain.com | |
# Will have to add 2 DNS records in separate steps. | |
# Verify records are there. | |
nslookup -q=txt _acme-challenge.domain.com | |
dig -t txt _acme-challenge.domain.com +short | |
# Place files, if needed. | |
# Restart webserver. |
#!/bin/bash | |
docker system prune -f | |
docker image prune -f | |
docker volume prune -f |
#!/bin/bash | |
terminus backup:create site.env --element db &>/dev/null & | |
disown |
# TODO: document these. | |
docker rm -v $(docker ps --filter status=exited -q 2>/dev/null) 2>/dev/null | |
docker rmi $(docker images --filter dangling=true -q 2>/dev/null) 2>/dev/null |
// Set request blocking before any network activity | |
// No "clearing" is done at the end of the pass since blockUrlPatterns([]) will unset all if | |
// neccessary at the beginning of the next pass. | |
await passContext.driver.blockUrlPatterns(blockedUrls); | |
await passContext.driver.setExtraHTTPHeaders(passContext.settings.extraHeaders); | |
// Add this call for setting the cookie. | |
await passContext.driver.setCookie(); |
#!/usr/bin/env bash | |
DEPENDENCY_LOCATIONS=("./drush/Commands/contrib") | |
DEPENDENCY_LOCATIONS+=("./vendor") | |
DEPENDENCY_LOCATIONS+=("./web/libraries") | |
DEPENDENCY_LOCATIONS+=("./web/modules/contrib") | |
DEPENDENCY_LOCATIONS+=("./web/profiles/contrib") | |
DEPENDENCY_LOCATIONS+=("./web/themes/contrib") | |
for DEPENDENCY_LOCATION in "${DEPENDENCY_LOCATIONS[@]}" |
#!/bin/bash | |
set -e | |
# Grab args, shift first off as the timeout. | |
END=$((SECONDS+$1)) | |
shift | |
SERVICES=( $@ ) | |
# Wait for the services to report as healthy. |
# Delete local branches. | |
git branch --merged main | grep -v "\* main" | xargs -n 1 git branch -d | |
# Delete local branches (seems to remove only some). | |
git remote prune origin | |
# Delete remote branches (dry run). | |
git branch -r --merged origin/main | grep -v 'origin/main' | sed -E 's/(origin\/)//' | |
# Delete remote branches (for real). | |
git branch -r --merged origin/main | grep -v 'origin/main' | sed -E 's/(origin\/)//' | xargs -n 1 -I % git push origin :% |
default: | |
extensions: | |
Behat\MinkExtension: | |
base_url: https://mysite.local | |
goutte: | |
guzzle_parameters: | |
verify: false |