Add rebar3 tool for DCAEGEN 65/61665/2
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 21 Aug 2018 19:11:32 +0000 (12:11 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 21 Aug 2018 20:01:42 +0000 (13:01 -0700)
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>
packer/provision/local-docker.yaml

index 5a76dbc..f563608 100644 (file)
         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