mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 03:21:28 +01:00
better git clones
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
996f7a6367
commit
3e0fc7968f
|
@ -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/ \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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/ \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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/ \
|
||||
|
|
|
@ -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 \
|
||||
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)}')
|
||||
|
@ -45,25 +47,27 @@ get_latest() {
|
|||
}
|
||||
|
||||
projects=(
|
||||
apache/zookeeper
|
||||
atom/atom
|
||||
camlistore/camlistore
|
||||
CouchPotato/CouchPotatoServer
|
||||
curl/curl
|
||||
fcambus/telize
|
||||
hashicorp/consul
|
||||
hashicorp/vault
|
||||
irssi/irssi
|
||||
JonnyWong16/plexpy
|
||||
microsoft/vscode
|
||||
mitchellh/vagrant
|
||||
CouchPotato/CouchPotatoServer
|
||||
pooler/cpuminer
|
||||
powershell/powershell
|
||||
reverse-shell/routersploit
|
||||
ricochet-im/ricochet
|
||||
tarsnap/tarsnap
|
||||
znc/znc
|
||||
curl/curl
|
||||
opendnssec/SoftHSMv2
|
||||
irssi/irssi
|
||||
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() {
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM mhart/alpine-node:5
|
||||
FROM node:alpine
|
||||
|
||||
RUN apk add --no-cache \
|
||||
build-base \
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue
Block a user