Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
9ef3583f
Commit
9ef3583f
authored
9 years ago
by
Brian Beggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding go-agent Docker file
parent
50b29fc0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
docker/build/go-agent/Dockerfile
+19
-0
docker/build/go-agent/README.md
+28
-0
No files found.
docker/build/go-agent/Dockerfile
0 → 100644
View file @
9ef3583f
# Build using: docker build -f Dockerfile.gocd-agent -t gocd-agent .
# FROM edxops/precise-common:latest
FROM
gocd/gocd-agent:16.2.1
LABEL
version="0.01" \
description="This custom go-agent docker file installs additional requirements for the edx pipeline"
RUN
apt-get update
&&
apt-get install
-y
-q
\
python
\
python-dev
\
python-distribute
\
python-pip
# TODO: repalce this with a pip install command so we can version this properly
RUN
git clone
-b
bbeggs/cli https://github.com/edx/tubular.git /opt/tubular
RUN
pip install
-r
/opt/tubular/requirements.txt
RUN
cd
/opt/tubular
;
python setup.py install
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker/build/go-agent/README.md
0 → 100644
View file @
9ef3583f
##Usage
Start the container with this:
```
docker run -ti -e GO_SERVER=your.go.server.ip_or_host gocd/gocd-agent```
If you need to start a few GoCD agents together, you can of course use the shell to do that. Start a few agents in the background, like this:
```
for each in 1 2 3; do docker run -d --link angry_feynman:go-server gocd/gocd-agent; done
```
##Getting into the container
Sometimes, you need a shell inside the container (to create test repositories, etc). docker provides an easy way to do that:
```
docker exec -i -t CONTAINER-ID /bin/bash
```
To check the agent logs, you can do this:
```
docker exec -i -t CONTAINER-ID tail -f /var/log/go-agent/go-agent.log
```
##Agent Configuration
The go-agent expects it's configuration to be found at ```
/var/lib/go-agent/config/
```. Sharing the
configuration between containers is done by mounting a volume at this location that contains any configuration files
necessary.
**Example docker run command:**
```
docker run -ti -v /tmp/go-agent/conf:/var/lib/go-agent/config -e GO_SERVER=gocd.sandbox.edx.org 718d75c467c0 bash
```
[
How to setup auto registration for remote agents
](
https://docs.go.cd/current/advanced_usage/agent_auto_register.html
)
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment