Skip to content
Snippets Groups Projects
Commit 85457a2f authored by Alex ubuntu vm's avatar Alex ubuntu vm
Browse files

l2sm-operator: cleaned python image

Following the python guidelines of usage, the operator's Dockerfile has been updated, to use a requirements.txt outside the dockerfile.

Identation fixes
parent 368600d1
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
#!/bin/bash #!/bin/bash
set -e
# Set environment variables # Set environment variables
export VERSION="2.2" export VERSION="2.2"
......
FROM python:3.11.6 FROM python:3.11.6
RUN pip install kopf kubernetes PyMySQL cryptography requests
COPY ./src/operator/l2sm-operator.py /l2sm-operator.py WORKDIR /usr/src/app
CMD kopf run --standalone --all-namespaces /l2sm-operator.py
COPY ./src/operator/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY ./src/operator/l2sm-operator.py .
CMD kopf run --liveness=http://0.0.0.0:8080/healthz --standalone --all-namespaces ./l2sm-operator.py
kopf==1.37.0
kubernetes==28.1.0
PyMySQL==1.1.0
cryptography==3.4.8
requests==2.25.1
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment