summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2018-08-21 12:11:32 -0700
committerJessica Wagantall <jwagantall@linuxfoundation.org>2018-08-21 13:01:42 -0700
commitba4a03d03c90dcb96bdb40404a1d3c6b5022e3be (patch)
tree1872eceeffe9544568e33757ee983dbe8a6158f8
parent0e63c41a711fab2aba339d0887ee6eaab6d932f3 (diff)
Add rebar3 tool for DCAEGEN
Clone and bootstrap rebar3. Move rebar3 bin to /usr/bin. Change-Id: I339bec85eb1ed884ae55d840dd8f145e323641b2 Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
-rw-r--r--packer/provision/local-docker.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml
index 5a76dbc45..f563608b5 100644
--- a/packer/provision/local-docker.yaml
+++ b/packer/provision/local-docker.yaml
@@ -117,3 +117,22 @@
name: google-chrome-stable
state: present
become: true
+
+ - name: Clone rebar3
+ git:
+ repo: 'https://github.com/erlang/rebar3.git'
+ dest: /tmp/rebar3
+
+ - name: Bootstrap rebar3
+ command: ./bootstrap
+ args:
+ chdir: /tmp/rebar3
+
+ - name: Move rebar3 to bin
+ command: mv /tmp/rebar3/rebar3 /usr/bin/rebar3
+ become: true
+
+ - name: Remove unused rebar3 source
+ file:
+ path: /tmp/rebar3
+ state: absent