This file contains hidden or 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
Vagrant.configure('2') do |config| | |
config.vm.box = 'debian/jessie64' | |
config.vm.hostname = 'snafu.foo.bar' | |
config.vm.network :private_network, type: 'dhcp' | |
config.vm.synced_folder '.', '/vagrant', disabled: true | |
config.landrush.enabled = true | |
config.landrush.tld = 'foo.bar' |
This file contains hidden or 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
if Vagrant.has_plugin?('landrush') | |
cdk.landrush.enabled = true | |
tld = 'openshift.cdk' | |
cdk.landrush.tld = tld | |
cdk.landrush.host tld, "#{PUBLIC_ADDRESS}" | |
cdk.vm.provision :shell, inline: <<-SHELL | |
sed -i.orig -e "s/OPENSHIFT_SUBDOMAIN=.*/OPENSHIFT_SUBDOMAIN='#{tld}'/g" /etc/sysconfig/openshift_option | |
SHELL | |
end |
This file contains hidden or 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 java.io.*; | |
import java.util.Map; | |
class StreamGobbler extends Thread { | |
InputStream is; | |
String type; | |
StreamGobbler(InputStream is, String type) { | |
this.is = is; | |
this.type = type; |
This file contains hidden or 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
==> cdk: Mounting SSHFS shared folders... | |
==> cdk: Mounting folder via SSHFS: C:/DeveloperPlatform/cygwin/home/hardy => C:DeveloperPlatformcygwinhomehardy | |
==> cdk: Checking Mount.. | |
Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts. | |
==> cdk: Checking Mount.. | |
==> cdk: Checking Mount.. | |
==> cdk: Checking Mount.. | |
==> cdk: Checking Mount.. | |
==> cdk: Checking Mount.. | |
==> cdk: Checking Mount.. |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# The private network IP of the VM. You will use this IP to connect to OpenShift. | |
PUBLIC_ADDRESS="10.1.2.2" | |
# Number of virtualized CPUs | |
VM_CPU = ENV['VM_CPU'] || 2 | |
# Amount of available RAM |
This file contains hidden or 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
Bringing machine 'cdk' up with 'virtualbox' provider... | |
==> cdk: Importing base box 'cdk_v2'... | |
[KProgress: 10% | |
[KProgress: 20% | |
[KProgress: 30% | |
[KProgress: 40% | |
[KProgress: 50% | |
[KProgress: 90% | |
[K==> cdk: Matching MAC address for NAT networking... | |
==> cdk: Setting the name of the VM: openshift.cdk-2-ose-3-2 |
This file contains hidden or 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
cdk.vm.provision :shell, inline: <<-SHELL | |
/opt/adb/openshift/add_insecure_registry -ip #{REGISTRY_HOST} | |
systemctl enable openshift | |
systemctl start openshift | |
# https://github.com/projectatomic/adb-utils/issues/32 | |
export KUBECONFIG=/var/lib/openshift/openshift.local.config/master/admin.kubeconfig | |
oadm policy add-cluster-role-to-user cluster-admin admin |
This file contains hidden or 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 java.util.List; | |
import java.util.Map; | |
import acme.Film; | |
import org.hibernate.HibernateException; | |
import org.hibernate.Query; | |
import org.hibernate.Session; | |
import org.hibernate.SessionFactory; | |
import org.hibernate.cfg.Configuration; |
This file contains hidden or 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
404 - GroupItemNotFoundException | |
Path /org/hibernate/hibernate-search-engine/5.0.0.Beta2/ not found in group repository "Public JBoss Repository Group" [id=public-jboss]. | |
org.sonatype.nexus.proxy.repository.GroupItemNotFoundException: Path /org/hibernate/hibernate-search-engine/5.0.0.Beta2/ not found in group repository "Public JBoss Repository Group" [id=public-jboss]. | |
at org.sonatype.nexus.proxy.repository.AbstractGroupRepository.doRetrieveItem(AbstractGroupRepository.java:301) | |
at org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveItem(M2GroupRepository.java:154) | |
at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:765) | |
at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:608) | |
at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:155) |
This file contains hidden or 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
After some time in the making, we are happy to announce the first Hibernate Validator release of | |
the 5.2 series - 5.2.0.Alpha1. | |
This release focuses mainly on Java 8 support, but we will get to this in a bit. | |
First a big thank you to [Khalid Alqinyah=>https://github.com/khalidq] who, as part of a | |
[Google Summer of Code=>https://www.google-melange.com/gsoc/homepage/google/gsoc2014] project, | |
implemented many of these new features. | |
So what's in it for you? |