You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile
in an empty directory with the following content:
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile
in an empty directory with the following content:
import argparse | |
from datetime import datetime | |
import json | |
import os | |
import requests | |
import logging | |
def UploadScan(host, apiKey, engegementID, PathFile, minimum_severity, scan_type, active, verified): | |
url = "http://" + host + "/api/v2/import-scan/" | |
payload = { |
import argparse | |
from datetime import datetime | |
import json | |
import os | |
import requests | |
import logging | |
def GetProducts(DefectDojoURL, apiKey): | |
url = DefectDojoURL + "/api/v2/products/" |
import argparse | |
from datetime import datetime | |
import json | |
import os | |
import requests | |
def upload_results(host, user, api_key, scanner, result_file, engagement_id, verify=False): # set verify to False if ssl cert is self-signed | |
API_URL = "http://"+host+"/api/v1" | |
IMPORT_SCAN_URL = API_URL+ "/importscan/" | |
AUTH_TOKEN = "ApiKey " + user + ":" + api_key |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: entry-point | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
type: NodePort | |
selector: |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: app | |
spec: | |
minReadySeconds: 10 | |
replicas: 1 | |
selector: | |
matchLabels: | |
name: app |
kubectl delete "$(kubectl api-resources --namespaced=true --verbs=delete -o name | tr "\n" "," | sed -e 's/,$//')" --all |
Links to the 12factor-kube-sample:
Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew