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