Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a directory for your custom aspire image, and one for the jar files to be downloaded
    1. Code Block
      languagebash
      themeRDark
      mkdir custom-aspire-image
      mkdir custom-aspire-image/jars
  2. Download the jar files you'll need
    1. Change directory to your image folder

      Code Block
      languagebash
      themeRDark
      cd custom-aspire-image
    2. For each premium component you'll need to execute: (where VERSION is 5.0, 5.0.1, 5.0.2, etc, and COMPONENT-ARTIFACT-ID is the maven artifact id of the component)

      Code Block
      languagebash
      themeRDark
      mvn dependency:copy -Dartifact=com.accenture.aspire:[COMPONENT-ARTIFACT-ID]:[VERSION] -Dmdep.useBaseVersion=true -DoutputDirectory=custom-aspire-image/jars
  3. Create a Dockerfile based on the official aspire docker image with all the basic jars.
    1. Should be called "Dockerfile"

      Code Block
      linenumberstrue
      FROM docker.repository.sca.accenture.com/docker/aspire-basic:5.0.2
      ADD jars/* /opt/aspire/bundles/aspire
  4. Build your custom aspire image
    1. docker build -t [image-name]:[image-tag] .

      For instance:

      Code Block
      languagebash
      themeRDark
      docker build -t custom-aspire:5.0.2 .
  5. Modify your docker-compose.yaml, or .env or kubernetes yaml files to use the new image.

...