Commit 6f0c94ee authored by Guillaume Mella's avatar Guillaume Mella
Browse files

add wisard, bsmem roles

parent 71ce8267
......@@ -2,11 +2,13 @@ VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider :virtualbox do |vb|
vb.name = "ees17-school-tutoral-V3"
vb.memory = 2048
vb.cpus = 2
vb.gui = true
vb.customize ["modifyvm", :id, "--vram", "16"]
config.ssh.username = "ees17"
# config.ssh.hostname = "ees17-school-tutoral-V3"
end
config.vm.box = "debian/stretch64"
......
......@@ -159,6 +159,8 @@
echo "Following commands have been install for the school and can be run in the terminal"
esocmds=$(find /school/eso-pipelines/install/bin/ -name "eso*" | while read line ; do basename $line ; done)
echo " yorick gasgano fv "$esocmds
# let's accept some easy last minute updates, who knows ?
alias update-EES17VM="curl http://apps.jmmc.fr/ees17/update.sh | bash"
- name: 'Perform custom replacements'
replace:
......@@ -220,16 +222,29 @@
- python-skimage-lib
# - topcat # no package :(
- include_role:
name: jmmc_wisard_ci
- include_role:
name: jsy1001_bsmem
- include_role:
name: gravity_python_tools
- include_role:
name: martinache_xara_xaosim
- name: "Synchronize some files onto user homedir (LITpro local service, screensaver config...)"
synchronize:
src: "files/homedir/"
dest: "/home/{{user_login}}/"
become: no
- name: "Synchronize some files onto user /school)"
synchronize:
src: "files/schooldir/"
dest: "/school/"
become: no
- name: "Install jmmc script to launch jnlps (sphere-client is also included)"
copy:
......
---
# Author: Guillaume Mella
# Description: install wisard-ci
# created for EES17 tutorial https://hraetoile2017.sciencesconf.org/
#
# Main information: http://www.jmmc.fr/oimaging
#
- name: "Install Wisard-ci"
block:
- apt: name={{ item }}
with_items:
- subversion
- astro-gdl #- gdl # we could test that version is >= 0.9.7
- subversion:
repo: "{{wisard_ci_svn_repo}}"
dest: "/home/{{ ansible_user }}/wisard-ci"
export: yes
force: yes
become : no
# could replace .basrch modification done below
# - file:
# src: "/home/{{ ansible_user }}/wisard-ci/bin/wisard-ci"
# dest: "/home/{{ ansible_user }}/bin/wisard-ci"
# state: link
- blockinfile:
dest: "/home/{{ ansible_user }}/wisard-ci/gdl_startup.pro"
create: yes
marker: "; {mark} ANSIBLE MANAGED BLOCK"
block: |
!PATH=!PATH+":/usr/share/gnudatalanguage/astrolib"
- blockinfile:
dest: "/home/{{ ansible_user }}/.bashrc"
create: yes
marker: "# {mark} ANSIBLE MANAGED BLOCK - jmmc_wisard_ci"
block: |
export WISARD_CI_VERSION={{wisard_ci_version}}
export PATH="$PATH:/home/{{ ansible_user }}/wisard-ci/bin/"
wisard_ci_version: WISARD-CI_V3_0_2Beta2
wisard_ci_svn_repo: "https://svn.jmmc.fr/jmmc-sw/WISARD-CI/tags/{{wisard_ci_version}}/wisard-ci"
---
# Author: Guillaume Mella
# Description: install bsmem-ci
# created for EES17 tutorial https://hraetoile2017.sciencesconf.org/
#
# Main information: http://www.jmmc.fr/oimaging
# https://gitlab.com/jsy1001/bsmem/tags
#
- name: "Install Bsmem-ci"
block:
- apt_repository:
repo: deb http://deb.debian.org/debian stretch contrib non-free
state: present
- apt: name={{ item }}
with_items:
- git
- cmake
- gcc
- g++
- libcfitsio-dev
- libglib2.0-dev
- gfortran
- gcc
- pgplot5
- xterm
- libcfitsio-dev
- libfftw3-dev
- libnfft3-dev
- libglib2.0-dev
- git:
repo: https://github.com/jsy1001/oifitslib.git
version: v2.2.1
dest: "{{bsmem_install_dir}}/oifitslib"
- shell: cmake ..; make; make install
args:
chdir: "{{bsmem_install_dir}}/oifitslib/build"
- unarchive:
src: files/{{bsmem_tgz}}
dest: "{{bsmem_install_dir}}"
creates: "{{bsmem_install_dir}}/{{bsmem_dirname}}"
- shell: "cmake .. -Wno-dev ; make; make install; rm -rf {{bsmem_install_dir}}/{{bsmem_dirname}} ; touch {{bsmem_install_dir}}/{{bsmem_dirname}}.done"
args:
chdir: "{{bsmem_install_dir}}/{{bsmem_dirname}}/build"
creates: "{{bsmem_install_dir}}/{{bsmem_dirname}}.done"
## # need non-free for pgplot5
## RUN sed -i "s/jessie main/jessie main contrib non-free/" /etc/apt/sources.list
## RUN apt-get update -y ; apt-get install -y git cmake g++
##
## # install oifitslib for bsmem after prerequisites
## RUN apt-get update -y ; apt-get install -y git cmake gcc g++ libcfitsio-dev libglib2.0-dev
## RUN cd /opt ; git clone https://github.com/jsy1001/oifitslib.git ; cd oifitslib ; git checkout v2.2.1
## RUN cd /opt/oifitslib/build; cmake ..; make; make install
## RUN echo "install BSMem (using .tar.gz from https://gitlab.com/jsy1001/bsmem/tags)"
## ADD "bsmem-v2.0.6-*.tar.gz" /opt/
## RUN apt-get update -y ; apt-get install -y cmake gfortran gcc pgplot5 xterm libcfitsio-dev libfftw3-dev libnfft3-dev libglib2.0-dev
# RUN cd /opt/bsmem*/build ; cmake .. -Wno-dev ; make ; make install; rm -rf /opt/bsmem*
#
bsmem_dirname: bsmem-v2.0.6-867d9f9e2817fb3c96eb7a7965f299001e356ce4
bsmem_tgz: "{{bsmem_dirname}}.tar.gz"
bsmem_install_dir: /opt/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment