[24.02.20] Finalised dockerfile and removed unused imports

This commit is contained in:
andrewso 2020-02-24 08:16:36 +00:00
parent 94b035c1dd
commit e6d158578a
5 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,9 @@
FROM python:3.7-alpine
MAINTAINER Andrew Sotheran <cryptosky.user@gmail.com>
RUN apk update && \
apk add py-pip
apk add py-pip libc-dev gcc
RUN pip install utils pycryptodome && \
pip install python-env coinbase
COPY /* /home/price-collector/
EXPOSE 9090
CMD ["python", "src/main.py"]

View File

@ -6,7 +6,7 @@ metadata:
name: RESOURCE_NAME
namespace: default
spec:
replicas: 0
replicas: 1
selector:
matchLabels:
app: RESOURCE_NAME

View File

@ -89,7 +89,6 @@ try {
}
stage('Deploy') {
sh "pip --version"
executeShellScript("configuration/scripts/deployToKubernetes.sh",
env.APPLICATION_NAME)

View File

@ -1,6 +1,5 @@
#!/usr/bin/env python
import sys, json, os
from datetime import datetime, timedelta
from time import sleep

View File

@ -1,7 +1,6 @@
#!/usr/bin/env python
import requests, json, sys
from currency_converter import CurrencyConverter
def geminiPublicTicker(type):