$.status.containerStatuses[?(@.name == 'xxx-container')].restartCount
$.items[*].status.addresses[?(@.type=="InternalIP")].address
server { | |
# listen 80 default_server; | |
# listen [::]:80 default_server; | |
listen 443 ssl default_server; | |
listen [::]:443 ssl default_server; | |
include snippets/self-signed.conf; | |
root /var/www/html; | |
--- | |
apiVersion: install.istio.io/v1alpha1 | |
kind: IstioOperator | |
spec: | |
meshConfig: | |
enableTracing: true | |
defaultConfig: | |
tracing: | |
sampling: 100 | |
values: |
-- Create a group | |
CREATE ROLE readaccess; | |
-- Grant access to existing tables | |
GRANT CONNECT ON DATABASE _database_name_ TO readaccess; | |
GRANT USAGE ON SCHEMA public TO readaccess; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public TO readaccess; | |
-- Grant access to future tables |
minikube_initialized=$(minikube profile list -o json | jq 'select(.valid != null) | .valid | map(select(.Name == "minikube")) | length') |
TAG=$(echo ${CIRCLE_SHA1} | cut -c1-7) | |
if [ ! -z "${CIRCLE_TAG}" ]; then | |
TAG="${CIRCLE_TAG}" | |
fi |
FROM nginx:1-alpine | |
COPY ./src/index.html /usr/share/nginx/html | |
COPY ./etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf |
import ( | |
"go.mongodb.org/mongo-driver/mongo" | |
mongooptions "go.mongodb.org/mongo-driver/mongo/options" | |
) | |
// createSlugIndex creates the slug index in Mongo collection | |
func createSlugIndex(ctx context.Context, c mongo.Collection) (err error) { | |
ptrTrue := true | |
ptrSlug := "slug" | |
_, err = c.Indexes().CreateMany(ctx, []mongo.IndexModel{ |
cd() | |
{ | |
debug() | |
{ | |
if [ $DOTENVSH_DEBUG = true ]; then | |
echo $1 | |
fi | |
} | |
loadenv() |