Skip to main content

Posts

Showing posts with the label config

12 Factor Config for .Net on Mono in a Docker

Recently I've been thinking about how to run a .Net application using Mono inside a Docker, along with this we'd like to use Twelve Factor config . Whilst it is possible to use some library to access environment variables instead of using appSettings it becomes difficult for database and message broker URLs which other libraries may expect to find within the App.config or Web.config file. The solution I came up with follows: Build the application without  an App.config  moving the existing configuration file renaming it App.config.template .  Substitute any environment variables you want with ${} .  E.g: <amqp> <connections> < connection name="rabbit" server="${RABBITMQ_URL}" password="${RABBITMQ_PASSWORD}" /> </connections> </amqp> Include within the Docker image a script named sub.sh similar to this and add it to /conf : #!/bin/sh while read line do eval echo ...

Asus AT37N7A-I Nvidia ION Linux Configuration

I've been using this excellent motherboard for about 2 years, it has now been disassembled as I had less of a need for a silent PC in the living room after retiring my use of MythTV.  I had Ubuntu installed on this PC and during its lifetime was subjected to many performance tweaks. Rather than delete this work, I've decided to put the files online for other people to use. Sound I wanted digital sound over the HDMI cable so it can be played by either my TV or AV amp; I've played back DTS HD with this configuration, my TV had issues with some sample rates which is why the rate is configured explicitly. asoundrc pcm.!default front pcm.analog-hw { type hw card 0 device 0 } pcm.analog-hw-formatted { type plug slave { pcm analog-hw rate 48000 } } pcm.digital-hw { type hw card 0 device 3 } pcm.digital-hw-formatted { type plug slave { pcm digital-hw rate 48000 } } pcm.hdmi_softvol { type softvol slave.pcm digital-hw-formatt...