mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-09 22:42:40 +01:00
@@ -6,6 +6,7 @@ RUN apk add --no-cache \
|
|||||||
curl \
|
curl \
|
||||||
openssl
|
openssl
|
||||||
|
|
||||||
|
ENV CPUMINER_VERSION v2.4.5
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
autoconf \
|
autoconf \
|
||||||
@@ -14,7 +15,7 @@ RUN set -x \
|
|||||||
curl-dev \
|
curl-dev \
|
||||||
git \
|
git \
|
||||||
openssl-dev \
|
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 \
|
cd /usr/src/cpuminer \
|
||||||
&& ./autogen.sh \
|
&& ./autogen.sh \
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ RUN adduser -u 1001 -D user \
|
|||||||
|
|
||||||
ENV LANG C.UTF-8
|
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 LIB_OTR_VERSION 4.1.1
|
||||||
ENV IRSSI_OTR_VERSION 1.0.1
|
ENV IRSSI_OTR_VERSION 1.0.1
|
||||||
ENV PATCH_FOR_IRSSI_OTR https://github.com/cryptodotis/irssi-otr/commit/d03ab59b6f27142c1c5e99fedc635a589b1607bb.diff
|
ENV PATCH_FOR_IRSSI_OTR https://github.com/cryptodotis/irssi-otr/commit/d03ab59b6f27142c1c5e99fedc635a589b1607bb.diff
|
||||||
|
|||||||
64
latest-versions.sh
Executable file
64
latest-versions.sh
Executable file
@@ -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
|
||||||
@@ -14,11 +14,12 @@ RUN apk add --no-cache \
|
|||||||
python
|
python
|
||||||
|
|
||||||
# Get the source
|
# Get the source
|
||||||
|
ENV PLEXPY_VERSION v1.4.12
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
git \
|
git \
|
||||||
&& mkdir -p /opt/plexpy \
|
&& 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
|
&& apk del .build-deps
|
||||||
|
|
||||||
# Volume for Plexpy data.
|
# Volume for Plexpy data.
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
FROM debian:sid
|
FROM debian:sid
|
||||||
MAINTAINER Christian Koep <christian.koep@fom-net.de>
|
MAINTAINER Christian Koep <christian.koep@fom-net.de>
|
||||||
|
|
||||||
|
ENV ROUTERSPLOIT_VERSION v2.2.1
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
git \
|
git \
|
||||||
python-requests \
|
python-requests \
|
||||||
@@ -9,7 +11,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
python-bs4 \
|
python-bs4 \
|
||||||
--no-install-recommends \
|
--no-install-recommends \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& 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 \
|
&& apt-get purge -y --auto-remove \
|
||||||
git
|
git
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
--no-install-recommends \
|
--no-install-recommends \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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
|
ADD https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_x86_64.deb /src/vagrant_${VAGRANT_VERSION}_x86_64.deb
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ ENV HOME /home/user
|
|||||||
RUN useradd --create-home --home-dir $HOME user \
|
RUN useradd --create-home --home-dir $HOME user \
|
||||||
&& chown -R user:user $HOME
|
&& chown -R user:user $HOME
|
||||||
|
|
||||||
ENV CODE_VERSION 1.5.2
|
ENV CODE_VERSION 1.5.3
|
||||||
# download the source
|
# download the source
|
||||||
RUN buildDeps=' \
|
RUN buildDeps=' \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
FROM java:8-alpine
|
FROM java:8-alpine
|
||||||
|
|
||||||
ENV ZOOKEEPER_VERSION 3.4.8
|
ENV ZOOKEEPER_VERSION 3.4.9
|
||||||
ENV PATH $PATH:/opt/zookeeper/bin/
|
ENV PATH $PATH:/opt/zookeeper/bin/
|
||||||
|
|
||||||
# the start files for zookeeper use bash
|
# the start files for zookeeper use bash
|
||||||
|
|||||||
Reference in New Issue
Block a user