Following packages are required: * python2-pytest
The tool is used for generation OpenShift template from Dockerfile and from https://github.com/container-images/container-image-template/blob/master/openshift-template.yml already prepared by Modularity team. As Dockerfile as openshift-template.yml have to exist in the directory.
Run the command with following parameters:
./modtools docker2openshift --dockerfile <full_path_to_Dockerfile> IMAGENAME
where parameters mean:
* dockerfile ... means full path to Dockerfile
* IMAGENAME ... means image name in register. Can be taken from command docker images
or from some other registry.
The output of modtools docker2openshift command is OpenShift template stored in temporary directory
Example usage:
./modtools docker2openshift --dockerfile path/to/Dockerfile image/repository/url /path/to/Dockerfile OpenShift template is generated here: /tmp/tmpM0teUC/openshift-template.yml
In order to run tests, run command:
py.test-2.7 tests/
modtools rpm2module script creates modulemd file from package names. Output is written in modulemd-output.yaml file (multiple packages as input) or in file named after package name (single package as input).
Please make sure you have latest module-build-service and dnf installed before running.