View Dockerfile
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 centos:centos6.6 | |
MAINTAINER Niko Schmuck <niko.auto@nava.de> | |
# Install MarkLogic | |
RUN yum -y update &&\ | |
yum groupremove 'Additional Development' 'E-mail server' 'Graphical Administration Tools' 'Perl Support' &&\ | |
curl -O https://developer.marklogic.com/download/binaries/8.0/MarkLogic-8.0-3.x86_64.rpm &&\ | |
yum -y install MarkLogic-8.0-3.x86_64.rpm &&\ | |
rm MarkLogic-8.0-3.x86_64.rpm &&\ | |
yum clean all |
View MarkLogicAuthenticationProvider.java
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 de.nava.mlsample.security; | |
import de.nava.mlsample.service.MarkLogicConnections; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.security.authentication.AuthenticationProvider; | |
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; | |
import org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider; | |
import org.springframework.security.core.AuthenticationException; |
View pom.xml
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<!-- ... your maven ceremony goes here ... ---> | |
<dependencies> | |
<!-- MarkLogic Java Client API --> | |
<dependency> | |
<groupId>com.marklogic</groupId> |
View Dockerfile
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
# Requirements: | |
# - download MarkLogic EA 8 (MarkLogic-8.0-20141124.x86_64.rpm) into | |
# same directory like this Dockerfile | |
# | |
# Build your own image: | |
# docker build -t centos-marklogic8 . | |
# | |
# Start a new container with this image: | |
# docker run -p 8000:8000 -p 8001:8001 centos-marklogic8 |
View build.gradle
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
apply plugin: 'maven' | |
group = 'de.sample' | |
version = '0.1-SNAPSHOT' | |
description = 'My cool tool ...' | |
task customZip(type: Zip) { | |
from ('.') { |
View GradleTaskTimer.gradle
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
class TaskTimerListener implements TaskExecutionListener { | |
private Clock clock | |
@Override | |
void beforeExecute(Task task) { | |
clock = new org.gradle.util.Clock() | |
} | |
@Override |