This commit is contained in:
Jan Świątek 2023-04-19 23:09:15 +02:00
parent 44bdf21d7d
commit 0805eff1fa
2 changed files with 24 additions and 62 deletions

View File

@ -1,36 +1,10 @@
# FROM ubuntu:latest
# RUN apt update && apt upgrade -y
# RUN apt install -y python3 python3-pip
# RUN pip3 install --upgrade pip
# RUN pip3 install datasets pandas numpy scikit-learn
# ENV HF_HOME="/tmp/huggingface"
# ENV PATH="/root/.local/bin:$PATH"
# WORKDIR /app
# COPY . /app
FROM ubuntu:latest
RUN apt-get update \
&& apt-get install -y git python3 python3-pip curl \
&& curl -O https://bootstrap.pypa.io/get-pip.py \
&& python3 get-pip.py --user \
&& rm get-pip.py \
&& pip install --user kaggle \
&& pip install --user pandas \
&& pip install --user plotly \
&& pip install --user seaborn \
&& pip install --user scikit-learn
RUN apt update && apt upgrade -y
RUN apt install -y python3 python3-pip
RUN pip3 install --upgrade pip
RUN pip3 install datasets pandas numpy scikit-learn
ENV PATH="/root/.local/bin:$PATH"
ENV HF_HOME="/tmp/huggingface"
WORKDIR /app
COPY . /app
#RUN git clone https://git.wmi.amu.edu.pl/s487178/ium_s487178.git /app
#CMD ["python3", "body_performance.py"]

View File

@ -1,40 +1,28 @@
pipeline {
agent {
docker { image 's487185/inzynieria-uczenia-maszynowego:2.0' }
dockerfile true
}
stages {
stage('Test') {
steps {
sh 'cat /etc/issue'
}
}
}
}
// pipeline {
// agent {
// docker { image 's487185/inzynieria-uczenia-maszynowego:1.0' }
// }
// stages {
// stage('Checkout') {
// steps {
// checkout scm
// }
// }
// stage('Copy artifacts') {
// steps {
// copyArtifacts projectName: 'z-s487185-create-dataset', selector: lastSuccessful()
// }
// }
// stage('Docker script') {
// steps {
// sh 'python3 dataset-stats/main.py > dataset-stats.txt'
// }
// }
// stage('Save results') {
// steps {
// archiveArtifacts 'dataset-stats.txt'
// }
// }
// }
// }
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Copy artifacts') {
steps {
copyArtifacts projectName: 'z-s487185-create-dataset', selector: lastSuccessful()
}
}
stage('Docker script') {
steps {
sh 'python3 dataset-stats/main.py > dataset-stats.txt'
}
}
stage('Save results') {
steps {
archiveArtifacts 'dataset-stats.txt'
}
}
}
}