Nexus 3 as a Docker GROUP around a proxy and 2 hosted repos
We want to provide this setup:dockergroup repository, "covering" a dockerproxy repo (proxy to docker hub) and 2 hosted reposEach repo will have its own http port!1) create these blob stores...
View ArticleWildfly file upload and download with Primefaces
Sample application available here https://github.com/vernetto/pffilehttps://www.primefaces.org/docs/api/6.2/org/primefaces/model/UploadedFile.htmlhttps://stackoverflow.com/a/8880083/651288 read BalusC...
View Articleprimefaces cookbook on wildfly
The book is covering in depth many examples available on the official PF showcase. Don't expect advanced programming techniques, it's purely about implement not-so-common use cases in PFsample code is...
View ArticleDocker resource control
systemd-cglssystemd-cgtopls -ltr /sys/fs/cgroup/https://goldmann.pl/blog/2014/09/11/resource-management-in-docker/mkdir stresscd stress/cat <<EOT >> DockerfileFROM fedora:latestRUN yum -y...
View ArticleSpring testing
spring-test https://docs.spring.io/spring/docs/current/spring-framework-reference/html/integration-testing.htmlspring-boot-test...
View ArticleSpring core tutorial
Although a bit outdated, it goes over the main points https://www.tutorialspoint.com/spring/I have put the code of each step in https://github.com/vernetto/springdemo , instructions in the readme.md, a...
View ArticleXml Parsing, tools, strategies and alternatives
JAXBIf you have an xsd, you can generate the @javax.xml.bind.annotation.XmlRootElement annotated Java POJOs with xjc: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/xjc.htmlexample: cd...
View ArticleOpenshift Online getting started
Create yourself an Openshift Online account (account creation seems to me a bit buggish)https://docs.openshift.com/online/getting_started/basic_walkthrough.htmlI follow the instructions and create my...
View Articlemore Docker in Action
docker run -d --volume /var/lib/cassandra/data --name cass-shared alpine echo Data Containerdocker run -d --volumes-from cass-shared --name cass1 cassandra:2.2docker run -it --rm --link cass1:cass...
View ArticleEclipse generate JPA entities from DB
Unfortunately there doesn't seem to exist a tool to generate JPA Entities directly from SQL. Weird!So you have to start by populating a real schema.Create a Java projectConfigure "Targeted Runtimes"...
View ArticleThe Kubernetes Book by Nigel Poulton
I have learned much more from "Kubernetes Webinar Series" freely available on youtube. Unless you are a really total beginner, you have already heard/read most of the stuff in this...
View ArticleKatacoda docker interactive tutorial
Katacoda is the best thing I have seen this year. IT teachers and IT books are made obsolete by this tool.https://www.katacoda.com/courses/docker/deploying-first-containerdocker search redisdocker run...
View ArticleWebLogic on Kubernetes
https://blogs.oracle.com/weblogicserver/weblogic-server-certification-on-kuberneteshttps://github.com/oracle/docker-images/tree/master/OracleWebLogic/dockerfiles/12.2.1.3sample Dockerfile...
View ArticleANTLR
http://www.antlr.org/Source code: https://pragprog.com/titles/tpantlr2/source_code(I am using GIT bash)on Windows:export CLASSPATH=/d/pierre/downloads/antlr/antlr-4.0-complete.jar:.alias antlr="java...
View ArticleH2 autogenerating unique IDs from Sequence
if you have annotated the ID withimport javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.SequenceGenerator;import...
View ArticleHibernate validator dependencies for unit testing
http://hibernate.org/validator/ home page of validationat javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:271)at...
View Articledebug hanging shell scripts
https://stackoverflow.com/questions/4640794/a-running-bash-script-is-hung-somewhere-can-i-find-out-what-line-it-is-onset -xlsof -p $pidstrace -p $pid -s 1024/proc/$pid/environpstree -pl 21156 + cat...
View ArticleJenkins sucks
Jenkins sucks. Ok it could suck more, but let me tell you what I find really frustrating from a begginner's perspectivea) documentation is pathetic. The Jenkins User Handbook until a few months ago was...
View ArticleDocker run a command in an image
How many times you are baffled because you rundocker run myregistry/maven:3-alpine and it simply exists without doing anything.Then you do docker run myregistry/maven:3-alpine /bin/bashand the same...
View Article