From 6bf5abbeb772c59b20c5a811369feb613e8c3197 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Thu, 4 May 2017 09:30:50 +0200
Subject: [PATCH] Build it!

---
 .gitlab-ci.yml | 13 +++++--------
 Dockerfile     |  4 ++++
 README.md      |  4 +++-
 Vagrantfile    |  2 +-
 4 files changed, 13 insertions(+), 10 deletions(-)
 create mode 100644 Dockerfile

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 85cb2a9..66403f0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,15 +1,12 @@
 build:
   stage: build
-  before_script:
-    - vagrant up
-  after_script:
-    - vagrant destroy -f
+  image: smokserwis/docker-docs-build
   script:
     - mkdir dist
-    - vagrant ssh -c 'cd /vagrant; python build.py lab1'
-    - vagrant ssh -c 'cd /vagrant; python build.py lab2'
-    - vagrant ssh -c 'cd /vagrant; python build.py lab3'
-    - vagrant ssh -c 'cd /vagrant; python build.py lab4'
+    - python build.py lab1
+    - python build.py lab2
+    - python build.py lab3
+    - python build.py lab4
     - cp resources/lab3_program.txt dist/lab3/program.txt
     - mv -f dist/* .
   artifacts:
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..1998642
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,4 @@
+FROM debian:jessie
+RUN apt-get update
+RUN apt-get install -y python pandoc texlive-latex-base texlive-fonts-recommended
+RUN apt-get clean
diff --git a/README.md b/README.md
index 6519030..37454e3 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,9 @@ przez prowadzącego.
 
 Napisane w [języku Markdown](https://daringfireball.net/projects/markdown/), uzupełniane o dane zadań za pomocą
 skryptu w języku [Python](https://www.python.org/) i danych zapisanych w języku [JSON](http://www.json.org/),
-montowane przy użyciu [Vagrant](https://www.vagrantup.com/), środowiska integracji ciągłej [GitLab CI](https://about.gitlab.com/),
+montowane przy użyciu [Docker](https://www.docker.com/), środowiska integracji ciągłej [GitLab CI](https://about.gitlab.com/),
 systemu kontroli wersji [Git](https://git-scm.com/) oraz konwertera Markdown-PDF [pandoc](http://pandoc.org/).
 
+Wcześniej był [Vagrant](https://www.vagrantup.com) ale mi się wylały kondensatory w zasilaczu i Vagrantowa maszyna zmarła [*].
+
 Instrukcja Copyright (c) 2017 Piotr Maślanka. [Niektóre](/LICENSE.md) prawa zastrzeżone.
\ No newline at end of file
diff --git a/Vagrantfile b/Vagrantfile
index f09c7bf..4670164 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -6,5 +6,5 @@ Vagrant.configure("2") do |config|
 
   config.vm.provision "shell", inline: <<-SHELL
     apt-get install -y python pandoc texlive-latex-base texlive-fonts-recommended
-  SHELL
+exi  SHELL
 end
-- 
GitLab