Commit dd1a4146 authored by Xavier Barbosa's avatar Xavier Barbosa

fix latest docker stuff

parent 19145853
Pipeline #514 passed with stages
---
stages:
- build
- test
Prepare container:
stage: build
script:
- rocker build .
# - docker build -t errorist/aiodisque:latest .
- docker build -t errorist/aiodisque:latest .
tags:
- docker-build
......
FROM errorist/py:3.5
FROM python:3.5
MAINTAINER Xavier Barbosa <clint.northwood@gmail.com>
ENV DISQUE_PORT 7777
ENV DISQUE_PORT 7711
ENV DISQUE_VERSION 1.0-rc1
RUN mkdir -p /usr/local/bin
ADD dockerfiles/disque /usr/local/bin/disque
ADD dockerfiles/disque-server /usr/local/bin/disque-server
ADD dockerfiles/disque.conf /etc/disque.conf
RUN apt-get -y update \
&& apt-get -y install build-essential curl tar \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl -LO https://github.com/antirez/disque/archive/${DISQUE_VERSION}.tar.gz
RUN tar zxvf ${DISQUE_VERSION}.tar.gz
RUN cd disque-${DISQUE_VERSION} \
&& make \
&& mv src/disque /usr/local/bin/ \
&& mv src/disque-server /usr/local/bin/disque-server \
&& mv disque.conf /etc/disque.conf \
&& rm -rf disque-${DISQUE_VERSION}
RUN chmod +x /usr/local/bin/disque
RUN chmod +x /usr/local/bin/disque-server
RUN python -m pip install hiredis pytest pytest-cov pytest-flake8
RUN apk add --no-cache gcc python3-dev
RUN python -m pip install hiredis
EXPOSE $DISQUE_PORT
CMD ["/usr/local/bin/disque-server", "/etc/disque.conf", "--port", "$DISQUE_PORT"]
FROM ubuntu:latest
MAINTAINER Xavier Barbosa <clint.northwood@gmail.com>
RUN apt-get -y update && \
apt-get -y install build-essential curl tar
MOUNT .:/app
RUN curl -LO https://github.com/antirez/disque/archive/1.0-rc1.tar.gz
RUN tar zxvf 1.0-rc1.tar.gz
RUN cd disque-1.0-rc1 && make && \
mv src/disque /app/ && \
mv src/disque-server /app/disque-server && \
mv disque.conf /app/disque.conf
FROM errorist/py:3.5
MAINTAINER Xavier Barbosa <clint.northwood@gmail.com>
ENV DISQUE_PORT 7711
RUN mkdir -p /usr/local/bin
ADD disque /usr/local/bin/disque
ADD disque-server /usr/local/bin/disque-server
ADD disque.conf /etc/disque.conf
RUN chmod +x /usr/local/bin/disque
RUN chmod +x /usr/local/bin/disque-server
RUN apk add --no-cache gcc python3-dev
RUN python -m pip install hiredis
MOUNT /app
TAG errorist/aiodisque:latest
CMD ["/usr/local/bin/disque-server", "/etc/disque.conf", "--port", "$DISQUE_PORT"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment