From 650401ca1d77ad62944e3ddc4d1ce207c9865f9a Mon Sep 17 00:00:00 2001 From: Alagris Date: Sun, 11 Apr 2021 19:37:47 +0200 Subject: [PATCH] docker --- Dockerfile | 9 +++++++++ create-dataset.Jenkinsfile | 27 +++++++++++++++++++++++++++ dataset-stats.Jenkinsfile | 19 +++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 Dockerfile create mode 100644 create-dataset.Jenkinsfile create mode 100644 dataset-stats.Jenkinsfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..febefca --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM ubuntu:latest + +# Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes) +RUN apt update && apt install -y python3 python3-pip + +# Stwórzmy w kontenerze (jeśli nie istnieje) katalog /app i przejdźmy do niego (wszystkie kolejne polecenia RUN, CMD, ENTRYPOINT, COPY i ADD będą w nim wykonywane) +WORKDIR /app + +# 3ffd24d6-993e-4ac8-abd4-48a784aa133d \ No newline at end of file diff --git a/create-dataset.Jenkinsfile b/create-dataset.Jenkinsfile new file mode 100644 index 0000000..a226691 --- /dev/null +++ b/create-dataset.Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent any + + stages { + stage('Build') { + steps { + // Get some code from a GitHub repository + git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git' + + sh 'ls' + sh 'ls ..' + sh 'python3 create_dataset.py' + + // To run Maven on a Windows agent, use + // bat "mvn -Dmaven.test.failure.ignore=true clean package" + } + + post { + // If Maven was able to run the tests, even if some of the test + // failed, record the test results and archive the jar file. + success { + archiveArtifacts 'in_alphabet,out_alphabet,preprocessed.tsv' + } + } + } + } +} diff --git a/dataset-stats.Jenkinsfile b/dataset-stats.Jenkinsfile new file mode 100644 index 0000000..a62cc9d --- /dev/null +++ b/dataset-stats.Jenkinsfile @@ -0,0 +1,19 @@ +pipeline { + agent any + + stages { + stage('Build') { + steps { + git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git' + copyArtifacts fingerprintArtifacts: true, projectName: 's434749-create-dataset', selector: lastSuccessful() + sh 'python3 dataset_stats.py' + } + + post { + success { + archiveArtifacts 'stats.txt' + } + } + } + } +}