Skip to content

Commit

Permalink
Update Dockerfile, sample role
Browse files Browse the repository at this point in the history
ubuntu:trusty requires an apt-get update before installing any packages.
Update the sample role to use "become" instead of "sudo", and explictly
install version 4, so that it could install correctly.

Building this Dockerfile will demonstrate bug nodesource#33.
  • Loading branch information
jwhitlock committed Sep 9, 2016
1 parent 427a387 commit 7b42ce8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM ubuntu:trusty
MAINTAINER Mark Wolfe <mark@wolfe.id.au>

# http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-apt-ubuntu
RUN apt-get install software-properties-common -y --force-yes
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install software-properties-common -y --force-yes
RUN apt-add-repository ppa:ansible/ansible
RUN apt-get update
RUN apt-get install ansible -y --force-yes
Expand Down
4 changes: 3 additions & 1 deletion role.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
- name: Test the Node.js role
hosts: all
sudo: yes
become: yes
roles:
- role: "ansible-nodejs-role"
vars:
nodejs_version: '4'

0 comments on commit 7b42ce8

Please sign in to comment.