Skip to content

Commit

Permalink
better git clones
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Dec 28, 2016
1 parent 996f7a6 commit 3e0fc79
Show file tree
Hide file tree
Showing 22 changed files with 41 additions and 33 deletions.
2 changes: 1 addition & 1 deletion camlistore/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN buildDeps=' \
&& apk --no-cache add $buildDeps \
&& mkdir -p /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 \
&& go run make.go \
&& cp -r ./bin/* /usr/local/bin/ \
Expand Down
2 changes: 1 addition & 1 deletion cathode/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y \
--no-install-recommends \
&& 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
RUN qmake \
&& make
Expand Down
2 changes: 1 addition & 1 deletion consul/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN buildDeps=' \
&& go get github.com/Soulou/curl-unix-socket \
&& mv /go/bin/curl-unix-socket /usr/bin/ \
&& 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 \
&& XC_ARCH="amd64" XC_OS="linux" make all \
&& mv bin/consul /usr/bin/ \
Expand Down
2 changes: 1 addition & 1 deletion cpuminer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN set -x \
curl-dev \
git \
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 \
&& ./autogen.sh \
Expand Down
2 changes: 1 addition & 1 deletion fontpatcher/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN buildDeps=' \
set -x \
&& apt-get update \
&& 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 \
&& mv fontpatcher/fontpatcher /usr/bin/ \
Expand Down
2 changes: 1 addition & 1 deletion gitiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN buildDeps=' \
&& ant \
&& ln -snfv ${PWD}/bin/buck /usr/bin/buck \
) \
&& git clone --depth 1 --recurse-submodules https://gerrit.googlesource.com/gitiles /gitiles \
&& git clone --depth 1 --recurse-submodules https://gerrit.googlesource.com/gitiles /gitiles \
&& ( \
cd /gitiles \
&& touch .nobuckcheck \
Expand Down
4 changes: 3 additions & 1 deletion golang-softhsm2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ RUN apt-get update && apt-get install -y \
sqlite3 \
&& rm -rf /var/lib/apt/lists/*

ENV SOFTHSM_VERSION 2.2.0

RUN buildDeps=' \
autoconf \
automake \
Expand All @@ -15,7 +17,7 @@ RUN buildDeps=' \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& 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 \
&& sh autogen.sh \
&& ./configure --with-objectstore-backend-db \
Expand Down
2 changes: 1 addition & 1 deletion john/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN buildDeps=' \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& 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 \
&& ./configure || cat config.log \
&& make \
Expand Down
2 changes: 1 addition & 1 deletion kernel-builder/install_kernel
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ install_kernel(){
if [[ -d $aufsdir ]]; then
rm -rf $aufsdir
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

if [[ "$OPT" == "grsec" ]]; then
Expand Down
26 changes: 15 additions & 11 deletions latest-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ get_latest() {
local tag=$(echo $resp | jq --raw-output .[0].name)
fi

if [[ "$name" == "null" ]]; then
if [[ "$name" == "null" ]] || [[ "$name" == "" ]]; then
name="-"
fi

local dir=${repo#*/}

if [[ "$dir" == "CouchPotatoServer" ]]; then
dir=couchpotato
dir="couchpotato"
elif [[ "$dir" == "SoftHSMv2" ]]; then
dir="golang-softhsm2"
fi

local current=$(cat "${dir}/Dockerfile" | grep -m 1 VERSION | awk '{print $(NF)}')
Expand All @@ -45,25 +47,27 @@ get_latest() {
}

projects=(
apache/zookeeper
atom/atom
camlistore/camlistore
hashicorp/consul
CouchPotato/CouchPotatoServer
pooler/cpuminer
curl/curl
fcambus/telize
hashicorp/consul
hashicorp/vault
opendnssec/SoftHSMv2
irssi/irssi
zyedidia/micro
JonnyWong16/plexpy
microsoft/vscode
mitchellh/vagrant
pooler/cpuminer
powershell/powershell
reverse-shell/routersploit
ricochet-im/ricochet
reverse-shell/routersploit
tarsnap/tarsnap
fcambus/telize
mitchellh/vagrant
hashicorp/vault
microsoft/vscode
facebook/watchman
znc/znc
zyedidia/micro
apache/zookeeper
)

main() {
Expand Down
2 changes: 1 addition & 1 deletion masscan/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN buildDeps=' \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& 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 \
&& make \
&& make install \
Expand Down
2 changes: 1 addition & 1 deletion mdp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \
--no-install-recommends \
&& 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

Expand Down
2 changes: 1 addition & 1 deletion micro/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN buildDeps=' \
' \
set -x \
&& 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 \
&& mkdir -p /go/bin \
&& make install \
Expand Down
4 changes: 2 additions & 2 deletions mutt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ RUN mkdir -p $HOME/.mutt/cache/headers $HOME/.mutt/cache/bodies \
&& touch $HOME/.mutt/certificates

# vim settings
RUN git clone https://github.com/jessfraz/.vim.git $HOME/.vim \
&& git clone https://github.com/altercation/vim-colors-solarized $HOME/.vim/bundle/vim-colors-solarized \
RUN git clone --depth 1 https://github.com/jessfraz/.vim.git $HOME/.vim \
&& git clone --depth 1 https://github.com/altercation/vim-colors-solarized $HOME/.vim/bundle/vim-colors-solarized \
&& cp $HOME/.vim/vimrc $HOME/.vimrc

ENV LANG C.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion node-sonos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mhart/alpine-node:5
FROM node:alpine

RUN apk add --no-cache \
build-base \
Expand Down
2 changes: 1 addition & 1 deletion plexpy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN set -x \
&& apk add --no-cache --virtual .build-deps \
git \
&& 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

# Volume for Plexpy data.
Expand Down
2 changes: 1 addition & 1 deletion routersploit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y \
python-bs4 \
--no-install-recommends \
&& 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 \
git

Expand Down
2 changes: 1 addition & 1 deletion ssr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ RUN cd /usr/lib/i386-linux-gnu && \
# --group ssr

# 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
#RUN echo "ssr ALL = NOPASSWD: /src/simple-build-and-install" >> /etc/sudoers
Expand Down
2 changes: 1 addition & 1 deletion telize/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz -o /usr/share/GeoIP/GeoIPASNum.dat.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 \
&& cp timezone*.conf /etc/nginx/ \
&& rm -rf /usr/src/telize \
Expand Down
2 changes: 1 addition & 1 deletion termboy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RUN apt-get update && apt-get install -y \
--no-install-recommends \
&& 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 \
&& make \
&& make install || true
Expand Down
2 changes: 1 addition & 1 deletion vault/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN buildDeps=' \
set -x \
&& apk --no-cache add --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
&& 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 \
&& go get github.com/mitchellh/gox \
&& XC_ARCH="amd64" XC_OS="linux" XC_OSARCH="linux/amd64" make bin \
Expand Down
4 changes: 3 additions & 1 deletion watchman/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ RUN apt-get update && apt-get install -y \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

ENV WATCHMAN_VERSION v4.7.0

RUN buildDeps=' \
autoconf \
automake \
Expand All @@ -16,7 +18,7 @@ RUN buildDeps=' \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& 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 \
&& ./autogen.sh \
&& ./configure \
Expand Down

0 comments on commit 3e0fc79

Please sign in to comment.