This is how to deploy thw image on your local k8s running on Mac. In reference to the project Aegis
- Install
kindandkubectl
brew install kind kubectl - Create kind cluster if not already created
kind create cluster kubectl get nodes
This is how to deploy thw image on your local k8s running on Mac. In reference to the project Aegis
kind and kubectlbrew install kind kubectl
kind create cluster
kubectl get nodes
| #!/bin/bash | |
| OWNER="$1" | |
| REPO="$2" | |
| if [[ -z "$OWNER" || -z "$REPO" ]]; then | |
| echo "Usage: ./run.sh <GitHub-Owner> <GitHub-Repo>" | |
| exit 1 | |
| fi |
| package cache | |
| import ( | |
| "sync" | |
| "time" | |
| ) | |
| type PollCache[K comparable, V any] struct { | |
| data sync.Map | |
| pollFunc func() map[K]V |
| brew install qrencode | |
| qrencode -t utf8 'WIFI:T:WPA;S:network;P:password;;' |
| package com.spdeepak.redis; | |
| import com.spdeepak.redis.entity.LineItem; | |
| import com.spdeepak.redis.entity.Order; | |
| import com.spdeepak.redis.repository.LineItemRepository; | |
| import com.spdeepak.redis.repository.OrderRepository; | |
| import com.spdeepak.redis.service.OrderService; | |
| import lombok.extern.slf4j.Slf4j; | |
| import org.springframework.boot.ApplicationRunner; | |
| import org.springframework.boot.SpringApplication; |
| import com.fasterxml.jackson.core.JsonProcessingException; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import com.microsoft.azure.servicebus.Message; | |
| import com.microsoft.azure.servicebus.QueueClient; | |
| import com.microsoft.azure.servicebus.ReceiveMode; | |
| import com.microsoft.azure.servicebus.primitives.ConnectionStringBuilder; | |
| import com.microsoft.azure.servicebus.primitives.ServiceBusException; | |
| import lombok.extern.slf4j.Slf4j; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.beans.factory.annotation.Value; |
| #1. Start MongoDB container | |
| docker run -p 27017:27017 --name macmongo -e MONGO_INITDB_ROOT_PASSWORD=root -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_DATABASE=testdatabase -d mongo:latest | |
| #2. Open MongoDB shell | |
| docker exec -it macmongo mongo --authenticationDatabase admin -u root -p |