Skip to content

How To Release

David Matějček edited this page Sep 2, 2024 · 4 revisions

New Version on GitHub Containers

  1. Release Eclipse GlassFish and change the glassfish.version property in this repository.
  2. Check the latest available eclipse-temurin version applicable and update the docker.baseImage property.
  3. Run the build for changed images, example:
    mvn clean verify
    
  4. Update also version in .github/workflows/docker-publish.yml file
  5. Commit all changes push, create a PR and if the CI succeeded, merge to the main branch.
  6. Run the Docker Publish to GitHub action.

New Version in Docker Hub Container Image Library

  1. Fork/Update the docker-library/official-images repository and replace the library/glassfish file with the file from the target directory
    • Don't forget to update the GitCommit line with the commit id
    • Don't forget to add the latest tag to the latest version (as the first one) and remove it from the previous version.
    • Replace linux/amd64,linux/arm64 with amd64, arm64v8
    • Run ./test/tests/glassfish/run.sh glassfish:latest for a quick test
  2. Visit the docker-library/docs repository and replace the contents of the glassfish directory with the contents of the target/classes/docs directory

Deprecation

You don't need to change anything here. Visit the docker-images-docs repository, update the README.md file and create a PR.

Removal

  1. Visit the docker-library/official-images and remove the block in library/glassfish you want to be removed.
  2. Visit the docker-library/docker-images-docs repository, update the README.md file and create a PR.
  3. Remove the directory here, then commit and push.

New Version in Your Own DockerHub Repository

Sometimes you need a customized version. OmniFish decided to push its images to its own repository until Docker Hub decides to merge our PR. This repository will not be updated after the donation to Eclipse; you can create own forks too, but you cannot publicly use the Eclipse GlassFish name anywhere.

  1. Fork Eclipse GlassFish, change its name and whatever you need, test and build it.
  2. Update what you like - especially check the Dockerfile's base image version, JDK version.
  3. Build the image, perhaps also with other parameters:
    mvn clean verify -Dglassfish.version=7.0.15 -Ddocker.glassfish.repository=myrepo/glassfish4myproject -Ddocker.noCache=true -Ddocker.glassfish.tag=7.0.15.CUST4MYPROJECT
    
  4. Deploy the image:
    docker login # will ask for your username and password
    docker push myrepo/glassfish4myproject:7.0.15.CUST4MYPROJECT
    docker logout
    
  5. Repeat the steps 2 and 3 for the latest tag
  6. Update the description of the Docker image in the repository with the contents of the file target/classes/docs/content.md