Articles
read more
SystemD Puppet ERB Template for Clustered Minio
A Puppet ERB template for generating Minio cluster systemd control script.
@cluster_fqdn is an array of fully qualified domain names of each node in the cluster.
https://gist.github.com/alastairhm/51eb6f8bb35b8d785639c3e3165b41ac
Doodle's Geek Monkey by Alastair Montgomery
@cluster_fqdn is an array of fully qualified domain names of each node in the cluster.
| [Unit] | |
| Description=Minio | |
| Documentation=https://docs.minio.io | |
| Wants=network-online.target | |
| After=network-online.target | |
| After=syslog.target network.target | |
| AssertFileIsExecutable=<%= @installation_directory %>/minio | |
| [Service] | |
| WorkingDirectory=<%= @installation_directory %> | |
| Environment="MINIO_ACCESS_KEY=<%= @access_key %>" | |
| Environment="MINIO_SECRET_KEY=<%= @secret_key %>" | |
| User=<%= @owner %> | |
| Group=<%= @group %> | |
| PermissionsStartOnly=true | |
| ExecStart=<%= @installation_directory %>/minio server --config-dir <%= @configuration_directory %> \ | |
| <% @cluster_fqdn.each_with_index do |fqdn, i| -%> | |
| <%- unless i < (@cluster_fqdn.size - 1) -%> | |
| http://<%= fqdn %><%= @minio_mount_partition %>/minio-data | |
| <%- else -%> | |
| http://<%= fqdn %><%= @minio_mount_partition %>/minio-data \ | |
| <%- end -%> | |
| <% end -%> | |
| StandardOutput=journal | |
| StandardError=inherit | |
| # Specifies the maximum file descriptor number that can be opened by this process | |
| LimitNOFILE=65536 | |
| # Disable timeout logic and wait until process is stopped | |
| TimeoutStopSec=0 | |
| # SIGTERM signal is used to stop Minio | |
| KillSignal=SIGTERM | |
| SendSIGKILL=no | |
| SuccessExitStatus=0 | |
| [Install] | |
| WantedBy=multi-user.target |
https://gist.github.com/alastairhm/51eb6f8bb35b8d785639c3e3165b41ac
Doodle's Geek Monkey by Alastair Montgomery
Articles
read more
Building Raspberry PI image using Vagrant
Building your own Raspberry Pi Images
The Vagrant file on https://github.com/alastairhm/pibuild sets up a build environment for building Raspberry Pi images from the repository https://github.com/RPi-Distro/pi-gen.
I am using it to create a custom image minimal with Docker pre-installed based on https://github.com/jonasrosland/pi-gen although you can edit the scripts to pre-install the packages you want in your image.
Doodle's Geek Monkey by Alastair Montgomery
The Vagrant file on https://github.com/alastairhm/pibuild sets up a build environment for building Raspberry Pi images from the repository https://github.com/RPi-Distro/pi-gen.
I am using it to create a custom image minimal with Docker pre-installed based on https://github.com/jonasrosland/pi-gen although you can edit the scripts to pre-install the packages you want in your image.
Doodle's Geek Monkey by Alastair Montgomery
Articles
read more
Make a Raspberry Pi Portable Arcade Console (with Retropie)
Looks like a cool project without doing a full arcade machine.
Articles
First nine level of Chuckie Egg on the BBC B Micro emulator
read more
BBC Micro Chuckie Egg
First nine level of Chuckie Egg on the BBC B Micro emulator
Articles
Not a bad attempt after 20 odd years of not playing.
read more
Killer Gorilla on the BBC Micro
Not a bad attempt after 20 odd years of not playing.
Articles
read more
ympd - Control MPD player from a Docker Image
Note: 1 of this post’s 5 links are now broken — mostly dead 2008–2013 feed-syndication infrastructure (FeedBurner, Gawker, AOL’s old blog network, Pheedo, Yahoo Pipes). Left as originally published.
After setting up a Streaming radio instance of MPD/Icecast2 running in a Docker image I was looking for a nice front end to control it.
I found ympd a MPD web GUI written in C, so created a Docker image to run it, https://hub.docker.com/r/alastairhm/docker-icecast/ it uses Alpine Linux so the image is only 6mb is size.
You run it linking to your Docker image which is running MPD.
docker run --name my-ympd -d -p 8080:8080 --link your_mpd_container:mpdhost alastair/docker-ympd
Then browse to http://localhost:8080/
For more info checkout this Docker compose file which runs both my icecast and ympd images.
Doodle's Geek Monkey by Alastair Montgomery
I found ympd a MPD web GUI written in C, so created a Docker image to run it, https://hub.docker.com/r/alastairhm/docker-icecast/ it uses Alpine Linux so the image is only 6mb is size.
You run it linking to your Docker image which is running MPD.
docker run --name my-ympd -d -p 8080:8080 --link your_mpd_container:mpdhost alastair/docker-ympd
Then browse to http://localhost:8080/
For more info checkout this Docker compose file which runs both my icecast and ympd images.
Doodle's Geek Monkey by Alastair Montgomery
Articles
Docker Doku Wiki
Note: 1 of this post’s 13 links are now broken — mostly dead 2008–2013 feed-syndication infrastructure (FeedBurner, Gawker, AOL’s old blog network, Pheedo, Yahoo Pipes). Left as originally published.
Created a small footprint (less than 50mb) Docker image running the Doku Wiki on Lighttpd under Alpine Linux.
Git Hub = https://github.com/alastairhm/alpine-doku
Docker Hub = https://hub.docker.com/r/alastairhm/alpine-doku/
read more
Git Hub = https://github.com/alastairhm/alpine-doku
Docker Hub = https://hub.docker.com/r/alastairhm/alpine-doku/
Running
docker run --name "my-wiki" -d -p 80:80 alastairhm/alpine-dokuBrowse to install page http://localhost/install.php



