Commit eb809571 authored by Jean-Francois Rey's avatar Jean-Francois Rey
Browse files

update provisioning

parent 7ea50e21
# MacOs, R environment and GitLab CI/CD # MacOs, R environment and GitLab CI/CD
## ##
apt-get install sshpass
...@@ -9,6 +9,7 @@ Vagrant.configure("2") do |config| ...@@ -9,6 +9,7 @@ Vagrant.configure("2") do |config|
# Configure SSH Connectivity # Configure SSH Connectivity
config.ssh.username = "vagrant" config.ssh.username = "vagrant"
config.ssh.password = "vagrant" config.ssh.password = "vagrant"
config.ssh.export_command_template = 'export PATH=/usr/local/bin:$PATH'
config.vm.provider "virtualbox" do |vb| config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine # Display the VirtualBox GUI when booting the machine
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Download and install gitlab-runner # Download and install gitlab-runner
sudo curl --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64 sudo curl --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64
sudo chmod +x /sur/local/bin/gitlab-runner sudo chmod +x /usr/local/bin/gitlab-runner
# add gitlab serveur in know host # add gitlab serveur in know host
ssh-keyscan -t ecdsa -H gitlab.paca.inrae.fr >> ~/.ssh/known_hosts ssh-keyscan -t ecdsa -H gitlab.paca.inrae.fr >> ~/.ssh/known_hosts
......
#!/bin/bash #!/bin/bash
echo "$PATH"
export PATH=/usr/local/bin:$PATH
### List off systems pre-compiled libraries ### List off systems pre-compiled libraries
declare -a listL=( declare -a listL=(
"cairo-1.14.12-darwin.17-x86_64.tar.gz" "cairo-1.14.12-darwin.17-x86_64.tar.gz"
......
...@@ -4,8 +4,8 @@ echo "Downloading gfortran for catalina..." ...@@ -4,8 +4,8 @@ echo "Downloading gfortran for catalina..."
curl -LO https://github.com/fxcoudert/gfortran-for-macOS/releases/download/10.2/gfortran-10.2-Catalina.dmg curl -LO https://github.com/fxcoudert/gfortran-for-macOS/releases/download/10.2/gfortran-10.2-Catalina.dmg
echo "Install gfortran" echo "Install gfortran"
hdiutil attach gfortran-10.2-Catalina.dmg hdiutil attach gfortran-10.2-Catalina.dmg
sudo installer -package /Volume/gfortran*/gfortran.pkg -target / sudo installer -package /Volumes/gfortran*/gfortran.pkg -target /
hdiutil detach /Volume/gfortran* hdiutil detach /Volumes/gfortran*/
rm gfortran-10.2-Catalina.dmg rm gfortran-10.2-Catalina.dmg
echo "Downloading R-4.0 Nightly..." echo "Downloading R-4.0 Nightly..."
......
...@@ -5,5 +5,5 @@ curl -OL https://dl.bintray.com/xquartz/downloads/XQuartz-2.7.11.dmg ...@@ -5,5 +5,5 @@ curl -OL https://dl.bintray.com/xquartz/downloads/XQuartz-2.7.11.dmg
hdiutil attach XQuartz-2.7.11.dmg hdiutil attach XQuartz-2.7.11.dmg
installer -package /Volume/xquartz*/xquartz.pkg -target / installer -package /Volume/xquartz*/xquartz.pkg -target /
hdiutil detach /Volume/xquartz* hdiutil detach /Volumes/xquartz*
rm XQuartz-2.7.11.dmg rm XQuartz-2.7.11.dmg
...@@ -5,6 +5,6 @@ macos: ...@@ -5,6 +5,6 @@ macos:
vars: vars:
ansible_user: vagrant ansible_user: vagrant
ansible_password: vagrant ansible_password: vagrant
ansible_port: 22 ansible_port: 2222
ansible_connection: ssh ansible_connection: ssh
--- ---
- name: Mac OS R tools - name: Mac OS R tools
hosts: MacOSCatalina hosts: MacOSCatalina
#environment:
# PATH: "/usr/local/bin:$PATH"
tasks: tasks:
- name: ping - name: ping
ping: ping:
......
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