switch base to alpine edge

This commit is contained in:
Wonderfall 2016-06-03 18:59:45 +02:00
parent f5e4bbb502
commit f631fecbcb
12 changed files with 58 additions and 67 deletions

View File

@ -75,6 +75,7 @@ RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/ap
--with-file-aio \ --with-file-aio \
--with-threads \ --with-threads \
--with-pcre-jit \ --with-pcre-jit \
--with-ipv6 \
--without-http_ssi_module \ --without-http_ssi_module \
--without-http_scgi_module \ --without-http_scgi_module \
--without-http_uwsgi_module \ --without-http_uwsgi_module \

View File

@ -1,4 +1,4 @@
FROM alpine:3.3 FROM alpine:edge
MAINTAINER Wonderfall <wonderfall@schrodinger.io> MAINTAINER Wonderfall <wonderfall@schrodinger.io>
ARG MPFR_VERSION=3.1.4 ARG MPFR_VERSION=3.1.4
@ -36,8 +36,7 @@ RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/ap
openssh-client \ openssh-client \
tini@commuedge \ tini@commuedge \
su-exec \ su-exec \
&& cd /tmp \ && cd /tmp && wget -q http://www.mpfr.org/mpfr-current/mpfr-${MPFR_VERSION}.tar.gz \
&& wget -q http://www.mpfr.org/mpfr-current/mpfr-${MPFR_VERSION}.tar.gz \
&& echo "Verifying authenticity of mpfr-${MPFR_VERSION}.tar.gz..." \ && echo "Verifying authenticity of mpfr-${MPFR_VERSION}.tar.gz..." \
&& wget -q http://www.mpfr.org/mpfr-current/mpfr-${MPFR_VERSION}.tar.gz.asc \ && wget -q http://www.mpfr.org/mpfr-current/mpfr-${MPFR_VERSION}.tar.gz.asc \
&& gpg --recv-keys 98C3739D \ && gpg --recv-keys 98C3739D \
@ -48,8 +47,7 @@ RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/ap
&& echo "All seems good, now unpacking mpfr-${MPFR_VERSION}.tar.gz..." \ && echo "All seems good, now unpacking mpfr-${MPFR_VERSION}.tar.gz..." \
&& tar xzf mpfr-${MPFR_VERSION}.tar.gz && cd mpfr-${MPFR_VERSION} \ && tar xzf mpfr-${MPFR_VERSION}.tar.gz && cd mpfr-${MPFR_VERSION} \
&& ./configure && make && make install \ && ./configure && make && make install \
&& cd /tmp \ && cd /tmp && wget -q ftp://ftp.gnu.org/gnu/mpc/mpc-${MPC_VERSION}.tar.gz \
&& wget -q ftp://ftp.gnu.org/gnu/mpc/mpc-${MPC_VERSION}.tar.gz \
&& echo "Verifying both integrity and authenticity of mpc-${MPC_VERSION}.tar.gz..." \ && echo "Verifying both integrity and authenticity of mpc-${MPC_VERSION}.tar.gz..." \
&& CHECKSUM=$(sha1sum mpc-${MPC_VERSION}.tar.gz | awk '{print $1}') \ && CHECKSUM=$(sha1sum mpc-${MPC_VERSION}.tar.gz | awk '{print $1}') \
&& if [ "${CHECKSUM}" != "${SHA1_MPC}" ]; then echo "Warning! Checksum does not match!" && exit 1; fi \ && if [ "${CHECKSUM}" != "${SHA1_MPC}" ]; then echo "Warning! Checksum does not match!" && exit 1; fi \

View File

