Recent Posts
M1 Mac Nerdctl Configuration
Configure nerdctl for basic containerization development on Mac ARM64.
Using nerdctl Create an alias for the command lima nerdctl:
alias nerd='lima nerdctl' Writing files locally Create a new hugo blog post file in the current project directory:
lima nerdctl run --rm -v $(pwd)/src:/src -u `id -u $USER`:`id -g $USER` \ -it elswork/rpi-hugo:latest new posts/2022-01-05-m1-mac-nerdctl.md Configure lima Image compatibility To prevent the error message standard_init_linux.go:228: exec user process caused: exec format error:
read more
Docker Multi Architecture Build Raspbery Pi 4/Arm64
Building a Docker image on a Raspberry Pi targeting arm64 & x86/amd64.
Install cross compiler library docker run --privileged --rm tonistiigi/binfmt --install all Create image that will build the image docker buildx create --use --name builder Bootstrap the new image docker buildx inpsect --bootstrap Login to your container registry docker login registry.gitlab.com Build the image docker buildx build . --platform linux/arm64,linux/amd64 --push -t registry.gitlab.com/noirlab/noirlab-template/patternlab:5.13.1 docker buildx build . --platform linux/arm64,linux/amd64 --push -t registry.
read more
Drupal 8 Configuration Management
Modules List all modules using Drush drush pm-list --type=Module --status=enabled --no-core --format=list Configuration Drupal Console Setup site for Drupal console:
drupal init --site --no-interaction Generation path: /opt/drupal/web 1 - /root/.console/config.yml 2 - /opt/drupal/console/config.yml Dockerfile WORKDIR/optRUN composer create-project drupal/recommended-project:8.9.3 drupalRUN composer require drush/drushRUN echo '$settings["config_sync_directory"] = "../config/sync";' >> web/sites/default/default.settings.phpCOPY config /opt/drupal/web/sites/config/syncRUN php -d memory_limit=-1 `which drush` site:install minimal --existing-configPrep configuration from production server without Drush Export configuration from web ui. Extract and configuration tarball.
read more