After running the script, log out and log back in, then run the following
newgrp docker
docker run hello-world
Adapted from these instructions: https://docs.docker.com/engine/install/ubuntu/
#!/bin/sh | |
# Navigate to the root of the Git repository | |
repo_root=$(git rev-parse --show-toplevel) | |
cd "$repo_root" | |
# Check if there are too many changes to commit | |
DIFF_LINES=$(git diff --cached | wc -l) | |
if [ "$DIFF_LINES" -gt 500 ]; then | |
echo "Too many changes to send to mods. Please commit fewer changes at a time." |
packer { | |
required_plugins { | |
docker = { | |
version = " >= 1.0.8" | |
source = "github.com/hashicorp/docker" | |
} | |
} | |
} | |
source "docker" "ubuntu-base" { |
sudo visudo | |
# add an entry to the file allowing all users sudo access without a password | |
ALL ALL = (ALL) NOPASSWD: ALL |
After running the script, log out and log back in, then run the following
newgrp docker
docker run hello-world
Adapted from these instructions: https://docs.docker.com/engine/install/ubuntu/
// Simplest possible custom card | |
// Does nothing. Doesn't look like anything | |
class MyCustomCard extends HTMLElement { | |
setConfig(config) { | |
// The config object contains the configuration specified by the user in ui-lovelace.yaml | |
// for your card. | |
// It will minimally contain: | |
// config.type = "custom:my-custom-card" |
# There's some other setup needed for this to work, like installing | |
# swagger-cli, portman, and newman. | |
import subprocess | |
import requests | |
import yaml | |
SWAGGER_FILE = '~/github.com/5e-srd-api/src/swagger/swagger.yml' | |
NEWM_FILE = '~/github.com/5e-srd-api/src/swagger/swagger-newm.yml' | |
API_BASE = 'http://localhost:3000' |