[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
|
FROM python:3.7-alpine
|
||||||
MAINTAINER Andrew Sotheran <cryptosky.user@gmail.com>
|
MAINTAINER Andrew Sotheran <cryptosky.user@gmail.com>
|
||||||
RUN apk update && \
|
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/
|
COPY /* /home/price-collector/
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
CMD ["python", "src/main.py"]
|
CMD ["python", "src/main.py"]
|
||||||
@ -6,7 +6,7 @@ metadata:
|
|||||||
name: RESOURCE_NAME
|
name: RESOURCE_NAME
|
||||||
namespace: default
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
replicas: 0
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: RESOURCE_NAME
|
app: RESOURCE_NAME
|
||||||
|
|||||||
@ -89,7 +89,6 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
sh "pip --version"
|
|
||||||
|
|
||||||
executeShellScript("configuration/scripts/deployToKubernetes.sh",
|
executeShellScript("configuration/scripts/deployToKubernetes.sh",
|
||||||
env.APPLICATION_NAME)
|
env.APPLICATION_NAME)
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import sys, json, os
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import requests, json, sys
|
import requests, json, sys
|
||||||
from currency_converter import CurrencyConverter
|
|
||||||
|
|
||||||
def geminiPublicTicker(type):
|
def geminiPublicTicker(type):
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user