Skip to content

Commit

Permalink
Update Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoellnitz committed Aug 26, 2023
1 parent 44e5d98 commit e189c10
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This repository contains the necessary parts to create a Docker image for a
slightly enhanced version of the CoreMedia Java Application Base Image used
by CoreMedia Content Cloud (CMCC) workspaces 20nm and up.

At the time of writing - August 2023 - the intermediate image is not needed for
updating packages in the original images from CoreMedia to deal with known
vulnerabilities.

The home of this repository is at [GitHub][github] with an automated mirror at
[GitLab][gitlab].

Expand Down Expand Up @@ -38,7 +42,7 @@ With CMCC-10, change the application base image in any of the pom files
With CMCC-11, change the application base image in any of the pom files

```
<application.image-base>provocon/updated-application-base:2.4.4-temurin-11-jre</application.image-base>
<application.image-base>provocon/updated-application-base:1.2-cm-11.0-temurin-jre</application.image-base>
```

## Build
Expand All @@ -54,21 +58,21 @@ docker build -t <myname> .
So, for the current version this is

```
docker build --build-arg JAVA_APPLICATION_BASE_IMAGE_TAG=2.4.5-temurin-11-jre-focal \
docker build --build-arg JAVA_APPLICATION_BASE_IMAGE_TAG=1.2-cm-11.0-temurin-jre \
--build-arg JAVA_APPLICATION_BASE_IMAGE_REPO=coremedia/java-application-base \
-t provocon/updated-application-base:2.4.5-temurin-11-jre-focal .
-t provocon/updated-application-base:1.2-cm-11.0-temurin-jre .
```

```
docker push provocon/updated-application-base:2.4.5-temurin-11-jre-focal
docker push provocon/updated-application-base:1.2-cm-11.0-temurin-jre
```

### Scripted Build

Alternatively, you could use the [Gradle Build Tool][gradle] and issue

```
./gradlew -Pci_version=2.4.5-temurin-11-jre-focal dockerPush
./gradlew -Pci_version=1.2-cm-11.0-temurin-jre dockerPush
```

which does all the steps above for you.
Expand All @@ -79,7 +83,7 @@ which does all the steps above for you.
Test the generated resulting container with

```
docker run -it --entrypoint=/bin/bash provocon/updated-application-base:2.4.5-temurin-11-jre-focal
docker run -it --entrypoint=/bin/bash provocon/updated-application-base:1.2-cm-11.0-temurin-jre
```

[sencha]: https://www.sencha.com/products/extjs/cmd-download/
Expand Down

0 comments on commit e189c10

Please sign in to comment.