commit b84e7dcac28ea0edfbc4d057d09b412a9cf995ec Author: Ramón Vásquez Date: Mon Oct 6 11:40:37 2025 -0300 First commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fd80e00 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM debian:latest + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + python3 \ + python3-venv \ + python3-pip \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /app +RUN python3 -m venv /opt/venv + +ENV VIRTUAL_ENV=/opt/venv +ENV PATH="$VIRTUAL_ENV/bin:$PATH" + +COPY requirements.txt . +RUN pip install --upgrade pip \ + && pip install --no-cache-dir -r requirements.txt + +COPY . . + +CMD ["echo", "Y para el Rojo, por favor, un minuto de silencio..."] diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..e0b3275 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent any + + environment { + IMAGE_NAME = 'test-img' + DOCKERHUB_USER = 'ramonvasquezliesa' + DOCKERHUB_REPO = "${DOCKERHUB_USER}/${IMAGE_NAME}" + TAG = 'latest' + } + + stages { + stage('Build Image') { + steps { + script { + docker.build("${DOCKERHUB_REPO}:${TAG}", '-f Dockerfile .') + } + } + } + + stage('Push Image') { + steps { + script { + docker.withRegistry('https://index.docker.io/v1/', 'dockerhub-credentials') { + docker.image("${DOCKERHUB_REPO}:${TAG}").push() + } + } + } + } + } +} diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d2043db --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +copier +invoke +numpy +pandas +psycopg +