Skip to content

Commit

Permalink
Refactoring zulu base alpine image
Browse files Browse the repository at this point in the history
  • Loading branch information
atooni committed Jan 12, 2021
1 parent 91be065 commit a3b18e2
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 18 deletions.
18 changes: 0 additions & 18 deletions zulu-8-alpine/Dockerfile

This file was deleted.

1 change: 1 addition & 0 deletions zulu-alpine/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zulu*
15 changes: 15 additions & 0 deletions zulu-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# The basic image to run Blended containers
FROM blended/base-alpine:3.12.1

LABEL maintainer="Blended Development Team"

ARG JRE_NAME

RUN mkdir -p /opt \
&& chgrp -R 0 /opt \
&& chmod -R g+srwX /opt

ADD files/${JRE_NAME} /opt/java
ADD files/profile.d /etc/profile.d


File renamed without changes.
14 changes: 14 additions & 0 deletions zulu-alpine/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
cd files

JRE_NAME="zulu8.50.0.51-ca-jre8.0.275-linux_musl_x64"

umask 002
wget -O "$JRE_NAME.tar.gz" 'https://cdn.azul.com/zulu/bin/'$JRE_NAME'.tar.gz'
tar -xzf "$JRE_NAME.tar.gz"
rm -f $JRE_NAME.tar.gz
chgrp -R root $JRE_NAME
chmod -R g+srwX $JRE_NAME
cd ..

docker build --build-arg JRE_NAME=$JRE_NAME -t blended/zulu-alpine/$(cat version.txt) .
File renamed without changes.
1 change: 1 addition & 0 deletions zulu-alpine/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.8.275

0 comments on commit a3b18e2

Please sign in to comment.