Ce gist contient une liste (non exhaustive) de bonnes pratiques à appliquer lors de l'utilisation de Docker, que ce soit du côté du fournisseur (le créateur du service) que de l'utilisateur (la personne qui déploie le service).
Ceci est un guide étape par étape pour créer un serveur utilisant Docker facilement sur votre Freebox Delta
Vous avez déjà accédé à Freebox OS et ce dernier est déjà configuré pour la connexion. Cliquez ici pour configurer votre Freebox si ce n'est pas déjà fait.
Vous avez un disque dur connecté sur votre Freebox (nécessaire pour installer une machine virtuelle). Ci ce n'est pas déjà fait, vous pouvez suivre un des guides ci-dessous:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ############################################## | |
* COMMON | |
* ############################################## | |
* @info All layers need this piece of code, except "Full circle". For shadow, please set "is_shadow" to true | |
*/ | |
// Stored complication values in variables for debugging purposes | |
var value_now = [cvalue]; | |
var value_min = [cmin] <= value_now ? [cmin] : value_now; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repository="name/package" | |
destination="/home/username" | |
package_name="mypackage" | |
curl -Lso ${destination}/${package_name} "$(curl -s https://api.github.com/repos/${repository}/releases/latest | grep browser_download_url | grep _amd64 | grep linux | grep -v .tar.gz | cut -d '"' -f 4)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
args=$(getopt -o a:,b --long alpha:,beta -n "" -- "$@") | |
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi | |
eval set -- "${args}" | |
while true; do | |
case "${1}" in | |
-a | --alpha ) ALPHA="${2}"; shift 2 ;; | |
-b | --beta ) BETA=gamma; shift 1 ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
COMMAND=${1} | |
if [[ ${COMMAND} == "" ]]; then | |
echo "[ERROR] No command to bench, terminating..." | |
exit 1 | |
fi | |
DATE_INIT=$(date +%s) ; \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "name": "open-mistral-7b", "parameters": { "amount": "7B", "times": "1" }, "context": null, "provider": "mistral", "rates": { "rps": 1, "tpm": "500K", "tpmth": "1B" } }, | |
{ "name": "open-mixtral-8x7b", "parameters": { "amount": "7B", "times": "8" }, "context": null, "provider": "mistral", "rates": { "rps": 1, "tpm": "500K", "tpmth": "1B" } }, | |
{ "name": "open-mixtral-8x22b", "parameters": { "amount": "22B", "times": "8" }, "context": null, "provider": "mistral", "rates": { "rps": 1, "tpm": "500K", "tpmth": "1B" } }, | |
{ "name": "mistral-small-2402", "parameters": { "amount": null, "times": null }, "context": null, "provider": "mistral", "rates": { "rps": 1, "tpm": "500K", "tpmth": "1B" } }, | |
{ "name": "mistral-small-2409", "parameters": { "amount": null, "times": null }, "context": null, "provider": "mistral", "rates": { "rps": 1, "tpm": "500K", "tpmth": "1B" } }, | |
{ "name": "mistral-medium", "parameters": { "amount": null, "times": null }, "context": null, "provider": "mistral", "rates": { "rps": 1 |