Posts by Renan Sacca • 3 points
2 posts
-
0
votes2
answers176
viewsQ: How to create a Docker image using a github project but to download it into the Docker with the clone using ssh key
FROM python:3.6.7 LABEL maintainer="RENAN SACCA" EXPOSE 8000 RUN git clone [email protected]:Renan-Sacca/projeto-contabilidade.git WORKDIR teste-docker RUN pip3 install -r requirements.txt CMD…
-
-1
votes1
answer180
viewsQ: I’m having doubts about how to insert several elements into the database by mysql.
import mysql.connector mysql.connection = mysql.connector.connect(host='localhost', user='root', password='rgs050601', database='testegr') sql = "INSERT INTO pet (id,numero,idade) VALUES %s" pd =…