"A high-throughput distributed messaging system." site
Notes taken from source
- Created at LinkedIn (open sourced in 2011)
| { | |
| "AWSEBDockerrunVersion": "1", | |
| "Authentication": { | |
| "Bucket": "yourbucketname", | |
| "Key": ".dockercfg.json" | |
| }, | |
| "Image": { | |
| "Name": "umitunal/spring-boot-docker", | |
| "Update": "true" |
| [INFO] Building image umitunal/spring-boot-docker | |
| Step 1 : FROM java:8 | |
| ---> f79b6db49f8a | |
| Step 2 : VOLUME /tmp | |
| ---> Using cache | |
| ---> 737a647eeac1 | |
| Step 3 : EXPOSE 8080 | |
| ---> Using cache | |
| ---> 56de84fb11d7 | |
| Step 4 : ADD spring-boot-docker-*.jar spring-boot-docker.jar |
| <server> | |
| <id>docker-hub</id> | |
| <username>umitunal</username> | |
| <password>yourPassword</password> | |
| <configuration> | |
| <email>[email protected]</email> | |
| </configuration> | |
| </server> |
| FROM java:8 | |
| VOLUME /tmp | |
| EXPOSE 8080 | |
| ADD spring-boot-docker-*.jar spring-boot-docker.jar | |
| RUN bash -c 'touch /spring-boot-docker.jar' |
| <plugin> | |
| <groupId>com.spotify</groupId> | |
| <artifactId>docker-maven-plugin</artifactId> | |
| <version>0.4.1</version> | |
| <configuration> | |
| <imageName>umitunal/spring-boot-docker</imageName> | |
| <dockerDirectory>src/main/docker</dockerDirectory> | |
| <resources> | |
| <resource> | |
| <targetPath>/</targetPath> |
| ====================================== | |
| Usage: | |
| Fetcher<Source, MyEntity> f = new Fetcher<Source, MyEntity>(source) { | |
| @Override | |
| public List<MyEntity> fetch(Pageable pageRequest) | |
| { | |
| return source.findAll(pageRequest); | |
| } | |
| }; |
| // --- Compiling --- | |
| $ wget http://download.redis.io/releases/redis-2.8.3.tar.gz | |
| $ tar xzvf redis-2.8.3.tar.gz | |
| $ cd redis-2.8.3 | |
| $ make | |
| $ make install | |
| // --- or using yum --- | |
| $ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| $ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm |
| Install Kafka in CentOS |
| import java.util.Map; | |
| import javax.sql.DataSource; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.beans.factory.annotation.Qualifier; | |
| import org.springframework.boot.autoconfigure.orm.jpa.EntityManagerFactoryBuilder; | |
| import org.springframework.boot.autoconfigure.orm.jpa.JpaProperties; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.ComponentScan.Filter; |