Skip to main content

2023 | OriginalPaper | Buchkapitel

6. Customize Container Environments

verfasst von : Sean Scott

Erschienen in: Oracle on Docker

Verlag: Apress

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Running containers is comparable to calling a sophisticated shell script. Containers and shell scripts both perform a scoped set of tasks. Scripts can be explicit, with hard-coded values, but adding some flexibility makes them more portable and valuable. That might mean deriving specific values from the environment or interpreting parameters passed to the script at runtime. Take an RMAN backup script as an example. Hard-coding the database name prevents its use on other databases. Pass the database name as a variable, and the same script works across an enterprise. Adding additional options for the backup destination, degree of parallelism, and incremental level makes the script much more flexible and valuable over various implementations.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Fußnoten
1
Chapter 11 describes this and other scripts, including example modifications.
 
2
docker inspect works against a wide range of Docker objects, including images, containers, volumes, and networks. The JSON output for each object type is different, but the formatting examples shown here can be adapted to suit your needs!
 
3
jq formats, or “pretty prints” JSON output in more human-readable form. On Ubuntu systems (the default Linux flavor in Windows WSL), install it with sudo apt-get install jq.
 
4
Aliases and functions are alternatives to remembering verbose syntax. In Appendix B, I’ve included examples of what I use in my environment to simplify complex commands.
 
5
Docker only allows simple values—no arrays!
 
6
The value in the container is set to the host value at the time docker run is executed. It’s written to the container metadata, and changes to the value on the host won’t alter the value in the container once the container is created.
 
7
Options for setting the database edition, enabling archive logging, SGA, PGA, and automatic memory calculation are available for database 19.3 onward.
 
8
This parameter changes the Oracle Database Edition in the container by relinking the binaries in the Oracle Home. It reconfigures images with Enterprise Edition homes to use Standard Edition, and vice versa. The feature is used to start a container using preexisting datafiles created using a database edition that’s different from the image.
 
Metadaten
Titel
Customize Container Environments
verfasst von
Sean Scott
Copyright-Jahr
2023
Verlag
Apress
DOI
https://doi.org/10.1007/978-1-4842-9033-0_6