FlexDeploy can be configured to automatically build and scan Docker images as part of your build workflow. In cases where you are running your container directly on a docker runtime you can automatically configure that here as well.
Info |
---|
For a full walkthrough of setting up a FlexDeploy Container Project deploying to Kubernetes via Helm, check out this Getting Started guide. |
...
The easiest way to setup docker is to use the blueprint for containers. For more information on blueprints check out the blueprints page. |
Optionally, a path to Dockerfile can be provided. If it is empty, a default Dockerfile in a project source checkout folder is expected. If the checkout folder is empty, then a Dockerfile is expected in the root of the FD_TEMP_DIR. A Dockerfile must be present to build an image. This behavior changed slightly in 5.0.3 beta. Previously, the location was expected to be in FD_TEMP_DIR/FD_PROJECT_NAME.
...
At the end of the build, the workflow execution will store a reference to the built Docker Image which is available on the Artifacts tab of the workflow execution screen.
...
The build instance must be a Docker host to use this feature, and the dockerBuildProjectImage operation of the FlexDeployDockerPlugin must be associated to the build instance. See Creating and Editing Instances for more information on how to add a plugin operation to an Instance.
...
Info |
---|
Empty WorkflowNote that because the deployProjectContainer is added to the workflow automatically, it is very well possible that your deploy workflow may be empty at design time. |
Info |
---|
Steps before deployProjectContainerIf you need to run steps prior to deploying the project container but still want to make use of the configuration above, simply add the deployProjectContainer operation anywhere in your workflow and FlexDeploy will forgo adding it automatically. |
Container Status/Monitoring
FlexDeploy no longer has the ability to retrieve monitor the status of the container as well as view logs, start and stop. There are a couple of prerequisites in order to make use of this functionality.
Your docker installation must have the Docker API enabled
For configuring SSL see here.
Create a DockerAPI account (Topology->Integrations->Container)
Set the API Account on your Project under the Container Configuration tab
Finally, you must ensure the container was deployed via the deployProjectContainer operation, otherwise FlexDeploy will have no record of the container. This happens automatically by checking 'runContainer' in the Container Configuration tab.
With all of that complete you will have access to view and perform actions on the deployed project containers:
...
Container Monitoring
All of this information is available under Administration->Monitoring->Containers as well. On this page it will give you a snapshot of all containers running in that environment.
...
containers as of Version 6.0.