Skip to content

Commit af8c78b

Browse files
committed
fixed typo
1 parent 5613746 commit af8c78b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

_posts/2020-06-22-adding an agent to gocd server.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ FROM gocd/gocd-agent-ubuntu-18.04:v20.4.0
4343
ENV GO_SERVER_URL=http://gocdserver:8153/go
4444
```
4545

46-
The `FROM` property specifies the location of the Docker image we want to use on the Docker image repository. The `ENV` command will add an environment variable to our resultant Docker container when we build it and specifies where the GoCD agent will find the required GoCD server.
46+
The `FROM` property specifies the location of the Docker image we want to use on the Docker image repository. The `ENV` command will add an environment variable to our resultant Docker container when we build it and specifies where the GoCD agent will find the required GoCD server. Note that the host name `gocdserver` equates to the service name defined in your Docker Compose file.
4747

4848
We now need to amend our Docker Compose file to include the Agent configuration. Under `services` add the following;
4949

@@ -82,12 +82,9 @@ Step 1/1 : FROM gocd/gocd-server:v20.4.0
8282
Successfully built 557ebecbe42e
8383
Successfully tagged mygocdserverimage:latest
8484
Building gocdagent
85-
Step 1/3 : FROM gocd/gocd-agent-ubuntu-18.04:v20.4.0
85+
Step 1/2 : FROM gocd/gocd-agent-ubuntu-18.04:v20.4.0
8686
---> d2132955e884
87-
Step 2/3 : ENV GO_SERVER_URL=http://gocdserver:8153/go
88-
---> Using cache
89-
---> 7fb682b41d77
90-
Step 3/3 : ENV AGENT_AUTO_REGISTER_KEY=6271e446-878b-4bb7-9cce-3584dd7b9852
87+
Step 2/2 : ENV GO_SERVER_URL=http://gocdserver:8153/go
9188
---> Using cache
9289
---> aa4296d97790
9390
Successfully built aa4296d97790

0 commit comments

Comments
 (0)