Skip to content

Instantly share code, notes, and snippets.

View rfay's full-sized avatar

Randy Fay rfay

View GitHub Profile
@rfay
rfay / Dockerfile
Last active April 25, 2023 22:00
Experimental gotenberg
FROM gotenberg/gotenberg
# CAROOT for mkcert to use, has the CA config
ENV CAROOT=/mnt/ddev-global-cache/mkcert
# If used on mac M1, the target platform will need to be adjustable
ARG TARGETPLATFORM=linux/arm64
USER root
RUN apt update && apt install -y inetutils-ping less procps sudo
@rfay
rfay / sponsors.md
Created April 17, 2023 21:46
github.com/ddev sponsorship profile

DDEV thrives on the collective strength of our incredible community. Your ideas, issues, PRs, and support play an invaluable role in driving the project forward. While these contributions are essential, financial support also plays a crucial part in ensuring DDEV's long-term sustainability.

Sponsorship funds are used to:

  • 10% go to all the wonderful upstream projects DDEV depends on
  • Compensate contributors for their work on documentation, feature development, and maintenance (Note: rfay is sponsored by Platform.sh and does not receive funds personally)
  • Pay for infrastructure needs, like testing resources.
  • Pay for software and equipment needed.

Details about the governance and financial goals are available in this issue and in DDEV Advisory Group minutes.

@rfay
rfay / ddev-get-list-all.txt
Created April 17, 2023 20:35
Output of ddev get --list --all
`ddev get --list --all`
┌────────────────────────────────────────┬────────────────────────────────────────────────────┐
│ ADD-ON │ DESCRIPTION │
├────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ a11ywatch/ddev-a11ywatch │ A11yWatch ddev addon │
├────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ bserem/ddev-typesense │ WIP: Typesense addon for DDEV │
├────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ claudiu-cristea/ddev-virtuoso │ Virtuoso triplestore installation for DDEV │
@rfay
rfay / Dockerfile
Last active March 12, 2023 16:50
Simple docker-compose.yaml + Dockerfile with build stage; Put these in a directory and `docker-compose build` in this directory will leave untagged "none" image
FROM debian
RUN ls
@rfay
rfay / nginx-site.conf
Created August 21, 2022 14:13
Custom nginx-site.conf to redirect http to https
# ddev drupal7 config
# See https://ddev.readthedocs.io/en/stable/users/extend/customization-extendibility/#providing-custom-nginx-configuration
server {
listen 80 default_server;
listen 443 ssl default_server;
root /var/www/html/docroot;
ssl_certificate /etc/ssl/certs/master.crt;
@rfay
rfay / convert-old-db.sh
Created August 18, 2022 23:20
Convert a pre-v1.19.0 in-volume database marker to current usage
#!/bin/bash
# convert the marker on an old pre-ddev v1.19 database to current usage
# See issue at https://github.com/drud/ddev/issues/4129
# First argument should be the project name
# Second argument is the correct value you want, for example,
# mariadb_10.2 or mysql_8.0
# Example: bash convert-old-db.sh fe-kuerschnersmart mariadb_10.2
if [ $# != 2 ]; then
@rfay
rfay / nginx-site.conf
Last active January 27, 2025 10:53
Put drupal in a subdirectory - ddev + nginx
# ddev drupal9 config
server {
listen 80 default_server;
listen 443 ssl default_server;
root /var/www/html/maresmuseum/web;
ssl_certificate /etc/ssl/certs/master.crt;
ssl_certificate_key /etc/ssl/certs/master.key;
@rfay
rfay / failure.txt
Created May 10, 2022 22:25
Failure installing dd-ext:0.5.2
PS C:\WINDOWS\system32> docker extension install slimdotai/dd-ext:0.5.2
Extensions can install binaries, invoke commands and access files on your machine.
Are you sure you want to continue? [y/N] y
Installing new extension "slimdotai/dd-ext:0.5.2"
Installing service in Desktop VM...
Setting additional compose attributes
VM service started
executing 'docker cp d38acd41dae136949c71353d021d98aa6dbb801f6f67579b87f798746097f542:/codi.svg C:\Users\randy\AppData\Roaming\Docker\extensions\slimdotai_dd-ext\codi.svg' : exit status 1:
Error response from daemon: i/o timeout
Removing extension slimdotai/dd-ext:0.5.2...
@rfay
rfay / Dockerfile
Created May 10, 2022 01:08
DDEV: Build xdebug from scratch
ARG BASE_IMAGE
FROM $BASE_IMAGE
ENV PHP_TAG=7.4.29
# May want to install php7.4-dev to find out config arguments with `php-config`
#RUN git clone https://github.com/php/php-src.git && cd php-src && git checkout php-$PHP_TAG && ./buildconf --force
#RUN ./configure --includedir=/usr/include --mandir=/usr/share/man --infodir=/usr/share/info --disable-option-checking --disable-silent-rules --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --enable-cli --disable-cgi --disable-phpdbg --with-config-file-path=/etc/php/7.4/cli --with-config-file-scan-dir=/etc/php/7.4/cli/conf.d --build=x86_64-linux-gnu --host=x86_64-linux-gnu --config-cache --cache-file=/build/php7.4-7.4.29/config.cache --libdir=${prefix}/lib/php --libexecdir=${prefix}/lib/php --datadir=${prefix}/share/php/7.4 --program-suffix=7.4 --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --disable-all --disable-debug --disable-rpath --disable-static --wi
<?php
/**
* #ddev-generated: Automatically generated TYPO3 AdditionalConfiguration.php file.
* ddev manages this file and may delete or overwrite the file unless this comment is removed.
* It is recommended that you leave this file alone.
*/
if (getenv('IS_DDEV_PROJECT') == 'true') {
$GLOBALS['TYPO3_CONF_VARS'] = array_replace_recursive(