Skip to content

Instantly share code, notes, and snippets.

View FortiShield's full-sized avatar

fortishield FortiShield

View GitHub Profile
# ================= Docker (Debian-pure) =================
if ! $SKIP_DOCKER; then
header "Installing Docker (Debian-pure)"
if is_installed docker && ! $UPGRADE; then
success "Docker already installed (Debian package), skipping."
else
run "sudo apt install -y docker.io"
success "Docker installed from Debian repositories."
fi
#!/usr/bin/env bash
set -euo pipefail
# ================= Colors =================
BLUE=$(tput setaf 4)
GREEN=$(tput setaf 2)
RED=$(tput setaf 1)
YELLOW=$(tput setaf 3)
RESET=$(tput sgr0)
@FortiShield
FortiShield / FromAsCasing.md
Last active October 13, 2024 16:26
FromAsCasing

FromAsCasing

Output

'as' and 'FROM' keywords' casing do not match

Description

While Dockerfile keywords can be either uppercase or lowercase, mixing case styles is not recommended for readability. This rule reports violations where mixed case style occurs for a FROM instruction with an AS keyword declaring a stage name.

For more details, refer to the official documentation:
Dockerfile FROM-AS Casing

@FortiShield
FortiShield / plopfile.mjs
Created September 30, 2024 21:59
scafled project template fornat - ( all in one repo )
export default function (plop) {
const transformName = (str) => {
return str.toLowerCase().replace(/ /g, '-')
}
// create your generators here
plop.setGenerator('example', {
description: 'new example in repo',
prompts: [
{