Does anyone have some guidelines on how to get drone and singularity up and running?
Hey, sorry to send you bouncing around, but appreciate you asking the question here
Is the goal to use a singularity container as the execution environment? For example, are you looking to create a new singularity container, and then execute your build inside the container, and then destroy the container at the end of the build?
@bradrydzewski, No worries. to my little understanding, Singularity defines and builds the images that I want my project to run on. On the other hand, drone is a management platform for your build servers or platform
I am trying to get drone to work with singularity.
In the below example, drone is cloning and testing your code inside of a docker container called python:latest
pipeline:
image: python:latest
commands:
- pip install -r requirements.txt
- fab test
Do you want to test your code inside of a singularity container? Or do you want to test your code inside a docker container (as shown in the above example) and then create a singularity container as an artifact when your tests pass?
Drone works with containers in two distinct ways. It uses containers as the underlying runtime environment in which your build script is executed, and it can create containers as build artifacts. It is unclear to me which of these two integrations you are trying to achieve.
I want to test my code inside a singularity container.
So far, I have singularity set up and I pulled the drone image using singularity.
The steps I am moving onto, are getting drone to run locally to manage builds on this image and then sending me updates of the build.
My vague assumption after going through the docs is that we create a drone yaml file.
This file is run to set up the server and based on my remote(Github) projects authorized, PR and commits will trigger the builds.
So far, I have singularity set up and I pulled the drone image using singularity.
The steps I am moving onto, are getting drone to run locally to manage builds on this image and then sending me updates of the build.
Drone has the capability to support multiple container runtimes, but today, it primarily supports the Docker runtime. There is an experimental Kubernetes runtime as well. The Singularity runtime would have to be created. It absolutely looks possible based on what I’ve read, however, creating such a runtime would likely take weeks of development effort …
Thanks @bradrydzewski. I will try to put in some effort on getting drone to support that and will look at Kubernetes runtime