Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Commit

Permalink
changing iridium to alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertc committed Jul 10, 2018
1 parent 45012dc commit 5bb9765
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 16 deletions.
31 changes: 15 additions & 16 deletions workshop-cicd/code/iridium/Dockerfile
@@ -1,37 +1,36 @@
FROM ubuntu:14.04
FROM gliderlabs/alpine:3.3

ENV PRODUCT iridium

RUN apt-get -y update

RUN apt-get -y install \
git \
wget \
python-dev \
python-virtualenv \
libffi-dev \
libssl-dev
RUN apk add --update \
python \
python-dev \
git \
wget \
libffi-dev \
gcc

WORKDIR /root

ENV PRODUCT iridium

RUN wget https://bootstrap.pypa.io/get-pip.py \
&& python get-pip.py
&& python get-pip.py && pip install virtualenv

WORKDIR interstella

RUN virtualenv ${PRODUCT}

WORKDIR ${PRODUCT}

RUN bin/pip install --upgrade pip && \
bin/pip install requests[security]
#RUN bin/pip install --upgrade pip && \
# bin/pip install requests[security]

COPY ./requirements.txt .

RUN bin/pip install -r requirements.txt

COPY ./$PRODUCT.py .
COPY ./iridium.py .

EXPOSE 5000

ENTRYPOINT ["bin/python", "iridium.py"]

37 changes: 37 additions & 0 deletions workshop-cicd/code/iridium/Dockerfile.ubuntu
@@ -0,0 +1,37 @@
FROM ubuntu:14.04

ENV PRODUCT iridium

RUN apt-get -y update

RUN apt-get -y install \
git \
wget \
python-dev \
python-virtualenv \
libffi-dev \
libssl-dev

WORKDIR /root

RUN wget https://bootstrap.pypa.io/get-pip.py \
&& python get-pip.py

WORKDIR interstella

RUN virtualenv ${PRODUCT}

WORKDIR ${PRODUCT}

RUN bin/pip install --upgrade pip && \
bin/pip install requests[security]

COPY ./requirements.txt .

RUN bin/pip install -r requirements.txt

COPY ./$PRODUCT.py .

EXPOSE 5000

ENTRYPOINT ["bin/python", "iridium.py"]

0 comments on commit 5bb9765

Please sign in to comment.