diff --git a/cpuminer/Dockerfile b/cpuminer/Dockerfile index b740527..ab50d62 100644 --- a/cpuminer/Dockerfile +++ b/cpuminer/Dockerfile @@ -6,6 +6,7 @@ RUN apk add --no-cache \ curl \ openssl +ENV CPUMINER_VERSION v2.4.5 RUN set -x \ && apk add --no-cache --virtual .build-deps \ autoconf \ @@ -14,7 +15,7 @@ RUN set -x \ curl-dev \ git \ openssl-dev \ - && git clone --depth 1 https://github.com/pooler/cpuminer.git /usr/src/cpuminer \ + && git clone --branch "${CPUMINER_VERSION}" https://github.com/pooler/cpuminer.git /usr/src/cpuminer \ && ( \ cd /usr/src/cpuminer \ && ./autogen.sh \ diff --git a/irssi/Dockerfile b/irssi/Dockerfile index 82ccbe5..0aa72b8 100644 --- a/irssi/Dockerfile +++ b/irssi/Dockerfile @@ -10,7 +10,7 @@ RUN adduser -u 1001 -D user \ ENV LANG C.UTF-8 -ENV IRSSI_VERSION 0.8.19 +ENV IRSSI_VERSION 0.8.20 ENV LIB_OTR_VERSION 4.1.1 ENV IRSSI_OTR_VERSION 1.0.1 ENV PATCH_FOR_IRSSI_OTR https://github.com/cryptodotis/irssi-otr/commit/d03ab59b6f27142c1c5e99fedc635a589b1607bb.diff diff --git a/latest-versions.sh b/latest-versions.sh new file mode 100755 index 0000000..3b6b8ca --- /dev/null +++ b/latest-versions.sh @@ -0,0 +1,64 @@ +# This script gets the latest GitHub releases for the specified projects. +#!/bin/bash +set -e + +if [[ -z "$GITHUB_TOKEN" ]]; then + echo "Set the GITHUB_TOKEN env variable." + exit 1 +fi + +URI=https://api.github.com +API_VERSION=v3 +API_HEADER="Accept: application/vnd.github.${API_VERSION}+json" +AUTH_HEADER="Authorization: token ${GITHUB_TOKEN}" + +get_latest() { + local repo=$1 + + local resp=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${repo}/releases/latest") + local tag=$(echo $resp | jq --raw-output .tag_name) + local name=$(echo $resp | jq --raw-output .name) + + if [[ "$tag" == "null" ]]; then + # get the latest tag + local resp=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${repo}/tags") + local tag=$(echo $resp | jq --raw-output .[0].name) + fi + + local dir=${repo#*/} + local current=$(cat "${dir}/Dockerfile" | grep -m 1 VERSION | awk '{print $(NF)}') + + if [[ "$tag" =~ "$current" ]]; then + echo -e "\e[36m${dir}:\e[39m current ${current} | ${tag} | ${name}" + else + echo -e "\e[31m${dir}:\e[39m current ${current} | ${tag} | ${name} | https://github.com/${repo}/releases" + fi +} + +projects=( +apache/zookeeper +atom/atom +camlistore/camlistore +curl/curl +hashicorp/consul +hashicorp/vault +irssi/irssi +JonnyWong16/plexpy +microsoft/vscode +mitchellh/vagrant +pooler/cpuminer +powershell/powershell +reverse-shell/routersploit +ricochet-im/ricochet +tarsnap/tarsnap +znc/znc +zyedidia/micro +) + +main() { + for p in ${projects[@]}; do + get_latest "$p" + done +} + +main diff --git a/plexpy/Dockerfile b/plexpy/Dockerfile index 50239d5..d17f03f 100644 --- a/plexpy/Dockerfile +++ b/plexpy/Dockerfile @@ -14,11 +14,12 @@ RUN apk add --no-cache \ python # Get the source +ENV PLEXPY_VERSION v1.4.12 RUN set -x \ && apk add --no-cache --virtual .build-deps \ git \ && mkdir -p /opt/plexpy \ - && git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy/ \ + && git clone --branch "${PLEXPPY_VERSION}" https://github.com/drzoidberg33/plexpy.git /opt/plexpy/ \ && apk del .build-deps # Volume for Plexpy data. diff --git a/routersploit/Dockerfile b/routersploit/Dockerfile index 665a6bc..3a1622c 100644 --- a/routersploit/Dockerfile +++ b/routersploit/Dockerfile @@ -1,6 +1,8 @@ FROM debian:sid MAINTAINER Christian Koep +ENV ROUTERSPLOIT_VERSION v2.2.1 + RUN apt-get update && apt-get install -y \ git \ python-requests \ @@ -9,7 +11,7 @@ RUN apt-get update && apt-get install -y \ python-bs4 \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/* \ - && git clone https://github.com/reverse-shell/routersploit /usr/bin/routersploit \ + && git clone --branch "${ROUTERSPLOIT_VERSION}" https://github.com/reverse-shell/routersploit /usr/bin/routersploit \ && apt-get purge -y --auto-remove \ git diff --git a/vagrant/Dockerfile b/vagrant/Dockerfile index aacd757..139f8b8 100644 --- a/vagrant/Dockerfile +++ b/vagrant/Dockerfile @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/* -ENV VAGRANT_VERSION 1.8.5 +ENV VAGRANT_VERSION 1.8.6 ADD https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_x86_64.deb /src/vagrant_${VAGRANT_VERSION}_x86_64.deb diff --git a/vscode/Dockerfile b/vscode/Dockerfile index a9b2d28..a1f3e1c 100644 --- a/vscode/Dockerfile +++ b/vscode/Dockerfile @@ -49,7 +49,7 @@ ENV HOME /home/user RUN useradd --create-home --home-dir $HOME user \ && chown -R user:user $HOME -ENV CODE_VERSION 1.5.2 +ENV CODE_VERSION 1.5.3 # download the source RUN buildDeps=' \ ca-certificates \ diff --git a/zookeeper/Dockerfile b/zookeeper/Dockerfile index 4ccbe2e..e75c348 100644 --- a/zookeeper/Dockerfile +++ b/zookeeper/Dockerfile @@ -1,6 +1,6 @@ FROM java:8-alpine -ENV ZOOKEEPER_VERSION 3.4.8 +ENV ZOOKEEPER_VERSION 3.4.9 ENV PATH $PATH:/opt/zookeeper/bin/ # the start files for zookeeper use bash