Skip to content

Instantly share code, notes, and snippets.

View shinsenter's full-sized avatar
🤖
Thinks like a robot.

Shin shinsenter

🤖
Thinks like a robot.
View GitHub Profile
@shinsenter
shinsenter / Reduce docker image size.md
Last active March 14, 2024 02:22
Make your Docker images smaller by reducing the number of layers
@shinsenter
shinsenter / Experimental Docker structure.md
Last active November 5, 2023 14:25
Docker structure for deploying to multiple environments

Beginning

There are many approaches to implementing a reuse of a common preset for Docker services for multiple environments, such as production and local environments.

This makes it possible to ensure the highest consistency for different environments with the same code-base. Implementing reuse of docker compose options also makes it easier to manage them.

I found on github a project called serversideup/spin. They took an approach using a feature called Docker overrides, to change some properties of common services for different environments.

After reading through their documentation, I realized that there are a few real-life cases where this project can not implement (or is difficult to archive).

@140bytes
140bytes / LICENSE.txt
Created May 9, 2011 16:13
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE