This file contains 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
diff --git a/main.go b/main.go | |
index 4bc5c9a..54b5b3f 100644 | |
--- a/main.go | |
+++ b/main.go | |
@@ -103,8 +103,8 @@ func main() { | |
usage() | |
}, | |
} | |
- flag.StringVar(&dataDir, "datadir", dataDir, "data directory") | |
- flag.StringVar(&viewDir, "viewdir", viewDir, "view directory") |
This file contains 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
diff --git a/cli.go b/cli.go | |
new file mode 100644 | |
index 0000000..b7ec8c9 | |
--- /dev/null | |
+++ b/cli.go | |
@@ -0,0 +1,231 @@ | |
+package main | |
+ | |
+import ( | |
+ "fmt" |
This file contains 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" | |
"io" | |
"os" | |
"github.com/sirupsen/logrus" | |
) |
This file contains 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
FROM node:17.0-alpine as build | |
ADD app /app | |
WORKDIR /app | |
RUN npm ci --fetch-timeout=600000 | |
RUN npm run build | |
FROM nginx:stable |
This file contains 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
$ curl -s -o /dev/null -w "%{http_code}" -X POST \ | |
-d '{"Name":"till-test"}' \ | |
-H 'Content-Type: application/json' http://localhost:2375/volumes/create | |
201 | |
$ curl -s -o /dev/null -w "%{http_code}" -X POST \ | |
-d '{"Name":"till-test"}' \ | |
-H 'Content-Type: application/json' http://localhost:2375/volumes/create | |
201 |
This file contains 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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
This file contains 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
core@node-001 ~ $ curl --unix-socket /var/run/docker.sock http:/plugins | |
{"message":"page not found"} | |
core@node-001 ~ $ curl -V | |
curl 7.66.0 (x86_64-cros-linux-gnu) libcurl/7.66.0 OpenSSL/1.1.1g zlib/1.2.11 | |
Release-Date: 2019-09-11 | |
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp | |
Features: AsynchDNS GSS-API HTTPS-proxy IPv6 Kerberos Largefile libz NTLM SPNEGO SSL TLS-SRP UnixSockets |
This file contains 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
{ | |
"ignition": { | |
"version": "2.0.0", | |
"config": {} | |
}, | |
"storage": { | |
}, | |
"systemd": {}, | |
"networkd": {}, | |
"passwd": { |
This file contains 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
import os | |
import testinfra.utils.ansible_runner | |
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( | |
os.environ['MOLECULE_INVENTORY_FILE'] | |
).get_hosts('all') | |
def get_docker_services(host): |
This file contains 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
FROM quay.io/ansible/molecule:2.22 | |
RUN apk add --update build-base | |
RUN pip install --upgrade pip | |
RUN pip install dnspython requests==2.20.1 docker docker-compose hcloud molecule[hetznercloud] |
NewerOlder