How do you manage per-environment data in Docker-based microservices?

Docker compose supports extending compose files, which is very useful for overriding specific parts of your configuration. This is very useful at least for development environments and may be useful in small deployments too. The idea is having a base shared compose file you can override for different teams or environments. You can combine that … Read more

Can a Python Fabric task invoke other tasks and respect their hosts lists?

Since Fabric 1.3, the execute helper is now available to do just this. The documentation is available here: Intelligently executing tasks with execute. Here is the example they use: from fabric.api import run, roles, execute env.roledefs = { ‘db’: [‘db1’, ‘db2’], ‘web’: [‘web1’, ‘web2’, ‘web3’], } @roles(‘db’) def migrate(): # Database stuff here. pass @roles(‘web’) … Read more

How to run docker-compose commands with ansible?

Updated answer 02/2024: docker_compose_v2 is out since community.docker v3.6.0. You can copy docker-compose.yml and run Compose such as: – name: copy Docker Compose files copy: src: files/{{ item }} dest: /somewhere/yourproject/{{ item }} loop: – docker-compose.yml – docker-compose.prod.yml # use files parameter to use multiple docker-compose.yml files # mind the _v2 suffix – name: deploy … Read more

error when creating “deployment.yaml”: Deployment in version “v1” cannot be handled as a Deployment

Since this is the top result of the search, I thought I should add another case when this can occur. In my case, it was coming because there was no double quote on numeric env. var. Log did provide a subtle hint, but it was not very helpful. Log …, bigger context …|c-server-service”},{“name”:”SERVER_PORT”,”value”:80}] Env variable … Read more

HTTP Error 500.30 – ASP.NET Core app failed to start

There may be a few reasons behind the error which you can only identify by debugging. You can try to debug this error using the steps below: Navigate to the root directory of the application using CMD Run the application using the command dotnet run (yourApplicationName).dll If there are any errors, they should appear in … Read more

Merge msi and exe

Yes, you can create a self-extracting installer containing both MSI and the setup.exe bootstrapper file. I think it is possible to do that with WinZip, or you can use IExpress coming with Windows. Here is a guide how to create a self-extracting executable with IExpress. You can either use the IExpress wizard or manually write … Read more

Best practices for new Rails deployments on Linux?

I switched from Mongrel Cluster to Passenger two weeks ago (Debian Linux Server). I didn’t look back for a second. Passenger is probably the easiest way to get your new server up and running. Performance and reliability are reasonable too. Personally, I like to spend my time working on exciting new Rails projects rather than … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)