This file contains hidden or 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
$ aws configure list-profiles | |
#Start configuring | |
aws configure | |
## creating cloudformation stack | |
aws cloudformation create-stack \ | |
--stack-name myteststack \ | |
--template-body file:///home/testuser/mytemplate.json \ | |
--parameters ParameterKey=Parm1,ParameterValue=test1 ParameterKey=Parm2,ParameterValue=test2 |
This file contains hidden or 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
## This is a multi stage build | |
# our base build image | |
FROM maven:3.5-jdk-8 as maven | |
# copy the project files | |
COPY ./pom.xml ./pom.xml | |
# build all dependencies | |
RUN mvn dependency:go-offline -B |
This file contains hidden or 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
version: '3.4' | |
services: | |
tradedashboard-ui: | |
image: manthalabs/tradedashboard | |
environment: | |
- RoboTraderAPIUrl=http://robotrader-api | |
ports: | |
- "8081:80" | |
depends_on: |
This file contains hidden or 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
//Your custom logic can go here | |
SimpleBeanPropertyFilter theFilter = new SimpleBeanPropertyFilter() { | |
@Override | |
protected boolean include(BeanPropertyWriter writer) { | |
Annotation annotation = writer.getAnnotation(AvailableForInternalClients.class); | |
//Basically if the annotation is defined and the Client is an External client then we dont include the property | |
return annotation == null || clientTypeIdentifier.isInternalClient(); | |
} | |
}; |