Skip to content

Commit cfa3c1d

Browse files
committed
alpine test
1 parent 8c2646d commit cfa3c1d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Vagrantfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

0 commit comments

Comments
 (0)