conda
Some checks failed
s444417-training/pipeline/head There was a failure building this commit

This commit is contained in:
s444417 2022-05-21 13:24:03 +02:00
parent 7ea73e75f3
commit 48b00ca2c8
2 changed files with 4 additions and 8 deletions

View File

@ -12,12 +12,4 @@ RUN apt-get install wget
WORKDIR /app WORKDIR /app
# Create the environment: # Create the environment:
COPY environment.yml .
RUN conda env create -f environment.yml
# Make RUN commands use the new environment:
SHELL ["conda", "run", "-n", "myenv", "/bin/bash", "-c"]
# The code to run when container is started:
COPY . . COPY . .
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "myenv", "python", "lab8/trainScript.py"]

View File

@ -12,6 +12,10 @@ pipeline {
) )
} }
stages { stages {
stage('conda') {
sh 'conda env create -f environment.yml'
sh 'conda activate myenv'
}
stage('Copy') { stage('Copy') {
steps { steps {
copyArtifacts projectName: 's444417-create-dataset' copyArtifacts projectName: 's444417-create-dataset'