Skip to content

Instantly share code, notes, and snippets.

View ndeloof's full-sized avatar
💭
Preparing a new set of bugs

Nicolas De loof ndeloof

💭
Preparing a new set of bugs
View GitHub Profile
@ndeloof
ndeloof / docker.sh
Created February 1, 2023 09:05
completion for docker CLI
# bash completion V2 for docker -*- shell-script -*-
__docker_debug()
{
if [[ -n ${BASH_COMP_DEBUG_FILE:-} ]]; then
echo "$*" >> "${BASH_COMP_DEBUG_FILE}"
fi
}
# Macs have bash3 for which the bash-completion package doesn't include
services:
app:
image: app-without-curl-inside
# app is running a webserver on 8080
app-health:
image: curl
command: sleep infinity
network_mode: "service:app"
healthcheck:
models:
llama:
model: ai/example-model
context-size: 1024
runtime-flags: "--no-prefill-assistant"
services:
# Option 1 : by host alias
app: