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
boolean validip = true; | |
boolean validts = true; | |
if (hash.equals(hashIndecoded) && validts && validip) { | |
return true; | |
} | |
return false; |
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
assertThat(authenticationResult) | |
.hasState(AuthenticationResult.State.SUCCESSFUL) | |
.hasNoErrors() | |
.hasAdditionalInformation(Collections.emptyMap()); |
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
{ | |
"AWSEBDockerrunVersion": 1, | |
"Image": { | |
"Name": "some-docker-registry.elasticbeanstalk.com/property-service:latest" | |
}, | |
"Authentication": { | |
"Bucket": "docker-artifacts", | |
"Key": ".dockercfg" | |
}, | |
"Ports": [ |
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/bash | |
set -e | |
# Main configuration for docker run. In addition to this, you need to pass "VERSION" as an environment variable. | |
if [ -z $VERSION ]; then | |
echo "*** You need to pass VERSION as an environment variable ***" | |
exit 1 | |
fi |
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 | |
set -e | |
set -x | |
# This file was originally written by Andreas Mohrhard and used with permission. | |
copy_context() { | |
echo "Copying context..." | |
for f in $CONTEXT; do | |
if [ ! -f $f ]; then |
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
{"https://index.docker.io/v1/":{"auth":"your_auth","email":"your_mail"}} |
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
{ | |
"Namespace": "aws:elasticbeanstalk:application:environment", | |
"OptionName": "echoservice.greetingTemplate", | |
"Value": "Howdy, 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Infrastructure for the Spring Boot + Docker + CFN sample", | |
"Parameters": { | |
"Version": { | |
"Type": "String", | |
"Default": "1.0.0" | |
} | |
}, | |
"Resources": { |
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 lt.wonderb0.example; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; |
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
<%@page language="java" pageEncoding="UTF-8"%> | |
<%@page isErrorPage="true" %> | |
<?xml version="1.0" ?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | |
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Page not found</title> | |
</head> | |
<body> |