Skip to content

Instantly share code, notes, and snippets.

View bjaglin's full-sized avatar

Brice Jaglin bjaglin

  • Montpellier, France
View GitHub Profile
@bjaglin
bjaglin / remove-orphan-images.sh
Last active March 31, 2024 22:54
Remove orphan layers left by the "file" storage backend of the docker registry, heavily inspired by https://gist.github.com/shepmaster/53939af82a51e3aa0cd6
#!/bin/bash
set -eu
shopt -s nullglob
readonly base_dir=/var/lib/docker/registry
readonly output_dir=$(mktemp -d -t trace-images-XXXX)
readonly jq=/usr/bin/jq
readonly repository_dir=$base_dir/repositories
commit b10f4f289d0b93741dabb916dbf01168c264ae74
Merge: afb12ac1 596459af
Author: Brice Jaglin <[email protected]>
Date: Tue May 23 23:30:18 2023 +0200
Merge remote-tracking branch 'organize-imports/master' into organize-imports
diff --combined CONTRIBUTING.md
index 3b3f5d92,00000000..2561dc95
mode 100644,000000..100644
--- pgloader
+++ bootstrapped with Django migrations
@@ -1,20 +1,23 @@
Table "bo_merchant_grouporder"
Column | Type | Collation | Nullable | Default
----------------------+--------------------------+-----------+----------+----------------------------------------------------
- id | bigint | | not null | nextval('bo_merchant_grouporder_id_seq'::regclass)
- payment_id | bigint | | |
- garbage | bigint | | not null |
+ id | integer | | not null | nextval('bo_merchant_grouporder_id_seq'::regclass)