File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ Vagrant . configure ( "2" ) do |config |
5
+ config . vm . box = "generic/alpine38"
6
+
7
+ config . vm . provision "shell" , inline : <<-SHELL
8
+ # https://wiki.alpinelinux.org/wiki/Installing_Oracle_Java
9
+ mkdir -p /opt/java
10
+ cd /opt/java
11
+ curl -L -b "oraclelicense=a" http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-i586.tar.gz -O
12
+ sudo tar -zxvf jdk-8u191-linux-i586.tar.gz
13
+ ln -s /opt/java/jdk1.8.0_191 /opt/java/current
14
+ echo "export JAVA_HOME=/opt/java/current" > /etc/profile.d/java.sh
15
+ echo 'export PATH=$PATH:$JAVA_HOME/bin' >> /etc/profile.d/java.sh
16
+ source /etc/profile.d/java.sh
17
+ apk add paxctl
18
+ cd jdk1.8.0_191/bin
19
+ paxctl -c java
20
+ paxctl -m java
21
+ paxctl -c javac
22
+ paxctl -m javac
23
+ SHELL
24
+ end
You can’t perform that action at this time.
0 commit comments