Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: install go 1.10 on TC agents #30453

Merged
merged 1 commit into from
Sep 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions build/packer/teamcity-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ EOF
# Avoid saving any Bash history.
HISTSIZE=0

# At the time of writing we really want 1.11, but that doesn't
# exist in the PPA yet.
GOVERS=1.10

# Add third-party APT repositories.
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0EBFCD88
cat > /etc/apt/sources.list.d/docker.list <<EOF
Expand All @@ -36,12 +40,12 @@ debconf-set-selections <<< "oracle-java8-installer shared/accepted-oracle-licens
apt-get install --yes \
docker-ce \
git \
golang-1.9 \
golang-${GOVERS} \
oracle-java8-installer \
unzip

# Link Go into the PATH; the PPA installs it into /usr/lib/go-1.x/bin.
ln -s /usr/lib/go-1.9/bin/go /usr/bin/go
ln -s /usr/lib/go-${GOVERS}/bin/go /usr/bin/go

# Add a user for the TeamCity agent with Docker rights.
adduser agent --disabled-password
Expand Down