Git Product home page Git Product logo

eg-oss-parent's Introduction

eg-oss-parent

Status ⚠️

This project is no longer in active development and will be archived in Jan 2022.

Start using

You can obtain this POM from Maven Central:

Maven Central Build Status GitHub license

Overview

The Expedia Group OSS Parent POM provides a Maven parent POM that is intended to be used by Expedia Group projects that require certain base functionality and need to publish artifacts to Maven Central.

Plugins

This plugin builds an optimized Docker image for a Java application and uploads it to Docker Hub.

To setup the plugin in a child project add the following plugin references. The git-commit-id-plugin provides the last commit time to be used for the creationTime and filesModificationTime properties in the jib plugin configuration.

    <plugin>
        <groupId>com.google.cloud.tools</groupId>
        <artifactId>jib-maven-plugin</artifactId>
    </plugin>
    <plugin>
        <groupId>pl.project13.maven</groupId>
        <artifactId>git-commit-id-plugin</artifactId>
    </plugin>

There are some default configuration properties that can be changed:

Property Default Description
docker.from.image openjdk Docker image to build your application from
docker.from.tag 8u181-jdk-slim-stretch Tag for the Docker image from
docker.container.port 8080 Port that the container exposes at runtime

Build Docker Image

You can also use mvn package in order to build your image directly to a Docker daemon. For more information please refer to the plugin documentation.

If you want to disable the plugin add the argument -Djib.skip=true when you use mvn on the command line.

If you experience timeouts, you can set the property jib.httpTimeout to a value larger than the default of 20s on the command line (e.g. -Djib.httpTimeout=60000 for 60s). At the time of writing, this property is not available as a build configuration parameter, so it has to be added manually. For more information please refer to System Properties.

Legal

This project is available under the Apache 2.0 License.

Copyright 2019-2021 Expedia, Inc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.