Ajout d'une partie pour une installation via Docker
This commit is contained in:
parent
44e5569903
commit
6a96317781
|
@ -212,4 +212,80 @@ Vérifiez aussi que db_name soit bien mis dans $ORACLE_HOME/dbs/init.ora
|
||||||
|
|
||||||
<http://wiki.debian.org/DataBase/Oracle>
|
<http://wiki.debian.org/DataBase/Oracle>
|
||||||
<http://howto.landure.fr/gnu-linux/debian-4-0-etch/installer-un-serveur-oracle-sur-debian-5-0-lenny>
|
<http://howto.landure.fr/gnu-linux/debian-4-0-etch/installer-un-serveur-oracle-sur-debian-5-0-lenny>
|
||||||
<http://www.debian-administration.org/articles/656>
|
<http://www.debian-administration.org/articles/656>
|
||||||
|
|
||||||
|
# Howto Oracle Database 12R2 sous Docker
|
||||||
|
|
||||||
|
## Avant propos
|
||||||
|
|
||||||
|
Oracle DB n'étant officiellement supporté sous Debian, pour nous en faciliter l'installation et la maintenance nous allons l'installer dans un conteneur Docker.
|
||||||
|
|
||||||
|
## Installer Docker
|
||||||
|
|
||||||
|
Avant de commencer nous allons avoir besoin de l'ensemble des outils docker sur la machine.
|
||||||
|
|
||||||
|
Vous pouvez vous référer à notre [HowtoDocker](https://wiki.evolix.org/HowtoDocker)
|
||||||
|
|
||||||
|
## Pré-requis
|
||||||
|
|
||||||
|
Récupérer le dépot Oracle docker-images sur Github :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
wget https://github.com/oracle/docker-images/archive/master.zip
|
||||||
|
~~~
|
||||||
|
|
||||||
|
## Télécharger Oracle DB
|
||||||
|
|
||||||
|
Télécharger la version 12R2 via le site d'Oracle : [http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html]()
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Décomprésser le dépot Oracle :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
# unzip master.zip
|
||||||
|
~~~
|
||||||
|
|
||||||
|
Placer le fichier "linuxx64_12201_database.zip" correspondant à la version 12R2 que vous avez récupéré via le site d'Oracle dans le sous dossier docker-images-master/OracleDatabase/SingleInstance/dockerfiles/12.2.0.1/ du dépôt Oracle :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
# mv linuxx64_12201_database.zip docker-images-master/OracleDatabase/SingleInstance/dockerfiles/12.2.0.1/
|
||||||
|
~~~
|
||||||
|
|
||||||
|
Lancer l'installation :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
# ./buildDockerImage.sh
|
||||||
|
|
||||||
|
Usage: buildDockerImage.sh -v [version] [-e | -s | -x] [-i] [-o] [Docker build option]
|
||||||
|
Builds a Docker Image for Oracle Database.
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
-v: version to build
|
||||||
|
Choose one of: 11.2.0.2 12.1.0.2 12.2.0.1
|
||||||
|
-e: creates image based on 'Enterprise Edition'
|
||||||
|
-s: creates image based on 'Standard Edition 2'
|
||||||
|
-x: creates image based on 'Express Edition'
|
||||||
|
-i: ignores the MD5 checksums
|
||||||
|
-o: passes on Docker build option
|
||||||
|
|
||||||
|
* select one edition only: -e, -s, or -x
|
||||||
|
|
||||||
|
LICENSE UPL 1.0
|
||||||
|
|
||||||
|
Copyright (c) 2014-2017 Oracle and/or its affiliates. All rights reserved.
|
||||||
|
|
||||||
|
# ./buildDockerImage.sh -v 12.2.0.1 -e
|
||||||
|
~~~
|
||||||
|
|
||||||
|
Une fois l'installation terminée, on peut lancer notre image docker :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
# docker run --name oracle -p 1521:1521 -p 5500:5500 -v /path-to-your-persistent-oradata:/opt/oracle/oradata oracle/database:12.2.0.1-ee
|
||||||
|
~~~
|
||||||
|
|
||||||
|
--name oracle → On donne le nom de notre choix
|
||||||
|
-p 1521:1521 → On redirige le port 1521 local vers le port 1521 du conteneur
|
||||||
|
-p 5500:5500 → On redirige le port 5500 local vers le port 5500 du conteneur
|
||||||
|
-v /path/to/your/persistent/oradata:/opt/oracle/oradata → On souhaite avoir une base de données persistente, /opt/oracle/oradata du conteneur sera donc relié à notre dossier local /path/to/your/persistent/oradata
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue