Before you can start running containers you must tell Gofer what you want to run. To do this we create what is called a
The creation of this pipeline configuration is very easy and can be done in either Golang or Rust. This allows you to use a fully-featured programming language to organize your pipelines, instead of dealing with YAML mess.
As an example, let's just copy a pipeline that has been given to us already. We'll use Go as our language, which means you'll need to install it if you don't have it. The Gofer repository gives us a simple pipeline that we can copy and use.
cd /tmp/simple_pipeline wget https://raw.githubusercontent.com/clintjedwards/gofer/main/examplePipelines/go/simple/main.go
This should create a
main.go file inside our
To complete our Go program we simply have to initialize it with the
go mod command.
go mod init test/simple_pipeline go mod tidy
The pipeline we generated above gives you a very simple pipeline with a few pre-prepared testing docker containers. You should be able to view it using your favorite IDE.
The configuration itself is very simple. Essentially a pipeline contains of a few parts: