-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AS Docker Buildcontainer planned? #1
Comments
We have the same question/ challenge. In the presentation 'Automation & Build Server' slide 35 there is also mentioned that B&R uses a docker container on their Jenkins server |
Hi @zeehans - thank you for the suggestion, it is a good one. As @knetsooj mentioned, we do indeed have docker containers set up on our internal server. Therefore, we will add some explanation into the PPT for how you can set this up on your side. We will also add our docker file to the template files. We plan to have this information added by the end of October. |
@langstonb that's great. Please post an update in this issue when you have added that info. |
…docker container running Automation Studio
@wesleybuchanan that's great. We'll try that out shortly. |
@wesleybuchanan we tried building the Docker image using your Dockerfile but are getting stuck at importing the fieldbus devices. I believe that's how far we got the first time around last year as well with our own dockerfile. When we attempt a build of a project using a CP1585 PLC for instances we get the following error messages:
On a regular installation of AS the fieldbus dependencies would just be requested to be installed upon opening a project file. Unfortunately we can't seem to run AS out of the container - it just crashes. Can the fieldbus module files simply be copied across from a bare-metal installation or is there another way to install them without going through the UI? |
Hi @zeehans , If you place the needed upgrades into the AS_Upgrades directory before creating the docker container then they should be installed after Automation Studio is installed. Specifically the lines 94 - 101 of the docker file handle this. If there are upgrades that need to be installed after the container has been created you could mount a volume into the container and run the commands. To mount a volume in docker first stop your container Once the install is finished you can exit or install additional upgrades. |
@wesleybuchanan in this case it's about third party device description files (extension .xdd). For example the file FBE.0000001D_CPX_FB40 refers to a FESTO Powerlink compatible bus node. These are xml files that are imported via the 3rd Party Device Manager. Is it possible to simply mount the corresponding folder into the container from a bare-metal AS installation? |
@zeehans Please check the contents of the "C:\ProgramData\BR\AS412\Hardware\Modules" of your local installation. You should see the 3e party FBE.0000001D_CPX_FB40 subfolder. When you copy this to the docker installation it should build correctly. |
@zeehans can you confirm that copying the FBE.0000001D_CPX_FB40 folder into your docker container allowed you to build your project succesfully? We plan on updating the package with this information shortly. |
@wesleybuchanan we haven't got around to trying that yet. My colleague who is tasked with building the docker image is still on leave at the moment. I'll let you know as soon as I know more. |
@wesleybuchanan my colleague got around to testing your suggestion. We can build the docker image now and the error messages relating to the description files disappear but when we try to compile a configuration, the build just hangs after a while and never completes. In the container we build a configuration using the following commands:
As base images we tried:
We built container images using AS Versions 4.11 and 4.12. The behaviour described above occurs in all build setups and the build hangs here:
I attached two build logs:
We'd be grateful if you could provide some help as to how to proceed. |
For our CI pipelines it would be really useful to be able to use Docker containers to build and deploy PLC images (in our case RUC and PIPs). Right now we use a shell executor that uses the BR command line tooling to sequentially build our deploy images however it would be really nice to be able to parallelise this process. We are building about 15 different configurations and it takes quite a while to build. If we were able to build each configuration in an isolated container we could easly parallelise this process. We tried pulling relevant tools and dependencies into a Docker Windows container but never got it to build. Surely we are missing some steps here. Is it possible to get instructions as to how to build such a container, preferably a Dockerfile?
The text was updated successfully, but these errors were encountered: