FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
03-22-2024 09:50 PM
I could use some guidance on creating a snap of a docker image as the process isn't very straightforward and I'm already at least halfway through. Let me begin by stating what I have done so far.
The app was already developped and I followed a process to create a Docker image. To accomplish that, I installed Docker Engine on Ubuntu22 (running as VM on VMware hosted on Windows PC). The image is built.
I cloned the ctrlX SDK github repo on the Ubuntu VM. I need to create snap of the image and the application manual I was reading references some scripts to do that, but I cannot find them. The how-to video from @Sgilk alludes to configging the snap with YAML files using VS Code. I ran the script install-dotnet-sdk.sh and now.....I need to install VS Code itself, correct?
Solved! Go to Solution.
03-22-2024 09:54 PM
Hi @AutomateSHANE ,
VS Code is simply the text editor I chose to use for development. You could use whatever you'd like, although I do personally recommend VS Code.
I would suggest starting with the example I provide on my Github. This way you can see how the application is structured and use the video as a reference.
03-22-2024 10:01 PM
Thanks for the quick reply, Sam! So the scripts referenced are the ones in the repo of the example. I see. I'll take a deeper dive into it and see what I can make work.
03-22-2024 10:29 PM
No problem! Here is another simpler example for reference.
The script install-dotnet-sdk.sh is only used for configuring a build environment for .NET development. It has nothing to do with snapping the docker image provider applications. You'll mainly be interested in modifying the snapcraft.yaml and docker-compose.yml files to suit your needs.
Let me know if you have any questions.
04-16-2024 10:34 PM
I've taken a look at several samples now and a lot of references across different sites. I have a slightly better understanding of how this all pieces together, but I'm still quite lost on my next steps. Honestly, the 'How-To' here doesn't have any 'how'. It is a great show-and-tell and general introduction, but those of us who are new to Docker and have self-taught software skills need a bit more than just finished examples that must be reverse engineered. There's way too many pieces to this puzzle.
04-16-2024 10:53 PM
There are way too many pieces of the puzzle to make a comprehensive How-To that isn't multiple hours long. The scope of the video was a tutorial on deploying a container on the ctrlX Container Engine application. Each application will require unique configuration, so only a few examples could be shown.
It was not meant to be a comprehensive tutorial on snapcraft, Docker or other software development concepts. See the "Useful Links" section of the article for more information on those puzzle pieces.