diff options
author | 2017-02-14 14:53:03 +0000 | |
---|---|---|
committer | 2017-02-14 14:53:05 +0000 | |
commit | 563c1c21a69fea27e3e6c7b342f56ffb36aaea31 (patch) | |
tree | 051c5d0ec822652c09a46031ff20b61fec6ab82c /man | |
parent | cc9731f24400bf177809c4260db98c6516c8041b (diff) |
Init dcae.utils.buildtools
Change-Id: I3e51d97f30a4f619eed3468963ee7c47792a1050
Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'man')
-rw-r--r-- | man/repackage.1 | 123 | ||||
-rw-r--r-- | man/repackage.man | 119 | ||||
-rw-r--r-- | man/yamltojson.1 | 22 | ||||
-rw-r--r-- | man/yamltojson.man | 13 |
4 files changed, 277 insertions, 0 deletions
diff --git a/man/repackage.1 b/man/repackage.1 new file mode 100644 index 0000000..1017626 --- /dev/null +++ b/man/repackage.1 @@ -0,0 +1,123 @@ +repackage(1) OpenECOMP repackage(1) + + + +NNAAMMEE + repackage - package an set of files into debian, or docker packages + +SSYYNNOOPPSSIISS + repackage [-h] [-n] [-c] [-N] [-K] [-v] -b PACKAGETYPE [-u] [-d DIREC‐ + TORY] [-e ENVIRONFILE] [-o OUTPUTDIRECTORY] + +DDEESSCCRRIIPPTTIIOONN + Build the specified packages. 'package-type' is one or more of docker, + debian, (comma-separated), or 'all' to build all of them. + +OOPPTTIIOONNSS + -h, --help show a help message and exit + + -n, --skipexecution indicate the packages and exit + + -c, --usecache if a debian/tar/tgz artifact already exists use it + + -N, --skipbuild skip actually building the packages + + -K, --keeptempfiles keep temp files at exit + + -v, --verbose turn on verbosity + + -b PACKAGETYPE, --packagetype PACKAGETYPE + The package-type may be specified multiple times or + may use a ','-separated or space-separated list. + 'all' is an alias for all of them. Potential val‐ + ues are debian, docker, tar or tgz + + -u, --upload Depending on package type -- docker, debian, tar or + tgz -- uploads the artifact to a remote repository. + For Docker, uses $DOCKERREGISTRY as the remote + repository to push the image. For Debian, uses + $REPACKAGEDEBIANUPLOAD as the command, with {0} as + the local path to the debian image, {1} as the + image name with build number, and optionally {2} as + groupId (may be used as part of the directory + path), {3} as the image name without the build num‐ + ber, and {4} as the image name with no build number + and no .deb suffix. For additional uploads, this + will also look for $REPACKAGEDEBIANUPLOAD2, + $REPACKAGEDEBIANUPLOAD3, etc., and repeat the + upload. For tar, uses $REPACKAGETARUPLOAD as the + command. Everything said about $REPACKAGEDEBIANU‐ + PLOAD applies to $REPACKAGETARUPLOAD. For tgz, uses + $REPACKAGETGZUPLOAD as the command. Everything said + about $REPACKAGEDEBIANUPLOAD applies to $REPACK‐ + AGETGZUPLOAD. In addition, if --multipleuploadver‐ + sions is used, the above will be executed using the + list of upload version numbers specified there. + This is typically used to create multiple versions + (using --multipleuploadversions) on multiple remote + repositories (using $REPACKAGE*UPLOAD). + + -d DIRECTORY, --directory DIRECTORY + where to find the stage directory and repack‐ + age.yaml. Defaults to '.' + + -e ENVIRONFILE, --environfile ENVIRONFILE + Optional environment file. Overrides $REPACKAGEEN‐ + VFILE, defaults to /dev/null + + -o OUTPUTDIRECTORY, --outputdirectory OUTPUTDIRECTORY + Output directory. Defaults to 'output' under + --directory path. + + -y FILE, --repackageyaml FILE + Name of parameter file. Defaults to 'repack‐ + age.yaml' or 'repackage.json' under --directory + path. + + -B buildnumber, --buildnumber BUILD-NUMBER + Build number. Defaults to $BUILD_NUMBER, which + defaults to a date-based string. + + -M MULTIPLEUPLOADVERSIONS, --multipleuploadversions MULTIPLEUPLOADVER‐ + SIONS + Use multiple versions for upload. Comma-separated + list of {datetime}, {buildnumber} or arbitrary + strings. Defaults to {buildnumber}, which is the + value from --buildnumber. + +DDIIRREECCTTOORRYY SSTTRRUUCCTTUURREE + Repackage requires as its input four items: + + stage/* A directory structure filled with files laid out + exactly as they are to appear on the end system, as + if "stage" were the root of the filesystem. For + DCAE applications, it is recommended that you use + the path opt/app/PACKAGENAME for all files associ‐ + ated with PACKAGENAME. + + repackage.yaml or repackage.json + A configuration file with information about the + packages, such as the package's name, version + information, dependencies, etc. More information + will be provided below. + + Dockerfile This file is only used for creating Docker images. + It contains the docker creation script. + + common/* If needed, any package installation or package + removal scripts would be placed here. They must be + named preinst, postinst, prerm or postrm. + + If the installation scripts need some temporary files, it is recom‐ + mended that you place them into stage/opt/app/PACKAGENAME/pkg. Your + installation script can then remove that directory if necessary after + successful installation. + +FFIILLEESS + /opt/app/repackage/bin/repackage + + /opt/app/repackage/man/repackage.1 + + + +OpenECOMP 2017-01-31 repackage(1) diff --git a/man/repackage.man b/man/repackage.man new file mode 100644 index 0000000..df32ab7 --- /dev/null +++ b/man/repackage.man @@ -0,0 +1,119 @@ +.TH repackage 1 {{DATE}} OpenECOMP OpenECOMP +.SH NAME +repackage - package an set of files into debian, +or docker packages +.SH SYNOPSIS +.HP 20 +repackage [-h] [-n] [-c] [-N] [-K] [-v] -b PACKAGETYPE [-u] [-d DIRECTORY] +[-e ENVIRONFILE] [-o OUTPUTDIRECTORY] +.SH DESCRIPTION +Build the specified packages. 'package-type' is one or more of docker, debian, +(comma-separated), or 'all' to build all of them. +.SH OPTIONS +.TP 20 +-h, --help +show a help message and exit +.TP 20 +-n, --skipexecution +indicate the packages and exit +.TP 20 +-c, --usecache +if a debian/tar/tgz artifact already exists use it +.TP 20 +-N, --skipbuild +skip actually building the packages +.TP 20 +-K, --keeptempfiles +keep temp files at exit +.TP 20 +-v, --verbose +turn on verbosity +.TP 20 +-b PACKAGETYPE, --packagetype PACKAGETYPE +The package-type may be specified multiple times or +may use a ','-separated or space-separated list. 'all' +is an alias for all of them. +Potential values are +debian, docker, +tar or tgz +.TP 20 +-u, --upload +Depending on package type -- docker, debian, tar or +tgz -- uploads the artifact to a remote repository. +For Docker, uses $DOCKERREGISTRY as the remote +repository to push the image. For Debian, uses +$REPACKAGEDEBIANUPLOAD as the command, with {0} as the +local path to the debian image, {1} as the image name +with build number, and optionally {2} as groupId (may +be used as part of the directory path), {3} as the +image name without the build number, and {4} as the +image name with no build number and no .deb suffix. +For additional uploads, this will also look for +$REPACKAGEDEBIANUPLOAD2, $REPACKAGEDEBIANUPLOAD3, +etc., and repeat the upload. For tar, uses +$REPACKAGETARUPLOAD as the command. Everything said +about $REPACKAGEDEBIANUPLOAD applies to +$REPACKAGETARUPLOAD. For tgz, uses $REPACKAGETGZUPLOAD +as the command. Everything said about +$REPACKAGEDEBIANUPLOAD applies to $REPACKAGETGZUPLOAD. +In addition, if --multipleuploadversions +is used, the above will be executed using the list of upload +version numbers specified there. This is typically used to +create multiple versions (using --multipleuploadversions) on +multiple remote repositories (using $REPACKAGE*UPLOAD). +.TP 20 +-d DIRECTORY, --directory DIRECTORY +where to find the stage directory and repackage.yaml. +Defaults to '.' +.TP 20 +-e ENVIRONFILE, --environfile ENVIRONFILE +Optional environment file. Overrides +$REPACKAGEENVFILE, defaults to /dev/null +.TP 20 +-o OUTPUTDIRECTORY, --outputdirectory OUTPUTDIRECTORY +Output directory. Defaults to 'output' under --directory +path. +.TP 20 +-y FILE, --repackageyaml FILE +Name of parameter file. Defaults to 'repackage.yaml' or 'repackage.json' under --directory path. +.TP 20 +-B buildnumber, --buildnumber BUILD-NUMBER +Build number. Defaults to $BUILD_NUMBER, which defaults to a date-based string. +.TP 20 +-M MULTIPLEUPLOADVERSIONS, --multipleuploadversions MULTIPLEUPLOADVERSIONS +Use multiple versions for upload. Comma-separated list +of {datetime}, {buildnumber} or arbitrary strings. +Defaults to {buildnumber}, which is the value from +--buildnumber. +.SH "DIRECTORY STRUCTURE" +Repackage requires as its input four items: +.P +.TP 20 +stage/* +A directory structure filled with files laid out exactly +as they are to appear on the end system, as if "stage" were +the root of the filesystem. For DCAE applications, it +is recommended that you use the path opt/app/PACKAGENAME +for all files associated with PACKAGENAME. +.TP 20 +repackage.yaml or repackage.json +A configuration file with information about the packages, +such as the package's name, version information, +dependencies, etc. More information will be provided below. +.TP 20 +Dockerfile +This file is only used for creating Docker images. It contains +the docker creation script. +.TP 20 +common/* +If needed, any package installation or package removal scripts +would be placed here. They must be named preinst, postinst, +prerm or postrm. +.P +If the installation scripts need some temporary files, it is recommended that +you place them into stage/opt/app/PACKAGENAME/pkg. Your installation script +can then remove that directory if necessary after successful installation. +.SH FILES +/opt/app/repackage/bin/repackage + +/opt/app/repackage/man/repackage.1 diff --git a/man/yamltojson.1 b/man/yamltojson.1 new file mode 100644 index 0000000..55a2c4d --- /dev/null +++ b/man/yamltojson.1 @@ -0,0 +1,22 @@ +yamltojson(1) OpenECOMP yamltojson(1) + + + +NNAAMMEE + yamltojson - convert a yaml file to a json file + +SSYYNNOOPPSSIISS + yamltojson file.yaml ... + +DDEESSCCRRIIPPTTIIOONN + Read in a yaml file (whose name must end with ".yaml") and create cor‐ + responding json files, whose names will end with ".json". + +FFIILLEESS + /opt/app/repackage/bin/yamltojson + + /opt/app/repackage/man/yamltojson.1 + + + +OpenECOMP 2017-01-26 yamltojson(1) diff --git a/man/yamltojson.man b/man/yamltojson.man new file mode 100644 index 0000000..b147cfe --- /dev/null +++ b/man/yamltojson.man @@ -0,0 +1,13 @@ +.TH yamltojson 1 {{DATE}} OpenECOMP OpenECOMP +.SH NAME +yamltojson - convert a yaml file to a json file +.SH SYNOPSIS +.HP 20 +yamltojson file.yaml ... +.SH DESCRIPTION +Read in a yaml file (whose name must end with ".yaml") and create corresponding json files, +whose names will end with ".json". +.SH FILES +/opt/app/repackage/bin/yamltojson + +/opt/app/repackage/man/yamltojson.1 |