Skip to content

Instantly share code, notes, and snippets.

View g0t4's full-sized avatar
🏁

Wes Higbee g0t4

🏁
View GitHub Profile
@g0t4
g0t4 / ideas.md
Created December 5, 2023 00:36
`docker compose watch` ideas

actions

  • Globs for action.path
    • i.e. path: *.csproj, path: foo|bar|baz, path: *.txt|*.ini
  • Allow watch files that are .dockerignored => i.e. Dockerfile|compose.yaml => trigger rebuild action
    • currently .dockerignored files are ignored for watching even if explicitly set in action.path
    • .dockerignore is historically focused on building images, seems like compose watch needs to be able to override at a minimum?
  • recreate action type w.r.t. the entire watch process
    • i.e. edit compose.yaml/Dockerfile/*.env => trigger reload of entire docker compose watch
@g0t4
g0t4 / _README.md
Created November 30, 2016 03:46
Setting up a Docker Hub registry mirror on a Synology NAS

Instructions

  • Save the docker-compose.yml and config.yml in the same directory on one of your volumes on the NAS.
  • SSH in and use docker-compose up -d
  • Test the mirror with curl --head http://NAS-IP:55000
  • Start up docker daemons with the following option or put this in the daemon config file or copy into Docker for Mac/Windows settings. --registry-mirror=http://NAS-IP:55000
  • Pull an image and then check that it is cached in your mirror with curl http://NAS-IP:55000/v2/_catalog
    • or check that a large image isn't slow after the first pull :)

Notes

@g0t4
g0t4 / Notes.md
Last active July 11, 2022 14:53
Getting Started with Docker on Windows
@g0t4
g0t4 / notes.md
Last active March 4, 2022 01:02
Docker Cheat Sheet

Windows Containers notes

stage 'CI'
node {
git branch: 'jenkins2-course',
url: 'https://github.com/g0t4/solitaire-systemjs-course'
// pull dependencies from npm
// on windows use: bat 'npm install'
sh 'npm install'
@g0t4
g0t4 / tap.kt
Created October 15, 2014 23:39
A ruby like tap method for kotlin, except for any type
/**
* Provide a means to fluently tap into a chain of method calls so as not to need to declare unnecessary variables
* */
public fun <T : Any, R> T.tap(tap: (T) -> R): T {
tap(this)
return this
}
// here's an example where I'm in a fluent builder and I'd like to log the URI of the request without introducing a variable
val response = this.builds.queryParam("locator", "buildType:{buildTypeId},count:1,personal:false,canceled:false")
@g0t4
g0t4 / glossary.md
Last active June 7, 2021 16:49
Consul and related terms
  • Node - a physical or virtual machine that hosts services
    • Nodes also referred to as members.
    • Examples
      • Your computer
      • An AWS EC2 instance
      • A bare metal machine in your private data center
  • Service - executing software that provides utility via an interface
    • Typically long-lived process listening on a port(s)
    • Examples
  • A web server (nginx, apache, iis)