GOCD infrasturcture setup

47 views
Skip to first unread message

Zaheer Khan

unread,
Nov 28, 2019, 5:48:06 AM11/28/19
to go-cd
Hi All,

I am newbie to GOCD. I want to build container images using travis like functionality using GOCD, have few doubts regarding the setup

Using Travis container images are built like:
---------------------------------------------------------
Github ---> Build container images using Travis --> Push to AWS ECR


1) GOCD has GO server and GO Agent. I am using Windows 10 system. 
In my case where should the GO server and GO Agent be deployed . Can they be on the same Windows machine.

2) How can I pull external repo Github to GOCD

3) How can I build container images and push to AWS-ECR using GOCD

Regards,
Zaheer

Ashwanth Kumar

unread,
Nov 29, 2019, 6:11:14 PM11/29/19
to go...@googlegroups.com
Hello Zaheer,

Please find my answers below

1) GOCD has GO server and GO Agent. I am using Windows 10 system. 
In my case where should the GO server and GO Agent be deployed . Can they be on the same Windows machine.

Yes they can be run on the same machine or different machines depending on your setup. Traditionally in our organization we've running them under the same machine and they work just fine. You might want to size your instance / VM accordingly to factor the memory requirement of running both the server and agent together.
 
2) How can I pull external repo Github to GOCD

GoCD has this concept of Materials. Materials can be of different types. For pulling repos from Github, you can use the Git material. I would like to point you to the documentation at this point which should help you build your first pipeline using a Git material.
 
3) How can I build container images and push to AWS-ECR using GOCD

GoCD is like the Iron Man suit. It aids you and your team to follow CI/CD principles, most of the time it doesn't deal with specific technologies of your stack. I've always wanted to say it in this mailing list. Now that it's done. You can play around with any of the available task plugins on GoCD that helps you work with Docker files and registry. Alternatively, you just write a simple bash / powershell script that would build the docker image and use docker / aws-cli to push it to ECR. 
 

Regards,
Zaheer

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/49acff17-e432-40ea-a778-c5cec280f55d%40googlegroups.com.


--

Ashwanth Kumar / ashwanthkumar.in

fabrizio chavarria

unread,
Nov 29, 2019, 6:38:11 PM11/29/19
to go...@googlegroups.com
it is possible to run Go server and agent in the same box,  you could be able to install the agent service in the server box.check https://docs.gocd.org/current/installation/  

you can check this guide and setup a basic pipeline :  https://www.gocd.org/getting-started/part-1/

you can run bash commands in a job task ( see below) ., same thing for docker,  it would be the same command instead git

image.png

you need to check your agent resources , make sure you have installed your services. 
image.png


Reply all
Reply to author
Forward
0 new messages