This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Base Image updated to python:2.7.15-alpine3.8 (#23)
* Base Image is based on python:2.7.15-alpine3.8 * COPY kubectl to Docker Image * clean up old Dockerfile
- Loading branch information
Showing
5 changed files
with
834 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
FROM shrinand/k8s-minion-manager:v0.1 | ||
FROM python:2.7.15-alpine3.8 AS Base | ||
|
||
COPY . / | ||
ENV PYTHONPATH=/ | ||
RUN mv binaries/kubectl-v1.12.3-linux-amd64 /usr/local/bin/kubectl | ||
RUN pip install pipenv==2018.10.13 | ||
WORKDIR /src | ||
COPY Pipfile /src/ | ||
COPY Pipfile.lock /src/ | ||
COPY binaries/kubectl-v1.12.3-linux-amd64 /usr/local/bin/kubectl | ||
|
||
# This will be used as Main Image | ||
FROM Base AS Main | ||
|
||
RUN pipenv install --system --deploy | ||
COPY . /src | ||
ENV PYTHONPATH=/src | ||
RUN chmod u+x minion_manager.py | ||
|
||
|
||
FROM Base AS Dev | ||
|
||
RUN apk add --no-cache build-base openssl-dev libffi-dev | ||
RUN pipenv install --system --deploy --dev | ||
#COPY . /src |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
boto3 = "==1.7.84" | ||
retrying = "==1.3.3" | ||
bunch = "==1.0.1" | ||
Flask = "==0.12" | ||
pytz = "==2016.10" | ||
requests = "==2.13.0" | ||
kubernetes = "==2.0.0" | ||
|
||
[dev-packages] | ||
pytest = "==3.9.3" | ||
mock = "==2.0.0" | ||
moto = "==1.3.6" | ||
|
||
[requires] | ||
python_version = "2.7.15" |
Oops, something went wrong.