Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion 6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ FROM debian:wheezy
# 2. Compiling OpenJDK also requires the JDK to be installed, and it gets
# really hairy.

RUN apt-get update && apt-get install -y curl openjdk-6-jdk=6b32* wget
ENV JAVA_VERSION 6b32

RUN apt-get update && apt-get install -y curl openjdk-6-jdk="$JAVA_VERSION"* unzip wget

# If you're reading this and have any feedback on how this image could be
# improved, please open an issue or a pull request so we can discuss it!
4 changes: 3 additions & 1 deletion 7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ FROM debian:jessie
# 2. Compiling OpenJDK also requires the JDK to be installed, and it gets
# really hairy.

RUN apt-get update && apt-get install -y curl openjdk-7-jdk=7u60* wget
ENV JAVA_VERSION 7u65

RUN apt-get update && apt-get install -y curl openjdk-7-jdk="$JAVA_VERSION"* unzip wget

# If you're reading this and have any feedback on how this image could be
# improved, please open an issue or a pull request so we can discuss it!
4 changes: 3 additions & 1 deletion 8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ FROM debian:experimental
# 2. Compiling OpenJDK also requires the JDK to be installed, and it gets
# really hairy.

RUN apt-get update && apt-get install -y curl openjdk-8-jdk=8u20* wget
ENV JAVA_VERSION 8u20

RUN apt-get update && apt-get install -y curl openjdk-8-jdk="$JAVA_VERSION"* unzip wget

# If you're reading this and have any feedback on how this image could be
# improved, please open an issue or a pull request so we can discuss it!
26 changes: 26 additions & 0 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
set -e

declare -A aliases
aliases=(
[7]='latest'
)

cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

versions=( */ )
versions=( "${versions[@]%/}" )
url='git://github.com/docker-library/docker-java'

echo '# maintainer: InfoSiftr <github@infosiftr.com> (@infosiftr)'

for version in "${versions[@]}"; do
commit="$(git log -1 --format='format:%H' "$version")"
fullVersion="$(grep -m1 'ENV JAVA_VERSION ' "$version/Dockerfile" | cut -d' ' -f3)"
versionAliases=( $fullVersion $version ${aliases[$version]} )

echo
for va in "${versionAliases[@]}"; do
echo "$va: ${url}@${commit} $version"
done
done