Skip to content

Commit

Permalink
update for latest powerfit version
Browse files Browse the repository at this point in the history
  • Loading branch information
mariojmdavid committed Aug 23, 2016
1 parent d0e30a4 commit 1bf69f7
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 9 deletions.
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
language: python
python: "2.7"

# Use the new container infrastructure
sudo: false

# Install ansible
addons:
apt:
packages:
- python-pip

install:
# Install ansible
- pip install ansible

# Check ansible version
- ansible --version

# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg

script:
# Basic role syntax check
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check

notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![License](http://img.shields.io/:license-apache-blue.svg?style=flat-square)](http://www.apache.org/licenses/LICENSE-2.0.html)

Role and Dockerfile for disvis and powerfit application
=======================================================

Expand Down Expand Up @@ -137,8 +139,11 @@ Apache v2
Author Information
------------------

Mario David: [email protected]
LIP and Indigo-DataCloud project
Mario David: <[email protected]>

LIP Lisbon: http://www.lip.pt

Indigo DataCloud: https://www.indigo-datacloud.eu/

Acknowledgments
---------------
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
nvidia_driver_version: 352.93

# Haddocking application: disvis or powerfit
haddock_app: disvis
haddock_app: powerfit

# Variables related to NVIDIA url and executable
base_url: http://us.download.nvidia.com/XFree86/Linux-x86_64
Expand Down
3 changes: 2 additions & 1 deletion docker-powerfit/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# docker build -t powerfit .
# docker build --rm -t powerfit .

FROM indigodatacloud/ubuntu-sshd:14.04
MAINTAINER Mario David <[email protected]>
LABEL description="Run Powerfit application"

RUN ansible-galaxy install indigo-dc.disvis-powerfit && \
ansible-playbook /etc/ansible/roles/indigo-dc.disvis-powerfit/tests/powerfit.yml
Expand Down
9 changes: 7 additions & 2 deletions docker-powerfit/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![License](http://img.shields.io/:license-apache-blue.svg?style=flat-square)](http://www.apache.org/licenses/LICENSE-2.0.html)

docker-powerfit
===============

Expand Down Expand Up @@ -68,8 +70,11 @@ Apache v2
Author Information
------------------

Mario David: [email protected]
LIP and Indigo-DataCloud project
Mario David: <[email protected]>

LIP Lisbon: http://www.lip.pt

Indigo DataCloud: https://www.indigo-datacloud.eu/

Acknowledgments
---------------
Expand Down
19 changes: 16 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,19 @@
- name: clone git repositories
git: repo={{ item.repo }} dest={{ item.dest }} clone=yes
with_items:
- { repo: "https://github.com/haddocking/{{ haddock_app }}.git", dest: "/usr/local/{{ haddock_app }}" }
- { repo: "https://github.com/clMathLibraries/clFFT.git", dest: "/usr/local/clFFT" }
- { repo: "https://github.com/geggo/gpyfft.git", dest: "/usr/local/gpyfft" }

- name: clone git repositories powerfit
git: repo={{ item.repo }} dest={{ item.dest }} version="redo-rotation" clone=yes
with_items:
- { repo: "https://github.com/haddocking/{{ haddock_app }}.git", dest: "/usr/local/{{ haddock_app }}" }
when: haddock_app == "powerfit"

- name: clone git repositories disvis
git: repo={{ item.repo }} dest={{ item.dest }} clone=yes
with_items:
- { repo: "https://github.com/haddocking/{{ haddock_app }}.git", dest: "/usr/local/{{ haddock_app }}" }
when: haddock_app == "disvis"

- name: wget nvidia driver
get_url: url={{ nvidia_url }} dest=/usr/local mode=700
Expand Down Expand Up @@ -59,11 +69,14 @@
- name: pip install pyopencl==2015.1
pip: name=pyopencl version=2015.1 state=present

- name: pip install gpyfft
pip: name="git+https://github.com/geggo/gpyfft.git" editable=false state=present

- name: pip install gpyfft and {{ haddock_app }}
pip: name={{ item }} state=present
with_items:
- "file:///usr/local/gpyfft"
- "file:///usr/local/{{ haddock_app }}"

- name: unarchive powerfit examples
unarchive: src=http://www.lip.pt/~david/powerfit-example.tgz dest=/home copy=no
when: haddock_app == "powerfit"
4 changes: 4 additions & 0 deletions tests/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- hosts: localhost
roles:
- ansible-role-disvis-powerfit

0 comments on commit 1bf69f7

Please sign in to comment.