Fix
This commit is contained in:
parent
282ca2569f
commit
e08cb5d6fe
24
Dockerfile
24
Dockerfile
@ -1,28 +1,22 @@
|
||||
FROM jenkins/jenkins:2.332.1-jdk11
|
||||
USER root
|
||||
RUN apt-get update && apt-get install -y lsb-release
|
||||
RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \
|
||||
https://download.docker.com/linux/debian/gpg
|
||||
RUN echo "deb [arch=$(dpkg --print-architecture) \
|
||||
signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \
|
||||
https://download.docker.com/linux/debian \
|
||||
$(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
|
||||
RUN apt-get update && apt-get install -y docker-ce-cli
|
||||
USER jenkins
|
||||
RUN jenkins-plugin-cli --plugins "blueocean:1.25.3 docker-workflow:1.28"
|
||||
|
||||
FROM python:3.7
|
||||
|
||||
WORKDIR /
|
||||
|
||||
RUN pip install kaggle
|
||||
|
||||
RUN pip install pandas
|
||||
|
||||
RUN pip install sklearn
|
||||
|
||||
COPY KaggleV2-May-2016.csv ./
|
||||
|
||||
COPY create_data.py ./
|
||||
|
||||
COPY stats_data.py ./
|
||||
|
||||
# CMD ["python", "./create_data.py"]
|
||||
CMD ["python", "./create_data.py"]
|
||||
|
||||
# CMD ["python", "./stats_data.py"]
|
||||
CMD ["python", "./stats_data.py"]
|
||||
|
||||
# RUN kaggle datasets download -d joniarroba/noshowappointments
|
||||
|
||||
|
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -1,7 +1,5 @@
|
||||
pipeline {
|
||||
agent {
|
||||
docker { image 'ium_478855' }
|
||||
}
|
||||
agent any
|
||||
parameters{
|
||||
password(
|
||||
defaultValue: '',
|
||||
@ -35,6 +33,11 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("Build Docker") {
|
||||
steps {
|
||||
sh 'docker build -t ium_478855'
|
||||
}
|
||||
}
|
||||
stage("Dara Preparation") {
|
||||
steps {
|
||||
sh 'echo "PREPARATION"'
|
||||
|
Loading…
Reference in New Issue
Block a user