Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
R ecosystem
MacOSR
Commits
eb809571
Commit
eb809571
authored
Oct 13, 2020
by
Jean-Francois Rey
☕
Browse files
update provisioning
parent
7ea50e21
Changes
8
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
eb809571
# MacOs, R environment and GitLab CI/CD
##
apt-get install sshpass
Vagrantfile
View file @
eb809571
...
...
@@ -9,6 +9,7 @@ Vagrant.configure("2") do |config|
# Configure SSH Connectivity
config
.
ssh
.
username
=
"vagrant"
config
.
ssh
.
password
=
"vagrant"
config
.
ssh
.
export_command_template
=
'export PATH=/usr/local/bin:$PATH'
config
.
vm
.
provider
"virtualbox"
do
|
vb
|
# Display the VirtualBox GUI when booting the machine
...
...
ansible_provisioning/files/install-gitlabrunner.sh
View file @
eb809571
...
...
@@ -2,7 +2,7 @@
# 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 chmod
+x /
s
ur/local/bin/gitlab-runner
sudo chmod
+x /u
s
r/local/bin/gitlab-runner
# add gitlab serveur in know host
ssh-keyscan
-t
ecdsa
-H
gitlab.paca.inrae.fr
>>
~/.ssh/known_hosts
...
...
ansible_provisioning/files/install-r-library.sh
View file @
eb809571
#!/bin/bash
echo
"
$PATH
"
export
PATH
=
/usr/local/bin:
$PATH
### List off systems pre-compiled libraries
declare
-a
listL
=(
"cairo-1.14.12-darwin.17-x86_64.tar.gz"
...
...
ansible_provisioning/files/install-r.sh
View file @
eb809571
...
...
@@ -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
echo
"Install gfortran"
hdiutil attach gfortran-10.2-Catalina.dmg
sudo
installer
-package
/Volume/gfortran
*
/gfortran.pkg
-target
/
hdiutil detach /Volume/gfortran
*
sudo
installer
-package
/Volume
s
/gfortran
*
/gfortran.pkg
-target
/
hdiutil detach /Volume
s
/gfortran
*
/
rm
gfortran-10.2-Catalina.dmg
echo
"Downloading R-4.0 Nightly..."
...
...
ansible_provisioning/files/install-xquartz.sh
View file @
eb809571
...
...
@@ -5,5 +5,5 @@ curl -OL https://dl.bintray.com/xquartz/downloads/XQuartz-2.7.11.dmg
hdiutil attach XQuartz-2.7.11.dmg
installer
-package
/Volume/xquartz
*
/xquartz.pkg
-target
/
hdiutil detach /Volume/xquartz
*
hdiutil detach /Volume
s
/xquartz
*
rm
XQuartz-2.7.11.dmg
ansible_provisioning/group_vars/inventory.yml
View file @
eb809571
...
...
@@ -5,6 +5,6 @@ macos:
vars
:
ansible_user
:
vagrant
ansible_password
:
vagrant
ansible_port
:
22
ansible_port
:
22
22
ansible_connection
:
ssh
ansible_provisioning/playbook.yml
View file @
eb809571
---
-
name
:
Mac OS R tools
hosts
:
MacOSCatalina
#environment:
# PATH: "/usr/local/bin:$PATH"
tasks
:
-
name
:
ping
ping
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment