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
edx
configuration
Commits
b6c1cf64
Unverified
Commit
b6c1cf64
authored
Apr 04, 2018
by
Nadeem Shahzad
Committed by
GitHub
Apr 04, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4436 from edx/nadeem/OPS-2553
Replace deprecated go-agent(OPS-2553)
parents
4086cb42
eaa619d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
docker/build/go-agent/Dockerfile
+17
-9
No files found.
docker/build/go-agent/Dockerfile
View file @
b6c1cf64
# Build using: docker build -f Dockerfile.gocd-agent -t gocd-agent .
# https://hub.docker.com/r/gocd/gocd-agent-
deprecated
/
FROM
gocd/gocd-agent-
deprecated:17.7
.0
# https://hub.docker.com/r/gocd/gocd-agent-
ubuntu-14.04
/
FROM
gocd/gocd-agent-
ubuntu-14.04:v17.10
.0
LABEL
version="0.02" \
description="This custom go-agent docker file installs additional requirements for the edx pipeline"
# Set locale to UTF-8 which is not the default for go-agent Docker container
RUN
apt-get update
&&
\
apt-get install
-y
locales
&&
\
locale-gen en_US.UTF-8
ENV
LANG en_US.UTF-8
ENV
LANGUAGE en_US:en
ENV
LC_ALL en_US.UTF-8
# starting with 16.04 apt-get-repository is not installed in the base image, lets install it so we are ready
# http://lifeonubuntu.com/ubuntu-missing-add-apt-repository-command/
RUN
apt-get update
&&
apt-get install
-y
-q
\
...
...
@@ -64,12 +72,12 @@ RUN pip install 'awscli>=1.11.58'
# that can checkout private github repositories used as pipeline materials. The key material here is faked and is only
# used to pass CI!
# setup the github identity
ADD
docker/build/go-agent/files/go_github_key.pem /
var
/go/.ssh/id_rsa
RUN
chmod 600 /
var
/go/.ssh/id_rsa
&&
\
chown go:go /
var
/go/.ssh/id_rsa
ADD
docker/build/go-agent/files/go_github_key.pem /
home
/go/.ssh/id_rsa
RUN
chmod 600 /
home
/go/.ssh/id_rsa
&&
\
chown go:go /
home
/go/.ssh/id_rsa
# setup the known_hosts
RUN
touch /
var
/go/.ssh/known_hosts
&&
\
chmod 600 /
var
/go/.ssh/known_hosts
&&
\
chown go:go /
var
/go/.ssh/known_hosts
&&
\
ssh-keyscan
-t
rsa,dsa github.com
>
/
var
/go/.ssh/known_hosts
RUN
touch /
home
/go/.ssh/known_hosts
&&
\
chmod 600 /
home
/go/.ssh/known_hosts
&&
\
chown go:go /
home
/go/.ssh/known_hosts
&&
\
ssh-keyscan
-t
rsa,dsa github.com
>
/
home
/go/.ssh/known_hosts
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