-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #245 from fescobar/beta
Adding multiple upgrades
- Loading branch information
Showing
10 changed files
with
61 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
python $ROOT/allure-docker-api/app.py | ||
python${PYTHON_VERSION} $ROOT/allure-docker-api/app.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
ARG ARCH=amd64 | ||
ARG JDK=adoptopenjdk:11-jre-openj9-bionic | ||
ARG BUILD_DATE | ||
ARG BUILD_VERSION=2.21.0-custom | ||
ARG BUILD_VERSION=2.27.0-custom | ||
ARG BUILD_REF=na | ||
ARG ALLURE_RELEASE=2.21.0 | ||
ARG ALLURE_RELEASE=2.27.0 | ||
ARG ALLURE_REPO=https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline | ||
ARG UID=1000 | ||
ARG GID=1000 | ||
ARG PYTHON_VERSION=3.8 | ||
|
||
###### | ||
|
||
FROM python:3.6-alpine AS dev_stage | ||
FROM python:${PYTHON_VERSION}-alpine AS dev_stage | ||
RUN apk update | ||
RUN apk add build-base | ||
RUN pip install -U pylint | ||
RUN pip install -Iv setuptools==47.1.1 wheel==0.34.2 waitress==1.4.4 && \ | ||
pip install -Iv Flask==1.1.2 Flask-JWT-Extended==3.24.1 flask-swagger-ui==3.36.0 requests==2.23.0 | ||
RUN pip install --upgrade pip setuptools wheel waitress && \ | ||
pip install -Iv Flask==3.0.2 Flask-JWT-Extended==4.6.0 flask-swagger-ui==4.11.1 requests==2.31.0 | ||
|
||
ENV ROOT_DIR=/code | ||
RUN mkdir -p $ROOT_DIR | ||
|
@@ -34,6 +35,7 @@ ARG ALLURE_RELEASE | |
ARG ALLURE_REPO | ||
ARG UID | ||
ARG GID | ||
ARG PYTHON_VERSION=3.8 | ||
|
||
LABEL org.label-schema.build-date=${BUILD_DATE} \ | ||
org.label-schema.docker.dockerfile="docker-custom/Dockerfile.bionic-custom" \ | ||
|
@@ -47,18 +49,20 @@ LABEL org.label-schema.build-date=${BUILD_DATE} \ | |
org.label-schema.vcs-url="https://github.com/fescobar/allure-docker-service" \ | ||
org.label-schema.arch=${ARCH} \ | ||
authors="Frank Escobar <[email protected]>, Raymond Mouthaan <[email protected]>" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y software-properties-common && \ | ||
add-apt-repository ppa:deadsnakes/ppa && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
tzdata \ | ||
nano \ | ||
python3 \ | ||
python${PYTHON_VERSION} \ | ||
python3-pip \ | ||
unzip && \ | ||
ln -s `which python3` /usr/bin/python && \ | ||
pip3 install --upgrade pip && \ | ||
pip install -Iv setuptools==47.1.1 wheel==0.34.2 waitress==1.4.4 && \ | ||
pip install -Iv Flask==1.1.2 Flask-JWT-Extended==3.25.0 flask-swagger-ui==3.36.0 requests==2.23.0 && \ | ||
python${PYTHON_VERSION} -m pip install --upgrade pip setuptools wheel waitress && \ | ||
python${PYTHON_VERSION} -m pip install -v Flask==3.0.2 Flask-JWT-Extended==4.6.0 flask-swagger-ui==4.11.1 requests==2.31.0 && \ | ||
curl ${ALLURE_REPO}/${ALLURE_RELEASE}/allure-commandline-${ALLURE_RELEASE}.zip -L -o /tmp/allure-commandline.zip && \ | ||
unzip -q /tmp/allure-commandline.zip -d / && \ | ||
apt-get remove -y unzip && \ | ||
|
@@ -70,6 +74,7 @@ RUN apt-get update && \ | |
RUN groupadd --gid ${GID} allure \ | ||
&& useradd --uid ${UID} --gid allure --shell /bin/bash --create-home allure | ||
|
||
ENV PYTHON_VERSION=${PYTHON_VERSION} | ||
ENV ROOT=/app | ||
ENV ALLURE_HOME=/allure-$ALLURE_RELEASE | ||
ENV ALLURE_HOME_SL=/allure | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters