From 9361b7831d515e778a4242847ae0c1aa8dea4d1c Mon Sep 17 00:00:00 2001 From: Dawid Kubicki Date: Fri, 26 Apr 2019 12:37:59 +0200 Subject: [PATCH] dockerfile --- Dockerfile | 11 +++++++++++ Jenkinsfile | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9b6b59c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:latest + +RUN apt update -y && apt install -y make +RUN apt install -y git +RUN apt install -y gcc +RUN gcc --version +RUN apt install -y build-essential +RUN git clone https://github.com/usnistgov/SCTK.git +WORKDIR SCTK +RUN make config && make all && make check && make install && make doc +ENV PATH=$PATH:/SCTK/bin \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 400ce05..01f88d0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,4 +3,8 @@ node{ checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s412146/s412146-mlworkshops.git']]]) sh label: '', script: './script.sh' archiveArtifacts 'output' + def customImage = docker.build("my-custom-image") + customImage.inside { + sh 'echo works' + } } \ No newline at end of file