Skip to content

Instantly share code, notes, and snippets.

<profile>
<id>docker</id>
<activation>
<file>
<exists>${basedir}/.docker</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>sk.seges.acris</groupId>
<articleId>acris-tomcat-support</articleId>
<version>2.0.0</version>
<Listener className="sk.seges.acris.jeesupport.tomcat.ImqBrokerListener"/>
CATALINA_OPTS="$CATALINA_OPTS -Dimq.imqhome=$CATALINA_HOME/mq -Dimq.varhome=$CATALINA_HOME/mq/var -Dimq.name=imqEmbedded -Dimq.port=7676"
export IMQ_HOME="$CATALINA_HOME/mq"
<Resource auth="Container" factory="com.sun.messaging.naming.AdministeredObjectFactory" imqAddressList="mq://localhost/direct" imqReconnectAttempts="100" name="jms/acris/generalQCF" readOnly="true" type="com.sun.messaging.QueueConnectionFactory" version="3.0"/>
@lgazo
lgazo / gist:d6b11e889eb5f9cdc58d
Created February 18, 2015 13:08
pom - scalatest dependencies
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.11.5</version>
</dependency>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.11</artifactId>
<version>2.2.4</version>
@lgazo
lgazo / gist:a7f24ad20ad50a60092d
Created February 18, 2015 13:10
pom - scalatest running
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.1.7-SNAPSHOT</version>
<!-- <configuration> -->
<!-- <recompileMode>incremental</recompileMode> -->
<!-- </configuration> -->
<executions>
<!-- <execution> -->
<!-- <id>scala-compile-first</id> -->
@lgazo
lgazo / gist:460a739e640be720f626
Created June 24, 2015 06:51
consul template nginx shop
upstream shop {
least_conn;
{{range service "shop"}}server {{.Address}}:{{.Port}} max_fails=3 fail_timeout=60 weight=1;
{{else}}server 127.0.0.1:65535; # force a 502{{end}}
}
server {
listen 80;
server_name api.shop.com;
@lgazo
lgazo / gist:54ced7dfed553aad41d2
Created June 24, 2015 06:55
seges nginx consul template data image
FROM ubuntu:trusty
VOLUME /etc/consul-template/templates
VOLUME /etc/consul-template/conf
COPY conf/* /etc/consul-template/conf/
COPY templates/* /etc/consul-template/templates/
CMD tail -f /dev/null
@lgazo
lgazo / gist:3a4ca2b88b330f9fe443
Created June 24, 2015 06:59
consul template configuration
consul = "consul.service.consul:8500"
template {
source = "/etc/consul-template/templates/shop.conf"
destination = "/etc/nginx/conf.d/shop.conf"
command = "/etc/init.d/nginx reload"
}