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
| job "example" { | |
| type = "batch" | |
| task t { | |
| driver = "exec" | |
| config { | |
| command = "/bin/sh" | |
| args = ["-c", "echo '>> /proc'; grep ^Cap /proc/self/status; echo '>> getpcaps'; getpcaps 0; echo '>> prlimit'; prlimit"] | |
| } | |
| } | |
| } |
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
| variable "vault_version" { | |
| type = string | |
| default = "1.14.0" | |
| } | |
| job "vault" { | |
| datacenters = ["*"] | |
| type = "service" | |
| group "vault" { | |
| count = 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
| enable_debug = true | |
| log_level = "debug" | |
| name = "mixed1" | |
| data_dir = "/tmp/nomad-mixed1" | |
| client { | |
| enabled = true | |
| servers = ["127.0.0.1:4647"] | |
| } |
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
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| "time" | |
| ) | |
| func timeTasks(count int) time.Duration { | |
| nopTask := func(done func()) { |
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
| job "example" { | |
| group "cache" { | |
| network { | |
| port "db" { | |
| to = 6379 | |
| } | |
| } | |
| task "redis" { |
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
| $ biscuit keypair --only-private-key > private-key-file | |
| $ biscuit keypair --from-private-key-file private-key-file --only-public-key > public-key-file | |
| $ echo 'right("file1");' | biscuit generate --private-key-file private-key-file - > biscuit-file.bc | |
| $ biscuit inspect --raw-input biscuit-file.bc --public-key-file public-key-file | |
| thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Format(DeserializationError("deserialization error: DecodeError { description: \"unexpected end group tag\", stack: [] }"))', /home/schmichael/.cargo/registry/src/github.com-1ecc6299db9ec823/biscuit-cli-0.2.0/src/main.rs:193:42 | |
| note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace |
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
| client { | |
| cpu_total_compute = 1000 | |
| memory_total_mb = 1000 | |
| } |
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
| job "sysinfo" { | |
| datacenters = ["dc1"] | |
| type = "batch" | |
| group "sysinfo" { | |
| task "sysinfo" { | |
| driver = "docker" | |
| config { | |
| // Windows 2019 |
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
| job "example" { | |
| datacenters = ["dc1"] | |
| group "cache" { | |
| network { | |
| port "db" { | |
| to = 6379 | |
| } | |
| } |
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
| client { | |
| host_network "public" { | |
| cidr = "192.168.86.227/32" | |
| } | |
| } |