better git clones

Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2016-12-27 17:04:58 -08:00
parent 996f7a6367
commit 3e0fc7968f
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
22 changed files with 46 additions and 38 deletions

View File

@ -20,7 +20,7 @@ RUN buildDeps=' \
&& apk --no-cache add $buildDeps \ && apk --no-cache add $buildDeps \
&& mkdir -p /go/src/camlistore.googlesource.com \ && mkdir -p /go/src/camlistore.googlesource.com \
&& cd /go/src/camlistore.googlesource.com \ && cd /go/src/camlistore.googlesource.com \
&& git clone --depth 1 -b "${CAMLISTORE_VERSION}" https://camlistore.googlesource.com/camlistore.git \ && git clone --depth 1 --branch "${CAMLISTORE_VERSION}" https://camlistore.googlesource.com/camlistore.git \
&& cd /go/src/camlistore.googlesource.com/camlistore \ && cd /go/src/camlistore.googlesource.com/camlistore \
&& go run make.go \ && go run make.go \
&& cp -r ./bin/* /usr/local/bin/ \ && cp -r ./bin/* /usr/local/bin/ \

View File

@ -17,7 +17,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/*
RUN git clone --recursive https://github.com/Swordfish90/cool-retro-term.git /src RUN git clone --depth 1 --recursive https://github.com/Swordfish90/cool-retro-term.git /src
WORKDIR /src WORKDIR /src
RUN qmake \ RUN qmake \
&& make && make

View File

@ -30,7 +30,7 @@ RUN buildDeps=' \
&& go get github.com/Soulou/curl-unix-socket \ && go get github.com/Soulou/curl-unix-socket \
&& mv /go/bin/curl-unix-socket /usr/bin/ \ && mv /go/bin/curl-unix-socket /usr/bin/ \
&& mkdir -p /go/src/github.com/hashicorp /etc/consul.d \ && mkdir -p /go/src/github.com/hashicorp /etc/consul.d \
&& git clone --branch ${CONSUL_VERSION} https://github.com/hashicorp/consul /go/src/github.com/hashicorp/consul \ && git clone --depth 1 --branch ${CONSUL_VERSION} https://github.com/hashicorp/consul /go/src/github.com/hashicorp/consul \
&& cd /go/src/github.com/hashicorp/consul \ && cd /go/src/github.com/hashicorp/consul \
&& XC_ARCH="amd64" XC_OS="linux" make all \ && XC_ARCH="amd64" XC_OS="linux" make all \
&& mv bin/consul /usr/bin/ \ && mv bin/consul /usr/bin/ \

View File

@ -15,7 +15,7 @@ RUN set -x \
curl-dev \ curl-dev \
git \ git \
openssl-dev \ openssl-dev \
&& git clone --branch "${CPUMINER_VERSION}" https://github.com/pooler/cpuminer.git /usr/src/cpuminer \ && git clone --depth 1 --branch "${CPUMINER_VERSION}" https://github.com/pooler/cpuminer.git /usr/src/cpuminer \
&& ( \ && ( \
cd /usr/src/cpuminer \ cd /usr/src/cpuminer \
&& ./autogen.sh \ && ./autogen.sh \

View File

@ -13,7 +13,7 @@ RUN buildDeps=' \
set -x \ set -x \
&& apt-get update \ && apt-get update \
&& apt-get install -y $buildDeps --no-install-recommends \ && apt-get install -y $buildDeps --no-install-recommends \
&& git clone -b develop --depth 1 https://github.com/Lokaltog/vim-powerline.git /pwrline \ && git clone --depth 1 --branch develop https://github.com/Lokaltog/vim-powerline.git /pwrline \
&& ( \ && ( \
cd /pwrline \ cd /pwrline \
&& mv fontpatcher/fontpatcher /usr/bin/ \ && mv fontpatcher/fontpatcher /usr/bin/ \

View File

@ -4,6 +4,8 @@ RUN apt-get update && apt-get install -y \
sqlite3 \ sqlite3 \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ENV SOFTHSM_VERSION 2.2.0
RUN buildDeps=' \ RUN buildDeps=' \
autoconf \ autoconf \
automake \ automake \
@ -15,7 +17,7 @@ RUN buildDeps=' \
&& set -x \ && set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \ && apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& git clone https://github.com/opendnssec/SoftHSMv2.git /usr/src/SoftHSMv2 \ && git clone --depth 1 --branch "${SOFTHSM_VERSION}" https://github.com/opendnssec/SoftHSMv2.git /usr/src/SoftHSMv2 \
&& cd /usr/src/SoftHSMv2 \ && cd /usr/src/SoftHSMv2 \
&& sh autogen.sh \ && sh autogen.sh \
&& ./configure --with-objectstore-backend-db \ && ./configure --with-objectstore-backend-db \

View File

@ -24,7 +24,7 @@ RUN buildDeps=' \
&& set -x \ && set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \ && apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& git clone https://github.com/magnumripper/JohnTheRipper.git /usr/src/johntheripper \ && git clone --depth 1 https://github.com/magnumripper/JohnTheRipper.git /usr/src/johntheripper \
&& cd /usr/src/johntheripper/src \ && cd /usr/src/johntheripper/src \
&& ./configure || cat config.log \ && ./configure || cat config.log \
&& make \ && make \

View File

@ -68,7 +68,7 @@ install_kernel(){
if [[ -d $aufsdir ]]; then if [[ -d $aufsdir ]]; then
rm -rf $aufsdir rm -rf $aufsdir
fi fi
git clone -b aufs${MAJOR_MINOR_VERSION} --single-branch --depth 1 https://github.com/sfjro/aufs4-standalone.git $aufsdir git clone --depth 1 --branch aufs${MAJOR_MINOR_VERSION} --single-branch https://github.com/sfjro/aufs4-standalone.git $aufsdir
fi fi
if [[ "$OPT" == "grsec" ]]; then if [[ "$OPT" == "grsec" ]]; then

View File

@ -25,14 +25,16 @@ get_latest() {
local tag=$(echo $resp | jq --raw-output .[0].name) local tag=$(echo $resp | jq --raw-output .[0].name)
fi fi
if [[ "$name" == "null" ]]; then if [[ "$name" == "null" ]] || [[ "$name" == "" ]]; then
name="-" name="-"
fi fi
local dir=${repo#*/} local dir=${repo#*/}
if [[ "$dir" == "CouchPotatoServer" ]]; then if [[ "$dir" == "CouchPotatoServer" ]]; then
dir=couchpotato dir="couchpotato"
elif [[ "$dir" == "SoftHSMv2" ]]; then
dir="golang-softhsm2"
fi fi
local current=$(cat "${dir}/Dockerfile" | grep -m 1 VERSION | awk '{print $(NF)}') local current=$(cat "${dir}/Dockerfile" | grep -m 1 VERSION | awk '{print $(NF)}')
@ -45,25 +47,27 @@ get_latest() {
} }
projects=( projects=(
apache/zookeeper
atom/atom atom/atom
camlistore/camlistore camlistore/camlistore
CouchPotato/CouchPotatoServer
curl/curl
fcambus/telize
hashicorp/consul hashicorp/consul
hashicorp/vault CouchPotato/CouchPotatoServer
irssi/irssi
JonnyWong16/plexpy
microsoft/vscode
mitchellh/vagrant
pooler/cpuminer pooler/cpuminer
powershell/powershell curl/curl
reverse-shell/routersploit opendnssec/SoftHSMv2
ricochet-im/ricochet irssi/irssi
tarsnap/tarsnap
znc/znc
zyedidia/micro zyedidia/micro
JonnyWong16/plexpy
powershell/powershell
ricochet-im/ricochet
reverse-shell/routersploit
tarsnap/tarsnap
fcambus/telize
mitchellh/vagrant
hashicorp/vault
microsoft/vscode
facebook/watchman
znc/znc
apache/zookeeper
) )
main() { main() {

View File

@ -15,7 +15,7 @@ RUN buildDeps=' \
&& set -x \ && set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \ && apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& git clone https://github.com/robertdavidgraham/masscan.git /usr/src/masscan \ && git clone --depth 1 https://github.com/robertdavidgraham/masscan.git /usr/src/masscan \
&& cd /usr/src/masscan \ && cd /usr/src/masscan \
&& make \ && make \
&& make install \ && make install \

View File

@ -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/*
RUN git clone --recursive https://github.com/visit1985/mdp.git /src RUN git clone --depth 1 --recursive https://github.com/visit1985/mdp.git /src
WORKDIR /src WORKDIR /src

View File

@ -17,7 +17,7 @@ RUN buildDeps=' \
' \ ' \
set -x \ set -x \
&& apk --no-cache add $buildDeps \ && apk --no-cache add $buildDeps \
&& git clone --branch "$MICRO_VERSION" https://github.com/zyedidia/micro /go/src/github.com/zyedidia/micro \ && git clone --depth 1 --branch "$MICRO_VERSION" https://github.com/zyedidia/micro /go/src/github.com/zyedidia/micro \
&& cd /go/src/github.com/zyedidia/micro \ && cd /go/src/github.com/zyedidia/micro \
&& mkdir -p /go/bin \ && mkdir -p /go/bin \
&& make install \ && make install \

View File

@ -34,8 +34,8 @@ RUN mkdir -p $HOME/.mutt/cache/headers $HOME/.mutt/cache/bodies \
&& touch $HOME/.mutt/certificates && touch $HOME/.mutt/certificates
# vim settings # vim settings
RUN git clone https://github.com/jessfraz/.vim.git $HOME/.vim \ RUN git clone --depth 1 https://github.com/jessfraz/.vim.git $HOME/.vim \
&& git clone https://github.com/altercation/vim-colors-solarized $HOME/.vim/bundle/vim-colors-solarized \ && git clone --depth 1 https://github.com/altercation/vim-colors-solarized $HOME/.vim/bundle/vim-colors-solarized \
&& cp $HOME/.vim/vimrc $HOME/.vimrc && cp $HOME/.vim/vimrc $HOME/.vimrc
ENV LANG C.UTF-8 ENV LANG C.UTF-8

View File

@ -1,4 +1,4 @@
FROM mhart/alpine-node:5 FROM node:alpine
RUN apk add --no-cache \ RUN apk add --no-cache \
build-base \ build-base \

View File

@ -19,7 +19,7 @@ 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 --branch "${PLEXPY_VERSION}" https://github.com/drzoidberg33/plexpy.git /opt/plexpy/ \ && git clone --depth 1 --branch "${PLEXPY_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.

View File

@ -11,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 --branch "${ROUTERSPLOIT_VERSION}" https://github.com/reverse-shell/routersploit /usr/bin/routersploit \ && git clone --depth 1 --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

View File

@ -64,7 +64,7 @@ RUN cd /usr/lib/i386-linux-gnu && \
# --group ssr # --group ssr
# clone source # clone source
RUN git clone https://github.com/MaartenBaert/ssr.git /src RUN git clone --depth 1 https://github.com/MaartenBaert/ssr.git /src
# install # install
#RUN echo "ssr ALL = NOPASSWD: /src/simple-build-and-install" >> /etc/sudoers #RUN echo "ssr ALL = NOPASSWD: /src/simple-build-and-install" >> /etc/sudoers

View File

@ -39,7 +39,7 @@ RUN buildDeps=' \
&& curl -sSL http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -o /usr/share/GeoIP/GeoLiteCity.dat.gz \ && curl -sSL http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -o /usr/share/GeoIP/GeoLiteCity.dat.gz \
&& curl -sSL http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz -o /usr/share/GeoIP/GeoIPASNum.dat.gz \ && curl -sSL http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz -o /usr/share/GeoIP/GeoIPASNum.dat.gz \
&& gunzip /usr/share/GeoIP/*gz \ && gunzip /usr/share/GeoIP/*gz \
&& git clone --branch "${TELIZE_VERSION}" https://github.com/fcambus/telize.git /usr/src/telize \ && git clone --depth 1 --branch "${TELIZE_VERSION}" https://github.com/fcambus/telize.git /usr/src/telize \
&& cd /usr/src/telize \ && cd /usr/src/telize \
&& cp timezone*.conf /etc/nginx/ \ && cp timezone*.conf /etc/nginx/ \
&& rm -rf /usr/src/telize \ && rm -rf /usr/src/telize \

View File

@ -38,7 +38,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/*
RUN git clone https://github.com/dobyrch/termboy --depth 1 /src \ RUN git clone --depth 1 https://github.com/dobyrch/termboy /src \
&& cd /src \ && cd /src \
&& make \ && make \
&& make install || true && make install || true

View File

@ -24,7 +24,7 @@ RUN buildDeps=' \
set -x \ set -x \
&& apk --no-cache add --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \ && apk --no-cache add --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
&& mkdir -p /go/src/github.com/hashicorp \ && mkdir -p /go/src/github.com/hashicorp \
&& git clone --branch ${VAULT_VERSION} https://github.com/hashicorp/vault /go/src/github.com/hashicorp/vault \ && git clone --depth 1 --branch ${VAULT_VERSION} https://github.com/hashicorp/vault /go/src/github.com/hashicorp/vault \
&& cd /go/src/github.com/hashicorp/vault \ && cd /go/src/github.com/hashicorp/vault \
&& go get github.com/mitchellh/gox \ && go get github.com/mitchellh/gox \
&& XC_ARCH="amd64" XC_OS="linux" XC_OSARCH="linux/amd64" make bin \ && XC_ARCH="amd64" XC_OS="linux" XC_OSARCH="linux/amd64" make bin \

View File

@ -6,6 +6,8 @@ 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 WATCHMAN_VERSION v4.7.0
RUN buildDeps=' \ RUN buildDeps=' \
autoconf \ autoconf \
automake \ automake \
@ -16,7 +18,7 @@ RUN buildDeps=' \
&& set -x \ && set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \ && apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& git clone https://github.com/facebook/watchman.git /usr/src/watchman \ && git clone --depth 1 --branch "${WATCHMAN_VERSION}" https://github.com/facebook/watchman.git /usr/src/watchman \
&& cd /usr/src/watchman \ && cd /usr/src/watchman \
&& ./autogen.sh \ && ./autogen.sh \
&& ./configure \ && ./configure \