mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 06:05:37 +03:00
wip jdk
This commit is contained in:
parent
24d8c08ff8
commit
72261fc9a0
@ -5,10 +5,14 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||||||
##################################################################
|
##################################################################
|
||||||
# installing java16
|
# installing java16
|
||||||
##################################################################
|
##################################################################
|
||||||
RUN wget -qO - http://repos.azulsystems.com/RPM-GPG-KEY-azulsystems | apt-key add - && \
|
RUN wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - && \
|
||||||
echo 'deb http://repos.azulsystems.com/debian stable main' > /etc/apt/sources.list.d/zulu.list && \
|
echo 'deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ stretch main' > /etc/apt/sources.list.d/adoptopenjdk-official.list && \
|
||||||
apt-get update -y && \
|
apt-get update && \
|
||||||
apt-get install -y --allow-unauthenticated zulu-16 && \
|
apt-get autoremove -y && \
|
||||||
|
apt-get install -y --allow-unauthenticated adoptopenjdk-16-hotspot && \
|
||||||
|
mkdir /usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/jre && \
|
||||||
|
ln -s /usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/bin/ /usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/jre/bin && \
|
||||||
|
ln -s /usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/lib/ /usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/jre/lib && \
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
|
@ -5,14 +5,14 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||||||
##################################################################
|
##################################################################
|
||||||
# installing java16
|
# installing java16
|
||||||
##################################################################
|
##################################################################
|
||||||
RUN wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - && \
|
RUN wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - && \
|
||||||
echo 'deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ jessie main' > /etc/apt/sources.list.d/adoptopenjdk-official.list && \
|
echo 'deb https://packages.adoptium.net/artifactory/deb stretch main' > /etc/apt/sources.list.d/temurin-official.list && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get autoremove -y && \
|
apt-get autoremove -y && \
|
||||||
apt-get install -y --allow-unauthenticated adoptopenjdk-16-hotspot && \
|
apt-get install -y --allow-unauthenticated temurin-17-jdk && \
|
||||||
mkdir /usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/jre && \
|
mkdir /usr/lib/jvm/temurin-17-jdk-amd64/jre && \
|
||||||
ln -s /usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/bin/ /usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/jre/bin && \
|
ln -s /usr/lib/jvm/temurin-17-jdk-amd64/bin/ /usr/lib/jvm/temurin-17-jdk-amd64/jre/bin && \
|
||||||
ln -s /usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/lib/ /usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/jre/lib && \
|
ln -s /usr/lib/jvm/temurin-17-jdk-amd64/lib/ /usr/lib/jvm/temurin-17-jdk-amd64/jre/lib && \
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
19
linux/ecosystem/epicmorg/debian/08-jessie/jdk17/Makefile
Normal file
19
linux/ecosystem/epicmorg/debian/08-jessie/jdk17/Makefile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
all: app
|
||||||
|
|
||||||
|
app:
|
||||||
|
make build
|
||||||
|
make deploy
|
||||||
|
make clean
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker-compose build --compress --parallel
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
docker-compose push
|
||||||
|
|
||||||
|
clean:
|
||||||
|
docker container prune -f
|
||||||
|
docker image prune -f
|
||||||
|
docker network prune -f
|
||||||
|
docker volume prune -f
|
||||||
|
docker system prune -af
|
@ -0,0 +1,6 @@
|
|||||||
|
version: '3.9'
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: "epicmorg/debian:jessie-jdk17"
|
||||||
|
build:
|
||||||
|
context: .
|
26
linux/ecosystem/epicmorg/debian/08-jessie/jdk18/Dockerfile
Normal file
26
linux/ecosystem/epicmorg/debian/08-jessie/jdk18/Dockerfile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
FROM epicmorg/debian:jessie
|
||||||
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# installing java16
|
||||||
|
##################################################################
|
||||||
|
RUN wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - && \
|
||||||
|
echo 'deb https://packages.adoptium.net/artifactory/deb stretch main' > /etc/apt/sources.list.d/temurin-official.list && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get autoremove -y && \
|
||||||
|
apt-get install -y --allow-unauthenticated temurin-18-jdk && \
|
||||||
|
mkdir /usr/lib/jvm/temurin-18-jdk-amd64/jre && \
|
||||||
|
ln -s /usr/lib/jvm/temurin-18-jdk-amd64/bin/ /usr/lib/jvm/temurin-18-jdk-amd64/jre/bin && \
|
||||||
|
ln -s /usr/lib/jvm/temurin-18-jdk-amd64/lib/ /usr/lib/jvm/temurin-18-jdk-amd64/jre/lib && \
|
||||||
|
java -version
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# cleanup
|
||||||
|
##################################################################
|
||||||
|
RUN apt-get purge policykit-1 -y && \
|
||||||
|
apt-get clean -y && \
|
||||||
|
apt-get autoclean -y && \
|
||||||
|
rm -rfv /var/lib/apt/lists/* && \
|
||||||
|
rm -rfv /tmp/* && \
|
||||||
|
rm -rfv /var/cache/apt/archives/*.deb
|
19
linux/ecosystem/epicmorg/debian/08-jessie/jdk18/Makefile
Normal file
19
linux/ecosystem/epicmorg/debian/08-jessie/jdk18/Makefile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
all: app
|
||||||
|
|
||||||
|
app:
|
||||||
|
make build
|
||||||
|
make deploy
|
||||||
|
make clean
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker-compose build --compress --parallel
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
docker-compose push
|
||||||
|
|
||||||
|
clean:
|
||||||
|
docker container prune -f
|
||||||
|
docker image prune -f
|
||||||
|
docker network prune -f
|
||||||
|
docker volume prune -f
|
||||||
|
docker system prune -af
|
@ -0,0 +1,6 @@
|
|||||||
|
version: '3.9'
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: "epicmorg/debian:jessie-jdk18"
|
||||||
|
build:
|
||||||
|
context: .
|
Loading…
Reference in New Issue
Block a user