summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2018-09-05 13:38:55 -0700
committerJessica Wagantall <jwagantall@linuxfoundation.org>2018-09-05 13:38:55 -0700
commitb4acd42cb79511787151bdd960263122e8a6f383 (patch)
tree0215c94a51a2a656dbd212c497a90f1689bb1891
parent80ac74271e602c08d8088076d48e87feef5c59a9 (diff)
Add symbolic link to Go bin
Add symbolic link in /usr/bin instead of updating PATH since this one gets lost once packer finishes building and does not gets preserved after. Change-Id: Ic523a19351de0eb7f440153a51acd98920135202 Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
-rw-r--r--packer/provision/local-docker.yaml7
1 files changed, 5 insertions, 2 deletions
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml
index ecf9e4684..7bb1c0314 100644
--- a/packer/provision/local-docker.yaml
+++ b/packer/provision/local-docker.yaml
@@ -35,8 +35,11 @@
dest: /usr/local
remote_src: true
become: true
- - name: 'Add golang to PATH'
- command: 'echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile'
+ - name: Create symbolic link to go bin
+ file:
+ src: "/usr/local/go/bin/go"
+ dest: "/usr/bin/go"
+ state: link
become: true
- name: Install libxml2-utils