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
echo "hello world" |
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
frontend http | |
bind *:80 | |
timeout client 60s | |
mode http | |
acl app1 path_end -i /app1 | |
acl app2 path_end -i /app2 | |
use_backend demo-app1 if app1 | |
use_backend demo-app2 if app2 | |
default_backend demo-apps |
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
frontend http | |
bind *:80 | |
timeout client 60s | |
mode http | |
default_backend demo-apps | |
backend demo-app1 | |
timeout connect 10s | |
timeout server 100s | |
mode http |
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
frontend http | |
bind *:80 | |
timeout client 60s | |
mode http | |
default_backend demo-apps | |
backend demo-apps | |
timeout connect 10s | |
timeout server 100s | |
mode http |
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 openjdk:8-jdk-alpine | |
ARG JAR_FILE=target/*.jar | |
COPY ${JAR_FILE} app.jar | |
ENTRYPOINT ["java","-jar","/app.jar"] |
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 com.example.demohaproxy; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
@SpringBootApplication | |
@RestController |
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
#!/bin/sh | |
#################################################################################### | |
# | |
# Download Compile and Install BitchX on Ubuntu | |
# | |
#################################################################################### | |
# download bitchx source | |
# @todo make smarter, i.e. regexp, though now uses _always_ available commands (sic) |
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
public enum EventTypes { | |
ORDER_CREATED, | |
ORDER_SERVING, | |
ORDER_CANCELLED, | |
ORDER_SERVED, | |
ORDER_UPDATED, | |
ORDER_DELETED | |
} |
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 com.example.restaurant.avro.schema.OrderAvro; | |
import com.example.restaurant.kafka.AvroProducer; | |
import com.example.restaurant.mapper.OrderMapper; | |
import com.example.restaurant.models.EventTypes; | |
import com.example.restaurant.models.OrderModel; | |
import com.example.restaurant.models.OrderStatus; | |
import com.example.restaurant.repository.OrderRepo; | |
import com.example.restaurant.request.OrderRequest; | |
import com.example.restaurant.service.OrderService; |
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 com.example.restaurant.avro.schema.OrderAvro; | |
import com.example.restaurant.mapper.OrderMapper; | |
import com.example.restaurant.models.EventTypes; | |
import com.example.restaurant.models.OrderModel; | |
import com.example.restaurant.serviceimpl.OrderServiceImpl; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.kafka.annotation.KafkaListener; | |
import org.springframework.stereotype.Service; |