openstack floating ip list -f value | while read fip; do echo -e "\e[32m===> Check IP $(echo $fip | awk '{print $2}')\e[0m"; openstack port show $(echo $fip | awk '{print $4}') -c security_group_ids -f json | jq '.security_group_ids[]' -r | while read sg; do openstack security group rule list $sg --ingress --protocol tcp --ethertype IPv4 -c "Port Range" -f value | while read ports; do nc -nzv -w2 $(echo $fip | awk '{print $2}') $(echo $ports | sed 's/:.*//g') ; done; done ; done
Add logging round tripper:
import (
"fmt"
"net/http"
"net/http/httputil"
)
// This type implements the http.RoundTripper interface.
Your repository should have Dockerfile in the root directory. Specification of Dockerfile you can find here: https://docs.docker.com/engine/reference/builder/
For Node.JS application it can be something like this:
FROM node:12.10.0
# Create directory where we will place the application
WORKDIR /usr/src/app
Install jexia-sdk
pip install jexia-sdk
Example:
from jexia_sdk.http import HTTPClient
JEXIA_PROJECT_ID = '<PROJECT_HERE>'
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 sys | |
import os | |
import requests | |
import json | |
DO_API = "https://api.digitalocean.com/v2/domains/%s/records" | |
def get_list_of_records(token, main_domain, sub_domains): | |
res = requests.get( |
Check the image exists:
docker pull registry.runme.io/runme-50b2af51-f401-43fe-aaec-808868b7e3a0:latest
latest: Pulling from runme-50b2af51-f401-43fe-aaec-808868b7e3a0
092586df9206: Already exists
ef599477fae0: Already exists
4530c6472b5d: Already exists
d34d61487075: Already exists
87fc2710b63f: Already exists
NewerOlder