mirror of
https://gitee.com/dcren/initializr.git
synced 2025-04-05 17:38:06 +08:00
27 lines
1013 B
Bash
Executable File
27 lines
1013 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
###########################################################
|
|
# UTILS
|
|
###########################################################
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get update
|
|
apt-get install --no-install-recommends -y tzdata ca-certificates net-tools libxml2-utils git curl libudev1 libxml2-utils iptables iproute2 jq unzip
|
|
ln -fs /usr/share/zoneinfo/UTC /etc/localtime
|
|
dpkg-reconfigure --frontend noninteractive tzdata
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.3/concourse-java.sh > /opt/concourse-java.sh
|
|
|
|
|
|
###########################################################
|
|
# JAVA
|
|
###########################################################
|
|
JDK_URL=https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u265-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u265b01.tar.gz
|
|
|
|
mkdir -p /opt/openjdk
|
|
cd /opt/openjdk
|
|
curl -L ${JDK_URL} | tar zx --strip-components=1
|
|
test -f /opt/openjdk/bin/java
|
|
test -f /opt/openjdk/bin/javac |