summaryrefslogtreecommitdiffstats
path: root/packer
diff options
context:
space:
mode:
authorEric Ball <eball@linuxfoundation.org>2022-07-11 09:07:36 -0700
committerEric Ball <eball@linuxfoundation.org>2022-07-11 09:07:36 -0700
commit8fa57d2a33a78a511c37b80d549342c67f5373a5 (patch)
treeda6805e95f2f76451779592ec6f86a61b6948efd /packer
parent592429a4284d03a205bfe656037ee6cdf4da69a4 (diff)
Fix: Download rebar3 bin rather than source
Packer builds have been broken due to the removal of the bootstrap step. Instead of the more error-prone process of building from source, we will instead download the bin directly (with steps based on those already used for docker-compose). Change-Id: Ie0d156a4608f413894dc3c2bde27c7f33ed02a1a Issue-ID: CIMAN-33 Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Diffstat (limited to 'packer')
-rw-r--r--packer/provision/local-docker.yaml23
1 files changed, 6 insertions, 17 deletions
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml
index 0ae135255..869202d75 100644
--- a/packer/provision/local-docker.yaml
+++ b/packer/provision/local-docker.yaml
@@ -233,26 +233,15 @@
become: true
when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
- - name: Clone rebar3
- git:
- repo: 'https://github.com/erlang/rebar3.git'
- dest: /tmp/rebar3
- version: v3.13
- when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
-
- - name: Install rebar3 to bin
- copy:
- src: /tmp/rebar3/rebar3
- dest: /usr/bin/rebar3
- mode: 0755
- remote_src: true
+ - name: 'Download latest rebar3 bin'
+ command: curl -o /usr/bin/rebar3 -L "https://s3.amazonaws.com/rebar3/rebar3"
become: true
when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
- - name: Remove unused rebar3 source
- file:
- path: /tmp/rebar3
- state: absent
+ - file:
+ path: /usr/bin/rebar3
+ mode: "+x"
+ become: true
when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
- name: Download geckodriver