Develop > CSA Content SDK > Build your First Capsule

Build your First Capsule

Prepare Capsule Directory Structure

Best Practices

  1. Create a master directory and name it appropriately, so that it contains all your use cases (treat this as Use Case Depot).
  2. Create separate child directories for each of your use case.
  3. Browse to the use case directory and create a directory to keep all the Service Designs and Service Offerings.

    1. If you have dependent sequential Component Palettes, it is mandatory to place them in the same directory as Service Design/Offering.
    2. If you have multiple Service Designs/Offerings and each have different Sequential Component Palette dependency, then create individual directories for the combination of Service Design/Offering and dependent Component Palette archives.
  4. Create a directory for your Operation Orchestrations (OO) content.
  5. If you have multiple OO contents, create sub-directories under the OO directory to place all the OO contents separately.
  6. Create a directory named "tools", if you have auxiliary file system components, such as additional .jar/JSP/scripts files.
  7. Create a directory for Component tools files, if you have Topology designs and there are additional components.

Examples

--Usecase Depot
	-usecase1
		-oo-contents
			+content1
			+content2
		+csa-contents
		+tools
		+componenttools

Examples with contents

--Usecase Depot
	-HPE OpenStack
		-oo-contents
			-content1
				openstack-content.jar
			-content2
				openstack-util-content.jar
		-csa-contents
			SERVICE_DESIGN_Multi_tenant-support.zip
			SERVICE_DESIGN_Compute_with_Storage.zip
			SERVICE_DESIGN_Swift_container.zip
		-tools
			aux_file.jsp
			aux_jar_file.jar
			aux_script.py
		-componenttools
			capability_mapping.properties
			metainfo.txt
			OPENSTACK.properties