Git Module Documentation

Download the module

Please click here to download version 1.0.0 of the Git module.
It is an open source project, click here to access the repo !


What's the Git module ?

The Git module is an Ignition module embedding a Git client to make its integration easier into Ignition project development.
It permits to manage project resources throughout the development process in the Ignition designer. Exporting gateway configuration is simplified or even automated.

Here is a non-exhaustive list of features :

  1. Link an Ignition project with a remote repo, (Gateway Webpage)
  2. Link an Ignition user to a git project, with ssh or user/password authentication, (Gateway Webpage)
  3. Commit resources, (Designer, on project saved or from git toolbar)
  4. Push & Pull resources, (Designer, from git toolbar)
  5. Export of the gateway configuration. Tags, images, theme... (Designer, from git toolbar)


In order to link an Ignition project to a remote repo, you must :

  1. Go to the page Config - Git - Projects of your Ignition gateway,
  2. Click on "Create new Project",
  3. You can select the Ignition project,
  4. Then fill in the URI of your git repository,
  5. And click on "Create New Project" to save the association.

If the URI starts with "http" the authentication method will automatically be in user/password otherwise it will be in ssh.

The git repository will clone itself into the Ignition project folder when it is first opened in the designer following the association..
We therefore advise you to start from a blank repo and to configure a user before opening the designer.

For all other cases, you can configure your git repo manually, via command line, but this requires installing git on your machine.



Generate SSH key

To generate an SSH key you can run the following command line :

The private key is generated in your ssh key user folder.

SSH Folder :
Windows : C:\Users\YourUser\.ssh
Unix : /Users/YourUser/.ssh

It takes by default the name "id_rsa".
The content of the "id_rsa.pub" file will be added in the SSH Keys of your git account.
While the content of the file "id_rsa" will be added to your Ignition Git user.



In order to link an Ignition user to a Git repo, you must :
  1. Go to the page Config - Git - Projects of your Ignition gateway,
  2. Click on the "More" button of the associated project, then "manage users",
  3. Click on "Create new User",
  4. Fill in the Igniton user name of the user source associated with your project,
  5. For SSH authentication repo :
    1. Paste the ssh key associated with your git user,
  6. For User/Password authentication repo :
    1. Fill in the git user's username,
    2. Fill in the git user's password twice,
  7. Click on "Create New User" to save the association.

Pull changes

You can retrieve the changes made on the remote repo of your current branch with the pull command.
You can trigger a pull by clicking on the in the git toolbar of your designer.


Commit changes

You can record changes to the repository with the commit command.
You can trigger a commit by saving your project or clicking on the in the git toolbar of your designer.

A commit popup will appear, in which you have to select the files you want record and write a message describing the change you have just made.


Push commits

You can send all commited changes of your current branch to the remote repository with the push command.
You can trigger a push by clicking on the in the git toolbar of your designer.


Export gateway configuration

You can export gateway configuration to your project folder.
You can trigger it by clicking on the in the git toolbar of your designer.

The exported data are :

  1. A "tags" folder containing one file per tag provider, each file contains the configuration and the value of the tags,
  2. An "images" folder containing the images of the gateway,
  3. A "themes" folder containing the perspective theme used by the project.



Changelog

  1. 1.0.0 :
    1. first release
Please contact us here for any further information.