Table of Contents | ||||
---|---|---|---|---|
|
...
You have a working docker project and the source code is managed in a Git repository. The goal of the tutorial is to push a docker image to the GCP Artifact Registry.
This process will include:
cloning the application from a Git repository
building the docker image
push the docker image to the GCP Artifact Registry.
We will walk through each of the FlexDeploy features that will be created/configured to accomplish this goal and have the docker image published to the GCP Artifact Registry in a very short amount of time.
Checklist
Checklist | Description |
---|---|
Docker Registry Address | GCP Artifact Registry address |
Docker Registry User | Use "oauth2accesstoken" to push images against the GCP Artifact Registry |
Docker Registry Token/Password | Key file content, generated using Service Account of GCP |
Docker Registry User permission | Service Account must have the required permission, to push images to the GCP Artifact Registry |
Configure Cloud specific credential
...
To configure Project specific settings one can navigate to the Project Configuration tab as shown above.
Next, select the PROPERTIES option from the left-hand pane.
Select the target Registry Account.
Docker Image Name and Docker Image Tag are essential to build the docker image.
Target Properties
...
Topology
Navigate to the Topology from the Menu. The Page with the Target Groups, Environments and Endpoints sections will be displayed. Choose a Target Group on the left. You will see a table that has Instances as the rows and Environments as the columns list of Environments on the right with colored circles representing each Target.
...
Click on Docker Target Group and click on the Development Environment
Instance. Color Color coding represents:
RED - no required properties are set and/or the The Endpoint is not configured
YELLOW - some of the required properties are set and/or the Endpoint is not configurednot set,
GREEN - all required properties are set and the Endpoint is configured
...
Clicking the environment row for DEV will display the configurable properties/allows modifying the Endpoint and allows for the configurationproperties.
...
Properties | Mandatory field | Description |
Docker Server | Optional | Docker server address. Required if Docker Unix Socket is not set. |
Docker Server Port | Optional | The port to connect to on the Docker server. |
Docker Unix Socket | Optional | The socket the Docker daemon listens on The default value is [/var/run/docker.sock] |
Registry Account | Optional | Docker Registry account with relevant details |
GIT Path | Optional | Path to the Git executable. Required only if git is not on PATH. |
Below given are the env-specific values which need to be updated.
...