||
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 in order to adhere to the workflow conventions. 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 and default.
  -s 	[OPTIONAL] Platform to be used to run the Dockerfile. If not specified this is defaulted to "default". Available platforms are default, kubernetes and mesos. 

Example: ./build.sh -v 1.10.0 -l "worker|manager" -o myorganization -i 1.2.0 -s mesos

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 is used to terminate running containers that are specific to a product and clean all containers that are in the exit phase.

Usage
./stop.sh

push.sh

This command is used to push the Docker images to a specified registry.

Usage
Usage: ./push.sh -v [product-version] -r [registry-url]
Options:
  -v	[REQUIRED] Product version of WSO2AM
  -r	[REQUIRED] Docker registry url.
  -i	[OPTIONAL] Docker image version.
  -l	[OPTIONAL] '|' separated WSO2AM profiles to run. 'default' is selected if no value is specified.
  -o	[OPTIONAL] Preferred organization name. If not specified, will be kept empty.

Ex: ./push.sh -v 1.9.1 -l 'manager' -k 'wso2carbon' -r 'myregistry.local:5000'
  • No labels