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
serviceMonitorSelector: | |
matchLabels: | |
release: prometheus-operator |
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
apiVersion: monitoring.coreos.com/v1 | |
kind: ServiceMonitor | |
metadata: | |
name: my-service | |
labels: | |
release: prometheus-operator | |
spec: | |
selector: | |
matchLabels: | |
app: my-service |
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
docker run --rm -p 7199:7199 -e "JMX_HOST=`ipconfig getifaddr en0`" alexcheng/cassandra |
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 org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.web.bind.annotation.ControllerAdvice; | |
import org.springframework.web.bind.annotation.ExceptionHandler; | |
import org.springframework.web.bind.annotation.RestController; | |
import org.springframework.web.context.request.WebRequest; | |
import java.util.Date; |
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
files: | |
"/opt/elasticbeanstalk/tasks/taillogs.d/my-app.conf" : | |
mode: "000644" | |
owner: webapp | |
group: webapp | |
content: | | |
/var/log/myapp.log | |
"/opt/elasticbeanstalk/tasks/bundlelogs.d/my-app.conf" : | |
mode: "000644" | |
owner: webapp |
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
image: | |
name: <aws_account_id>.dkr.ecr.<region>.amazonaws.com/maven | |
aws: | |
access-key: $AWS_ACCESS_KEY | |
secret-key: $AWS_SECRET_KEY | |
pipelines: | |
default: | |
- step: | |
caches: |
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 maven:3.5.2-jdk-8-alpine | |
COPY settings.xml ${MAVEN_CONFIG}/ |
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
buildscript { | |
repositories { | |
mavenCentral() | |
maven { | |
url "http://repository.jboss.org/nexus/content/groups/public/" | |
} | |
} | |
dependencies { | |
classpath 'org.hibernate.build.gradle:gradle-maven-publish-auth:2.0.1' | |
} |
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
- name: unzip tar.gz | |
win_command: "7z x {{ tar_gz_path }} -o{{ tar_path }} -y" | |
- name: unzip tar | |
win_command: "7z x {{ tar_path }} -o{{ extracted_path } -y" |
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
- name: install 7zip | |
win_chocolatey: | |
name: 7zip | |
state: present |
NewerOlder