Skip to main content

Docker - creating a container / image

Create and push to Docker Hub

Creating your own custom image... you need to have a Docker ID.  Not sure, well most likely you created it to download Docker Desktop.  If you don't have one, go to Docker and sign up.

In your  text editor create a file called Dockerfile in the same directory you want to have as your local site. No extension, just Dockerfile. Paste in this code and save the file:

Updating Composer

Running composer on a server... when running the command composer update, screen would error out.  In the site directory, composer would show 

composer --version
Composer version 1.10.24 2021-12-09 20:06:33

Whereas, the commnd

/opt/plesk/php/7.4/bin/php /usr/lib64/plesk-9.0/composer.phar --version

Composer version 2.2.5 2022-01-21 17:25:52

Ok, so composer on the server is running 2.2x.  But on my site directory, 1.x

Resetting Docker

Resetting Docker is basically following the start parameters.  All containers removed -

No containers running

Try running a container: Copy and paste this command into your terminal

docker run -d -p 80:80 docker/getting-started

Unable to find image 'docker/getting-started:latest' locally
latest: Pulling from docker/getting-started

 

Adding Solr authentication to your server

Adding basic security to your server, requires altering the security.json file.  For me this file was located

/var/solr/data/

 

Add a User or Edit a Password

The set-user command allows you to add users and change their passwords. For example, the following defines two users and their passwords:

Adding a progressive touch of automation to my scripts

This page will be a progressive outline of moving those regular run scripts that really need to be automated.  Or triggered by a keyword.

These scripts are rsync commands

 

The initial scripts

production environment

Setting up synonyms on your Drupal site with a few errors you might experience along the way

Having Drupal Solr Search APi running, I thought adding synonyms to the mix would be a smooth process.

 

Install synonym module

I cam across a synonym module created by Jens Beltofte - Search API Synonym.  Working on a Drupal 9.3.x installation, this module needs to be accessed via Git Search API Synonym,

Displaying a content type that has a paragraph within a paragraph in a twig file

I want to create a content type that has a paragraph.  Easy enough.

What happens when I want to extend this concept and have a paragraph within the first paragraph?  Importantly, then display the second paragraph in a twig file.

How to create a content type that holds a paragraph within a paragraph and make it display in twig files?

 

jquery-ui-slider-pips not loading, time to move to Svelte

Have you tried to run a composer update script that has bower-asset/jquery-ui-slider-pips set?  I have and realised that jquery-ui-slider-pips package had been removed.  So I added it back, and ran the command composer update.

Subscribe to