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
Same as the earlier gist, but with JPA wrapping hibernate. Note that the choice of wether to create the tables or not is in the spring-config file, NOT the persistence.xml file like a lot of other examples out there. |
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 jenkins:2.7.1 | |
MAINTAINER Robert Watkins | |
USER root | |
RUN mkdir /var/log/jenkins | |
RUN mkdir /var/cache/jenkins | |
RUN chown -R jenkins:jenkins /var/log/jenkins | |
RUN chown -R jenkins:jenkins /var/cache/jenkins | |
USER jenkins |
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
data: | |
build: jenkins-data | |
master: | |
build: jenkins-master | |
volumes: | |
- .:/backup | |
volumes_from: | |
- data | |
ports: |
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
# Needs to match the linux version used in jenkins-master | |
FROM debian:jessie | |
MAINTAINER Robert Watkins | |
# user 1000 must match the user id for the jenkins user in jenkins-master | |
RUN useradd -d "/var/jenkins_home" -u 1000 -m -s /bin/bash jenkins | |
RUN mkdir -p /var/log/jenkins | |
RUN chown -R jenkins:jenkins /var/log/jenkins |
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 nginx:1.10 | |
MAINTAINER Robert Watkins | |
RUN rm /etc/nginx/conf.d/default.conf | |
RUN rm /etc/nginx/nginx.conf | |
COPY conf/jenkins.conf /etc/nginx/conf.d/jenkins.conf | |
COPY conf/nginx.conf /etc/nginx/nginx.conf |
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
Ext.define('Twasink.override.Clipboard', { | |
override: 'Ext.grid.plugin.Clipboard', | |
// The default putCellData doesn't pay attention to the selection, or the editor. This is a fix | |
putCellData: function(data, format) { | |
var view = this.getCmp().getView(); | |
// OVERRIDE Lines 141 to 157 in the ExtJS 6.2.0 source. This fixes a bug where the paste event starts where the | |
// navigation position is, which may well be at the bottom of the selection. |
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
// Based on http://pragmaticintegrator.wordpress.com/2013/08/16/writing-a-hadoop-mapreduce-task-in-java/ | |
package net.twasink.hadoop; | |
import java.io.File; | |
import java.net.URI; | |
import org.apache.commons.io.FileUtils; | |
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.fs.Path; | |
import org.apache.hadoop.io.LongWritable; |
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
#!groovy | |
node { | |
// Need to replace the '%2F' used by Jenkins to deal with / in the path (e.g. story/...) | |
// because tests that do getResource will escape the % again, and the test files can't be found. | |
// See https://issues.jenkins-ci.org/browse/JENKINS-34564 for more. | |
ws("workspace/${env.JOB_NAME}/${env.BRANCH_NAME}".replace('%2F', '_')) { | |
// Mark the code checkout 'stage'.... | |
stage 'Checkout' | |
checkout scm |
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
ant.importBuild 'build.xml' | |
def packages_dir = file('../packages') | |
clean { | |
doLast { delete 'bootstrap.js', 'bootstrap.css', 'bootstrap.json' } | |
} | |
refresh { | |
inputs.dir 'app' |
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 an override to the HasOne association, allowing a 'name' parameter to generate the getter, setter, associationKey, and associatedName | |
Ext.override(Ext.data.association.HasOne, { | |
constructor: function(config) { | |
if (config.name ) { | |
Ext.applyIf(config, { | |
getterName: 'get' + Ext.String.capitalize(config.name), | |
setterName: 'set' + Ext.String.capitalize(config.name), | |
associationKey: config.name, | |
associatedName: config.name | |
}) |