This documentation is for WSO2 Dockerfiles version 1.1.0. View documentation for the latest release.
Helper Scripts for Docker Images - WSO2 Dockerfiles 1.1.0 - WSO2 Documentation
||
Skip to end of metadata
Go to start of metadata

Bash scripts are included, which help in building Docker images, running the resulting Docker images and stopping the Docker containers. It is recommended to use these scripts rather than the Docker daemon commands, so that the workflow conventions are adhered. Each product specific Dockerfile directory includes these scripts, which collect any product specific information and then invoke a common script.

build.sh

This command triggers the build processes for the specified product profiles (e.g., default, worker, manager). It follows a standard naming convention to name the Docker images.

Usage
Usage: ./build.sh -v [product-version]
Options:
  -v	[REQUIRED] Product version of WSO2AM
  -l	[OPTIONAL] '|' separated WSO2AM profiles to build. "default" is selected if no value is specified.
  -i	[OPTIONAL] Docker image version.
  -e	[OPTIONAL] Product environment. If not specified this is defaulted to "dev".
  -o	[OPTIONAL] Preferred organization name. If not specified, will be kept empty.
  -q	[OPTIONAL] Quiet flag. If used, the docker build run output will be suppressed.
  -r	[OPTIONAL] Provisioning method. If not specified this is defaulted to "default". Available provisioning methods are puppet, default.
Example: ./build.sh -v 1.10.0 -l worker|manager -o myorganization -i 1.1.0

run.sh

This command starts containers for the specified product profiles with the specified image versions. 

Usage
Usage: ./run.sh -v [product-version]
Options:
  -v	[REQUIRED] Product version of WSO2AM
  -i	[OPTIONAL] Docker image version.
  -l	[OPTIONAL] '|' separated WSO2AM profiles to run. 'default' is selected if no value is specified.
  -o	[OPTIONAL] Organization name. 'wso2' is selected if no value is specified.
  -p	[OPTIONAL] [MULTIPLE] Port mappings for the exposed ports 10397 8280 8243 9763 9443 of the container 
  -k	[OPTIONAL] The keystore password if SecureVault was enabled in the product.
  -m	[OPTIONAL] Full path of the host location to share with containers.
Example: ./run.sh -v 1.9.1 -l 'manager' -k 'wso2carbon'

stop.sh

This command can be used to terminate running containers specific to a product and clean all containers that are in the exit phase.

Usage
./stop.sh
  • No labels