@ -1,12 +1,13 @@
#!/bin/sh #!/bin/sh
cd /cowrie cd /cowrie
sed -i "s/hostname = svr04/hostname = $HOSTNAME/g" cowrie.cfg
sed -i "s/#download_limit_size = 10485760/download_limit_size = $DL_LIMIT/g" cowrie.cfg
sed -i "s/#internet_facing_ip = 9.9.9.9/internet_facing_ip = $FACING_IP/g" cowrie.cfg
if [ "$JSON_LOG" == "False" ]; then sed -i -e "s/hostname = svr04/hostname = ${HOSTNAME}/g" \
sed -i "s/\[output_jsonlog\]/#\[output_jsonlog\]/g" cowrie.cfg -e "s/#download_limit_size = 10485760/download_limit_size = ${DL_LIMIT}/g" \
sed -i "s|logfile = log/cowrie.json|#logfile = log/cowrie.json|g" cowrie.cfg -e "s/#internet_facing_ip = 9.9.9.9/internet_facing_ip = ${FACING_IP}/g" cowrie.cfg
if [ "${JSON_LOG}" == "False" ]; then
sed -i -e "s/\[output_jsonlog\]/#\[output_jsonlog\]/g" \
-e "s|logfile = log/cowrie.json|#logfile = log/cowrie.json|g" cowrie.cfg
fi fi
rm twistd.pid rm twistd.pid

View File

