From fc008c6bd3d59e16511340a6641a91f22afcde7f Mon Sep 17 00:00:00 2001 From: zgolebiewska Date: Sun, 26 May 2024 13:59:12 +0200 Subject: [PATCH] Revert "Update Jenkinsfile and Dockerfile" This reverts commit 7afd9db3417743888f922881df8861f9c1086591. --- Dockerfile | 13 ++++--------- Jenkinsfile | 45 --------------------------------------------- requirements.txt | 3 --- 3 files changed, 4 insertions(+), 57 deletions(-) delete mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile index 828f0b6..876ae88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,14 @@ FROM ubuntu:latest -RUN apt-get update && apt-get install -y \ - python3-pip \ - unzip \ - coreutils +RUN apt-get update && apt-get install -y python3-pip unzip coreutils RUN pip install --user kaggle pandas scikit-learn tensorflow WORKDIR /app COPY ./data_processing.sh ./ -COPY ./model.py ./ COPY ./OrangeQualityData.csv ./ -COPY ./requirements.txt ./ +COPY ./orange_quality_model_tf.h5 ./ +COPY ./predictions_tf.json ./ -RUN pip install --user -r requirements.txt - -CMD ["python3", "model.py"] +CMD ["python3", "data_processing.sh"] diff --git a/Jenkinsfile b/Jenkinsfile index 9297eff..5c93c17 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,16 +8,6 @@ pipeline { defaultValue: '10000', name: 'CUTOFF', description: 'Liczba wierszy do obcięcia ze zbioru danych') - string( - defaultValue: '', - name: 'TRAINING_PARAMS', - description: 'Parametry trenowania' - ) - } - - environment { - DATASET_PROJECT = 's123456-create-dataset' - DATA_DIR = 'data' } stages { @@ -26,17 +16,6 @@ pipeline { checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s464906/ium_464906']]]) } } - stage('Copy Dataset') { - steps { - script { - copyArtifacts( - projectName: "${DATASET_PROJECT}", - selector: lastSuccessful(), - target: "${env.DATA_DIR}" - ) - } - } - } stage('Set execute permission') { steps { script { @@ -56,29 +35,5 @@ pipeline { } } } - - stage('Install Dependencies') { - steps { - sh 'pip install -r requirements.txt' - } - } - - stage('Train Model') { - steps { - sh "python model.py ${params.TRAINING_PARAMS}" - } - } - - stage('Archive Model') { - steps { - archiveArtifacts artifacts: 'orange_quality_model_tf.h5', allowEmptyArchive: true - archiveArtifacts artifacts: 'predictions_tf.json', allowEmptyArchive: true - } - } - } - post { - always { - cleanWs() - } } } diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index b110fdf..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -tensorflow -pandas -scikit-learn \ No newline at end of file