-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
176 additions
and
115 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
|
||
----------- | ||
|
||
## Compilation déconnecté de l'OS via Docker | ||
|
||
### Images Docker maven avec préchargement | ||
|
||
#### avec Java 7 (open-jdk7 + maven) | ||
|
||
```shell | ||
git clone https://github.com/Asqatasun/Asqatasun.git | ||
cd Asqatasun | ||
docker pull dzc34/asqa.mvn:jdk7 | ||
docker run -it --rm dzc34/asqa.mvn:jdk7 /bin/bash | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ dzc34/asqa.mvn:jdk7 mvn clean | ||
``` | ||
|
||
|
||
##### builder l'image docker | ||
```shell | ||
git clone https://github.com/dzc34/asqatasun_docker.maven.git | ||
cd asqatasun_docker.maven/Asqatasun/jdk-7 | ||
docker build -t asqa.mvn:jdk7 . | ||
docker build -t asqa.mvn:jdk7 --build-arg GIT_BRANCH=develop . | ||
``` | ||
|
||
##### Contrôler l'image | ||
```shell | ||
docker run -it --rm asqa.mvn:jdk7 /bin/bash | ||
docker run -it --rm asqa.mvn:jdk7 javac -version | ||
docker run -it --rm asqa.mvn:jdk7 java -version | ||
docker run -it --rm asqa.mvn:jdk7 mvn -version | ||
docker run -it --rm asqa.mvn:jdk7 dpkg -l "openjdk*" | ||
``` | ||
|
||
##### Compiler Asqatasun | ||
```shell | ||
git clone https://github.com/Asqatasun/Asqatasun.git | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ asqa.mvn:jdk7 mvn clean install | ||
``` | ||
|
||
##### Nettoyer les dossiers de compilation | ||
```shell | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ asqa.mvn:jdk7 mvn clean | ||
``` | ||
|
||
#### avec Java 8 (open-jdk8 + maven) | ||
|
||
##### builder l'image docker | ||
```shell | ||
git clone https://github.com/dzc34/asqatasun_docker.maven.git | ||
cd asqatasun_docker.maven/Asqatasun/jdk-8 | ||
docker build -t asqa.mvn:jdk8 . | ||
docker build -t asqa.mvn:jdk8 --build-arg GIT_BRANCH=develop . | ||
``` | ||
|
||
##### Contrôler l'image | ||
```shell | ||
docker run -it --rm asqa.mvn:jdk8 /bin/bash | ||
docker run -it --rm asqa.mvn:jdk8 javac -version | ||
docker run -it --rm asqa.mvn:jdk8 java -version | ||
docker run -it --rm asqa.mvn:jdk8 mvn -version | ||
docker run -it --rm asqa.mvn:jdk8 dpkg -l "openjdk*" | ||
``` | ||
|
||
##### Compiler Asqatasun | ||
```shell | ||
git clone https://github.com/Asqatasun/Asqatasun.git | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ asqa.mvn:jdk8 mvn clean install | ||
``` | ||
|
||
##### Nettoyer les dossiers de compilation | ||
```shell | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ asqa.mvn:jdk8 mvn clean | ||
``` | ||
|
||
------ | ||
|
||
### Images Docker officielles de maven | ||
|
||
#### avec Java 7 (open-jdk7 + maven) | ||
```shell | ||
docker pull maven:3-jdk-7 | ||
``` | ||
##### Tester l'image en ouvrant un shell | ||
```shell | ||
docker run -it --rm maven:3-jdk-8 /bin/bash | ||
``` | ||
##### Afficher la version du compilateur java | ||
```shell | ||
docker run -it --rm maven:3-jdk-8 javac -version | ||
``` | ||
|
||
##### Compiler | ||
```shell | ||
git clone https://github.com/Asqatasun/Asqatasun.git | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ maven:3-jdk-7 mvn clean install | ||
``` | ||
|
||
##### Nettoyer les dossiers de compilation | ||
```shell | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ maven:3-jdk-7 mvn clean | ||
``` | ||
|
||
#### avec Java 8 (open-jdk8 + maven) | ||
```shell | ||
docker pull maven:3-jdk-8 | ||
``` | ||
|
||
##### Compiler | ||
```shell | ||
git clone https://github.com/Asqatasun/Asqatasun.git | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ maven:3-jdk-8 mvn clean install | ||
``` | ||
|
||
##### Nettoyer les dossiers de compilation | ||
```shell | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ maven:3-jdk-8 mvn clean | ||
``` | ||
|
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
Empty file.
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
Empty file.
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
Empty file.
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,127 +1,60 @@ | ||
[![License : AGPL v3](https://img.shields.io/badge/license-AGPL3-blue.svg)](https://github.com/Asqatasun/Asqatasun/blob/master/LICENSE) | ||
[![License : AGPL v3](https://img.shields.io/badge/license-AGPL3-blue.svg)](https://github.com/dzc34/asqa.mvn/blob/master/LICENSE) [![Release](https://img.shields.io/github/release/dzc34/asqa.mvn.svg)](https://github.com/dzc34/asqa.mvn/releases/latest) | ||
|
||
# Docker Maven | ||
# Docker Maven for Asqatasun | ||
|
||
@@@TODO README in english | ||
|
||
## Compilation déconnecté de l'OS via Docker | ||
Compilation indépendante de l'OS | ||
via des images Docker de Maven préchargées | ||
avec les plugins Maven nécessaire à la compilation. | ||
|
||
### Images Docker maven avec préchargement | ||
## Supported tags | ||
|
||
#### avec Java 7 (open-jdk7 + maven) | ||
Supported tags and respective `Dockerfile` links : | ||
|
||
##### builder l'image docker | ||
```shell | ||
git clone https://github.com/dzc34/asqatasun_docker.maven.git | ||
cd asqatasun_docker.maven/Asqatasun/jdk-7 | ||
docker build -t asqa_mvn-jdk7 . | ||
docker build -t asqa_mvn-jdk7 --build-arg GIT_BRANCH=develop . | ||
``` | ||
* jdk7.alpine ([Asqatasun/jdk-8/alpine/Dockerfile](https://github.com/dzc34/asqa.mvn/Asqatasun/jdk-8/alpine/Dockerfile)) | ||
* jdk8.alpine ([Asqatasun/jdk-8/alpine/Dockerfile](https://github.com/dzc34/asqa.mvn/Asqatasun/jdk-8/alpine/Dockerfile)) | ||
* jdk7, latest ([Asqatasun/jdk-7/Dockerfile](https://github.com/dzc34/asqa.mvn/Asqatasun/jdk-7/Dockerfile)) | ||
* jdk8 ([Asqatasun/jdk-8/Dockerfile](https://github.com/dzc34/asqa.mvn/Asqatasun/jdk-8/Dockerfile)) | ||
|
||
##### Contrôler l'image | ||
```shell | ||
docker run -it --rm asqa_mvn-jdk7 /bin/bash | ||
docker run -it --rm asqa_mvn-jdk7 javac -version | ||
docker run -it --rm asqa_mvn-jdk7 java -version | ||
docker run -it --rm asqa_mvn-jdk7 mvn -version | ||
docker run -it --rm asqa_mvn-jdk7 dpkg -l "openjdk*" | ||
``` | ||
## How to use this image | ||
|
||
##### Compiler Asqatasun | ||
### Usage | ||
```shell | ||
git clone https://github.com/Asqatasun/Asqatasun.git | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ asqa_mvn-jdk7 mvn clean install | ||
docker pull dzc34/asqa.mvn:jdk7 | ||
``` | ||
|
||
##### Nettoyer les dossiers de compilation | ||
```shell | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ asqa_mvn-jdk7 mvn clean | ||
``` | ||
|
||
#### avec Java 8 (open-jdk8 + maven) | ||
|
||
##### builder l'image docker | ||
```shell | ||
git clone https://github.com/dzc34/asqatasun_docker.maven.git | ||
cd asqatasun_docker.maven/Asqatasun/jdk-8 | ||
docker build -t asqa_mvn-jdk8 . | ||
docker build -t asqa_mvn-jdk8 --build-arg GIT_BRANCH=develop . | ||
``` | ||
|
||
##### Contrôler l'image | ||
```shell | ||
docker run -it --rm asqa_mvn-jdk8 /bin/bash | ||
docker run -it --rm asqa_mvn-jdk8 javac -version | ||
docker run -it --rm asqa_mvn-jdk8 java -version | ||
docker run -it --rm asqa_mvn-jdk8 mvn -version | ||
docker run -it --rm asqa_mvn-jdk8 dpkg -l "openjdk*" | ||
``` | ||
|
||
##### Compiler Asqatasun | ||
#### Compiler Asqatasun | ||
```shell | ||
git clone https://github.com/Asqatasun/Asqatasun.git | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ asqa_mvn-jdk8 mvn clean install | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ dzc34/asqa.mvn:jdk7 mvn clean install | ||
``` | ||
|
||
##### Nettoyer les dossiers de compilation | ||
#### Nettoyer les dossiers de compilation | ||
```shell | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ asqa_mvn-jdk8 mvn clean | ||
``` | ||
|
||
------ | ||
|
||
### Images Docker officielles de maven | ||
|
||
#### avec Java 7 (open-jdk7 + maven) | ||
```shell | ||
docker pull maven:3-jdk-7 | ||
``` | ||
##### Tester l'image en ouvrant un shell | ||
```shell | ||
docker run -it --rm maven:3-jdk-8 /bin/bash | ||
``` | ||
##### Afficher la version du compilateur java | ||
```shell | ||
docker run -it --rm maven:3-jdk-8 javac -version | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ dzc34/asqa.mvn:jdk7 mvn clean | ||
``` | ||
|
||
##### Compiler | ||
```shell | ||
git clone https://github.com/Asqatasun/Asqatasun.git | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ maven:3-jdk-7 mvn clean install | ||
``` | ||
|
||
##### Nettoyer les dossiers de compilation | ||
##### Contrôler et manipuler l'image | ||
```shell | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ maven:3-jdk-7 mvn clean | ||
docker run -it --rm dzc34/asqa.mvn:jdk7 /bin/bash | ||
docker run -it --rm dzc34/asqa.mvn:jdk7 javac -version | ||
docker run -it --rm dzc34/asqa.mvn:jdk7 java -version | ||
docker run -it --rm dzc34/asqa.mvn:jdk7 mvn -version | ||
``` | ||
|
||
#### avec Java 8 (open-jdk8 + maven) | ||
```shell | ||
docker pull maven:3-jdk-8 | ||
``` | ||
### Documentation | ||
|
||
##### Compiler | ||
```shell | ||
git clone https://github.com/Asqatasun/Asqatasun.git | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ maven:3-jdk-8 mvn clean install | ||
``` | ||
|
||
##### Nettoyer les dossiers de compilation | ||
```shell | ||
cd Asqatasun | ||
docker run -it --rm -v "$PWD":/usr/src/ -w /usr/src/ maven:3-jdk-8 mvn clean | ||
``` | ||
----------- | ||
|
||
## Contact and discussions | ||
|
||
* [Asqatasun forum](http://forum.asqatasun.org/) | ||
* [Twitter @Asqatasun](https://twitter.com/Asqatasun) | ||
* email to `asqatasun AT asqatasun dot org` (only English, French and klingon is spoken :) ) | ||
|
||
|