@ -1,4 +1,4 @@
FROM alpine:3.3 FROM alpine:edge
MAINTAINER Wonderfall <wonderfall@mondedie.fr> MAINTAINER Wonderfall <wonderfall@mondedie.fr>
ARG ISSO_VER=0.10.4 ARG ISSO_VER=0.10.4
@ -6,26 +6,24 @@ ARG ISSO_VER=0.10.4
ENV GID=1000 UID=1000 ENV GID=1000 UID=1000
RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \ RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& apk -U add \ && BUILD_DEPS=" \
python \
python-dev \ python-dev \
libffi-dev \ libffi-dev \
py-setuptools \
py-pip \ py-pip \
build-base" \
&& apk -U add \
${BUILD_DEPS} \
python \
py-setuptools \
sqlite \ sqlite \
ca-certificates \ ca-certificates \
build-base \
su-exec \ su-exec \
tini@commuedge \ tini@commuedge \
&& pip install --no-cache cffi \ && pip install --no-cache cffi \
&& pip install --no-cache misaka==1.0.2 \ && pip install --no-cache misaka==1.0.2 \
&& wget https://github.com/posativ/isso/releases/download/$ISSO_VER/isso-$ISSO_VER.tar.gz -P /tmp \ && wget https://github.com/posativ/isso/releases/download/$ISSO_VER/isso-$ISSO_VER.tar.gz -P /tmp \
&& pip install /tmp/isso-$ISSO_VER.tar.gz \ && pip install /tmp/isso-$ISSO_VER.tar.gz \
&& apk del \ && apk del ${BUILD_DEPS} \
python-dev \
libffi-dev \
py-pip \
build-base \
&& rm -rf /var/cache/apk/* /tmp/* && rm -rf /var/cache/apk/* /tmp/*
COPY run.sh /usr/local/bin/run.sh COPY run.sh /usr/local/bin/run.sh

View File

@ -1,4 +1,4 @@
FROM alpine:3.3 FROM alpine:edge
MAINTAINER Wonderfall <wonderfall@mondedie.fr> MAINTAINER Wonderfall <wonderfall@mondedie.fr>
ARG NODE_VER=4.4.5 ARG NODE_VER=4.4.5
@ -17,6 +17,7 @@ RUN NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
grep \ grep \
binutils \ binutils \
binutils-gold \ binutils-gold \
openssl \
ca-certificates" \ ca-certificates" \
&& apk -U add \ && apk -U add \
$BUILD_DEPS \ $BUILD_DEPS \

View File

@ -1,4 +1,4 @@
FROM alpine:3.3 FROM alpine:edge
MAINTAINER Wonderfall <wonderfall@schrodinger.io> MAINTAINER Wonderfall <wonderfall@schrodinger.io>
ARG GPG_rainloop="3B79 7ECE 694F 3B7B 70F3 11A4 ED7C 49D9 87DA 4591" ARG GPG_rainloop="3B79 7ECE 694F 3B7B 70F3 11A4 ED7C 49D9 87DA 4591"

View File

@ -1,4 +1,4 @@
FROM alpine:3.3 FROM alpine:edge
MAINTAINER xataz <https://github.com/xataz/dockerfiles> MAINTAINER xataz <https://github.com/xataz/dockerfiles>
MAINTAINER Wonderfall <wonderfall@schrodinger.io> MAINTAINER Wonderfall <wonderfall@schrodinger.io>
@ -15,7 +15,6 @@ ENV UID=991 \
RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \ RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ && echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& echo "@community http://nl.alpinelinux.org/alpine/v3.3/community/" >> /etc/apk/repositories \
&& NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \ && NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
&& BUILD_DEPS=" \ && BUILD_DEPS=" \
build-base \ build-base \
@ -45,7 +44,7 @@ RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/ap
supervisor \ supervisor \
geoip \ geoip \
tini@commuedge \ tini@commuedge \
openjdk8-jre@community \ openjdk8-jre@commuedge \
&& cd /tmp \ && cd /tmp \
&& wget -q http://downloads.sourceforge.net/mktorrent/mktorrent-1.0.tar.gz \ && wget -q http://downloads.sourceforge.net/mktorrent/mktorrent-1.0.tar.gz \
&& tar xzvf mktorrent-1.0.tar.gz \ && tar xzvf mktorrent-1.0.tar.gz \

View File

@ -1,49 +1,41 @@
FROM alpine:3.3 FROM alpine:edge
MAINTAINER Wonderfall <wonderfall@mondedie.fr> MAINTAINER Wonderfall <wonderfall@schrodinger.io>
ENV BASE_URL=False IMAGE_PROXY=False ENV BASE_URL=False IMAGE_PROXY=False
RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \ RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& apk -U add \ && BUILD_DEPS=" \
build-base \ build-base \
python \
python-dev \ python-dev \
py-pip \ py-pip \
libxml2 \
libxml2-dev \
libxslt \
libxslt-dev \
libffi-dev \ libffi-dev \
openssl \ libxslt-dev \
libxml2-dev \
openssl-dev \ openssl-dev \
ca-certificates \
tar \ tar \
ca-certificates" \
&& apk -U add \
${BUILD_DEPS} \
python \
libxml2 \
libxslt \
openssl \
tini@commuedge \ tini@commuedge \
&& pip install --no-cache -r https://raw.githubusercontent.com/asciimoo/searx/master/requirements.txt \ && pip install --no-cache -r https://raw.githubusercontent.com/asciimoo/searx/master/requirements.txt \
&& apk del \ && mkdir /usr/local/searx && cd /usr/local/searx \
build-base \ && wget -qO- https://github.com/asciimoo/searx/archive/master.tar.gz | tar xz --strip 1 \
python-dev \ && sed -i "s/127.0.0.1/0.0.0.0/g" searx/settings.yml \
py-pip \ && adduser -D -h /usr/local/searx -s /bin/sh searx searx \
libffi-dev \ && chown -R searx:searx /usr/local/searx \
libxslt-dev \ && apk del ${BUILD_DEPS} \
libxml2-dev \
openssl-dev \
ca-certificates \
&& rm -f /var/cache/apk/* && rm -f /var/cache/apk/*
RUN adduser -D -h /usr/local/searx -s /bin/sh searx searx
COPY run.sh /usr/local/bin/run.sh COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh RUN chmod +x /usr/local/bin/run.sh
USER searx USER searx
WORKDIR /usr/local/searx
RUN wget -qO- https://github.com/asciimoo/searx/archive/master.tar.gz | tar xz --strip 1 \
&& sed -i "s/127.0.0.1/0.0.0.0/g" searx/settings.yml
EXPOSE 8888 EXPOSE 8888
LABEL description "A powerful meta-search engine"
CMD ["/sbin/tini","--","run.sh"] CMD ["/sbin/tini","--","run.sh"]

View File

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
sed -i "s|base_url : False|base_url : $BASE_URL|g" searx/settings.yml sed -i -e "s|base_url : False|base_url : ${BASE_URL}|g" \
sed -i "s/image_proxy : False/image_proxy : $IMAGE_PROXY/g" searx/settings.yml -e "s/image_proxy : False/image_proxy : ${IMAGE_PROXY}/g" \
sed -i "s/ultrasecretkey/`openssl rand -hex 16`/g" searx/settings.yml -e "s/ultrasecretkey/$(openssl rand -hex 16)/g" \
python searx/webapp.py /usr/local/searx/searx/settings.yml
python /usr/local/searx/searx/webapp.py

View File

@ -1,17 +1,16 @@
FROM alpine:3.3 FROM alpine:edge
MAINTAINER Wonderfall <wonderfall@schrodinger.io> MAINTAINER Wonderfall <wonderfall@schrodinger.io>
ARG VERSION=6.0 ARG VERSION=6.0
ENV GID=991 UID=991 ENV GID=991 UID=991
WORKDIR /subsonic WORKDIR /subsonic
RUN echo "@community http://dl-4.alpinelinux.org/alpine/v3.3/community/" >> /etc/apk/repositories \ RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& apk -U add \ && apk -U add \
ffmpeg \ ffmpeg \
openjdk8-jre@community \ openjdk8-jre@commuedge \
tini@commuedge \ tini@commuedge \
&& wget -qO- http://subsonic.org/download/subsonic-$VERSION-standalone.tar.gz | tar zxf - \ && wget -qO- http://subsonic.org/download/subsonic-${VERSION}-standalone.tar.gz | tar zxf - \
&& rm -f /var/cache/apk/* && rm -f /var/cache/apk/*
COPY run.sh /usr/local/bin/run.sh COPY run.sh /usr/local/bin/run.sh

View File

@ -1,4 +1,4 @@
FROM alpine:3.3 FROM alpine:edge
ARG TOR_VERSION=0.2.7.6 ARG TOR_VERSION=0.2.7.6
ARG TOR_USER_ID=45553 ARG TOR_USER_ID=45553

View File

@ -1,14 +1,13 @@
FROM alpine:3.3 FROM alpine:edge
MAINTAINER Wonderfall <wonderfall@schrodinger.io> MAINTAINER Wonderfall <wonderfall@schrodinger.io>
ENV GID=991 UID=991 ENV GID=991 UID=991
RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \ RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ && echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& echo "@edge http://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
&& apk -U add \ && apk -U add \
nginx \ nginx \
libwebp@edge \ libwebp \
php7-fpm@testing \ php7-fpm@testing \
php7-gd@testing \ php7-gd@testing \
php7-mcrypt@testing \ php7-mcrypt@testing \
@ -16,12 +15,13 @@ RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/ap
php7-zlib@testing \ php7-zlib@testing \
supervisor \ supervisor \
tini@commuedge \ tini@commuedge \
openssl \
ca-certificates \ ca-certificates \
tar \ tar \
&& mkdir zerobin && cd zerobin \ && mkdir zerobin && cd zerobin \
&& wget -qO- https://github.com/elrido/ZeroBin/archive/master.tar.gz | tar xz --strip 1 \ && wget -qO- https://github.com/elrido/ZeroBin/archive/master.tar.gz | tar xz --strip 1 \
&& mv cfg/conf.ini.sample cfg/conf.ini \ && mv cfg/conf.ini.sample cfg/conf.ini \
&& apk del tar ca-certificates \ && apk del tar openssl ca-certificates \
&& rm -f /var/cache/apk/* && rm -f /var/cache/apk/*
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf