Skip to content

Commit a3e1cb4

Browse files
committed
Add Julia 1.6.1 bootstrap action
1 parent a3c82a2 commit a3e1cb4

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
venv/
33

44
# Notebook checkpoints
5-
.ipynb_chekpoints/
5+
.ipynb_chekpoints/
6+
7+
# Sekrets
8+
.env

emr/julia/julia-1.6.1.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
3+
curl -OL https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.1-linux-x86_64.tar.gz
4+
5+
sudo mkdir -p /opt; sudo tar xf julia-1.6.1-linux-x86_64.tar.gz --directory /opt
6+
7+
sudo ln -s /opt/julia-1.6.1/bin/julia /usr/local/bin/julia
8+
9+
10+
cat > /tmp/setup.sh << EOF
11+
/bin/sh
12+
13+
while ! grep -q emr-notebook /etc/passwd; do sleep 10; done;
14+
15+
sleep 10
16+
17+
sudo -u emr-notebook JUPYTER=/emr/notebook-env/bin/jupyter /usr/local/bin/julia -e 'using Pkg; Pkg.add(["IJulia"])'
18+
19+
EOF
20+
21+
chmod +x /tmp/setup.sh
22+
23+
nohup /tmp/setup.sh 2>&1 &

0 commit comments

Comments
 (0)