From 41b32f50ec235874d87c5ba10483bd6361eb955c Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 8 Jun 2022 19:35:09 +0200 Subject: [PATCH] Initial Dockerfile and Jenkinsfile --- Dockerfile | 11 +++++++++++ Jenkinsfile | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100644 Jenkinsfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..47143f2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +#FROM - Image to start building on. +FROM ubuntu:14.04 + +#MAINTAINER - Identifies the maintainer of the dockerfile. +MAINTAINER jesse.isler@gmail.com + +#RUN - Runs a command in the container +RUN echo "Hello world" > /tmp/hello_world.txt + +#CMD - Identifies the command that should be used by default when running the image as a container. +CMD ["cat", "/tmp/hello_world.txt"] \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..459a82e --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,10 @@ +pipeline { + agent { dockerfile true } + stages { + stage('Test') { + steps { + echo "Build has worked!" + } + } + } +} \ No newline at end of file