[24.02.20] Finalised dockerfile and removed unused imports
This commit is contained in:
parent
94b035c1dd
commit
e6d158578a
@ -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"]
|
||||
@ -6,7 +6,7 @@ metadata:
|
||||
name: RESOURCE_NAME
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 0
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: RESOURCE_NAME
|
||||
|
||||
@ -89,7 +89,6 @@ try {
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
sh "pip --version"
|
||||
|
||||
executeShellScript("configuration/scripts/deployToKubernetes.sh",
|
||||
env.APPLICATION_NAME)
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys, json, os
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from time import sleep
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import requests, json, sys
|
||||
from currency_converter import CurrencyConverter
|
||||
|
||||
def geminiPublicTicker(type):
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user