Skip to main content

Featured

Build docker image from multiple build contexts

Build docker image from multiple build contexts Building a docker image requires specifying a source of truth to include in the image from a local directory or a remote git repository. In the previous version, the docker BuildKit allows users to specify the build context from a single source of truth only. However, the engineers may need to have the context from different locations based on the type of files. For instance, icons, images or other resources that are not included in the same package, including the resource from other docker images. Fortunately, the Docker Buildx toolkit supports multiple build context flag for Docker 1.4. Let's learn how to use this new feature. The following list is a shortcut for jumping into a specific topic handy. What version of Docker is this tutorial targeting? How to specify the version of Dockerfile frontend? Ho

[Ant]How to build a property file (Build.property)

How to name the property file:
   It is easy and simple to setup a property file for Ant build. Normally, the name of property file is build.properties, but it could be named as build.properties.dev or build.properties.test based on the same deployment environments to be run in different settings. The benefits of using suffix as .xxx are:
  1. The build file can be reused for different execution environment with different property setting, such as developing, testing or release.
  2. Only the name of property file needs to be changed in the build.xml file while the target or source changed. It could reduce the typing error and time cost.


How to setup the properties:
    Each property is illustrated by a name and a value connected by a equals sign (=) in a line.

    For example:

  src=c:\source file
  target.dir=d:\testing

    In this case, dot symbol (.) could be a part of the name. It could be used to classify the properties into a group.

How to comment in the property file:
    Hash character (#) is used as the symbol to make a line as a comment.

    For example:

  ######################
  # This is Header
  #####################

  #Set soruce folder
  src.dir=c:\source file

  #Set destination folder
  target.dir=d:\testing

[Reference]
  1. Ant - Property Files
  2. How do I use a build.properties file

Comments

Popular Posts