Intro
En à peine 2 ans, l'outil libre et open source Docker a connu une ascension fulgurante dans le monde du développement logiciel.
Massivement adopté par les professionnels , celui-ci a su concilier le cycle de vie des applications et leurs infrastructures.
Mais au fait, c'est quoi Docker ? C'est la réponse que j'essaierai de développer tant du point de vue technique que fonctionnel dans cette présentation.
Après un rapide survol des deux univers ( dev & ops ), j'expliquerai ce que Docker nous apporte de plus, je détaillerai son installation , sa facilité de prise en main en me basant sur des cas d'utilisations concrets ( voting-app, WordPress.. ) .
Nous verrons ensuite que Docker a juste inventé de nouveaux cas d'usages mais pas la technologie, je parlerai alors brièvement des cgroups et des namespaces, puis expliquerai le concept des volumes , l'orchestration de déploiement, le clustering, le networking, et pour finir, quelques notions sur la sécurité.
jeudi 7 décembre 2017
mercredi 19 avril 2017
The Checker Framework
The Checker Framework enhances Java’s type system to make it more powerful and useful. This lets software developers detect and prevent errors in their Java programs. The frameWork comes with a nice feature Nullness Checker that detect NullPointerException at compiletime
For Maven Project, just add the following depencies & plugin in the pom.xml
<dependencies>
<!-- annotations from the Checker Framework: nullness, interning, locking, ... -->
<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker-qual</artifactId>
<version>2.1.10</version>
</dependency>
<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker</artifactId>
<version>2.1.10</version>
</dependency>
<!-- The Type Annotations compiler. Uncomment if using Java 7 or annotations in comments. -->
<!-- <dependency>
<groupId>org.checkerframework</groupId>
<artifactId>compiler</artifactId>
<version>2.1.10</version>
</dependency> -->
<!-- The annotated JDK to use (change to jdk7 if using Java 7). -->
<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>jdk8</artifactId>
<version>2.1.10</version>
</dependency>
</dependencies>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<!-- Change source and target to 1.7 if using Java 7 -->
<source>1.8</source>
<target>1.8</target>
<fork>true</fork>
<annotationProcessors>
<!-- Add all the checkers you want to enable here -->
<annotationProcessor>
org.checkerframework.checker.nullness.NullnessChecker
</annotationProcessor>
</annotationProcessors>
<compilerArgs>
<!-- location of the annotated JDK, which comes from a Maven dependency -->
<arg>-Xbootclasspath/p:${annotatedJdk}</arg>
<!-- Uncomment the following line to use the type annotations compiler. -->
<arg>-J-Xbootclasspath/p:${typeAnnotationsJavac}</arg>
</compilerArgs>
</configuration>
</plugin>
For more details : https://checkerframework.org/manual/
That's all :-)
Inscription à :
Articles (Atom)