Skip to content

Commit

Permalink
Add support for nodejs 8 and 9
Browse files Browse the repository at this point in the history
And Debian 9
  • Loading branch information
tersmitten committed Nov 8, 2017
1 parent 155ca56 commit 64ccf1d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ubuntu:16.04
MAINTAINER Mischa ter Smitten <mtersmitten@oefenweb.nl>

# python
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal python-dev curl && \
apt-get clean
RUN curl -sL https://bootstrap.pypa.io/get-pip.py | python -
RUN rm -rf $HOME/.cache

# ansible
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gcc libffi-dev libssl-dev && \
apt-get clean
RUN pip install ansible==2.3.2.0
RUN rm -rf $HOME/.cache

# provision
COPY . /etc/ansible/roles/ansible-role
WORKDIR /etc/ansible/roles/ansible-role
RUN ansible-playbook -i tests/inventory tests/test.yml --connection=local
7 changes: 7 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ boxes = [
:cpu => "50",
:ram => "256"
},
{
:name => "debian-9",
:box => "bento/debian-9",
:ip => '10.0.0.16',
:cpu => "50",
:ram => "256"
},
]

Vagrant.configure("2") do |config|
Expand Down
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ galaxy_info:
versions:
- wheezy
- jessie
- stretch
galaxy_tags:
- system
- web
Expand Down
2 changes: 2 additions & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# vars file for nodejs
---
nodejs_version_map:
nodejs-v9x: '9.x'
nodejs-v8x: '8.x'
nodejs-v7x: '7.x'
nodejs-v6x: '6.x'
nodejs-v5x: '5.x'
Expand Down

0 comments on commit 64ccf1d

Please sign in to comment.