Dockerfile added

This commit is contained in:
Damian Michalski 2020-04-03 18:52:06 +02:00
parent 5c9e7018e7
commit 6d87bf3851
3 changed files with 8 additions and 3 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM ubuntu:latest
RUN pip install matplotlib
RUN apt-get install -y python-tk

3
Jenkinsfile vendored
View File

@ -1,6 +1,5 @@
pipeline {
agent any
agent { dockerfile true }
stages {
stage('Generate plot') {
steps {

View File

@ -1,4 +1,4 @@
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.show()
plt.savefig('test.png')