Skip to content

Sandeep-source/Jib_dev_env_gradle_template

Repository files navigation

Jib Java Gradle Template

Spin up an java development environment Codespace with gradle and Jib to build faster containerized java applications.

Table of contents

Codespace from this template

  • Click on Use Template
  • Make changes according to your requirements
  • Run the default setup and push image to image registry with
    gradle jib \
      -Djib.to.image=myregistry/myimage:latest \
      -Djib.to.auth.username=$USERNAME \
      -Djib.to.auth.password=$PASSWORD
    
  • Push your changes to your repo

Codespace from blank template

  • Navigate to your github home page and select Codespaces from the menu

    image

  • Under Explore quick start templates select Use this template for blank template. This will open a codespace with almost all development tools installed.

    image

  • To costomize your env press CTRL+SHIFT+P and type Configure Dev container and select very first result

    image

  • Now the options will appear to modify your existing confire or create from scratch. Select Start from scratch

    image

  • Now on new prompt select All definitions then type java, select first item in appeared list and then version of jdk

    image

    image

  • In the next prompt check the gradle options and CLick Ok two times.

    image

  • Now you have a enviroment ready with the gradle and java installed with jib-gradle-plugin to build containerized image

About

Spin up an java development environment in Github Codespaces configured to use gradle and Jib

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages