Skip to content

Instantly share code, notes, and snippets.

@aurelijusb
Created August 30, 2016 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aurelijusb/cd02fcfeed3cd2a0fe7794d858370f95 to your computer and use it in GitHub Desktop.
Save aurelijusb/cd02fcfeed3cd2a0fe7794d858370f95 to your computer and use it in GitHub Desktop.
Notes for presentation: Docekr on VDS v3

Notes for presentation: Docker on VDS

Notes for Building https://github.com/vilniusphp/home from docker

  • Assuming docker is installed https://docs.docker.com/engine/installation/
  • Makefile requires git installed, but https://hub.docker.com/_/php/ does not include. So you need to first run make build on host machine or use php:5.6 bash and then apt-get update && apt-get install -y git && make build
  • -it used for intefactive and with tty
  • -v "$PWD":"/src" is to mount volume of current directory
  • -w "/src" set working directory
  • bash -c "make build" exectutes Makefile with argument
aurelijus@aurelijus-a:~/Documents/OPEN-SOURCE/vilnius-php-home$ make build
git clone https://github.com/vilniusphp/vilniusphp.github.io.git public_html
Cloning into 'public_html'...
remote: Counting objects: 288, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 288 (delta 0), reused 0 (delta 0), pack-reused 285
Receiving objects: 100% (288/288), 4.13 MiB | 331.00 KiB/s, done.
Resolving deltas: 100% (124/124), done.
Checking connectivity... done.
mkdir -p public_html && vendor/pawka/phrozn/bin/phrozn.php up . public_html
Phrozn 0.5.5 by Victor Farazdagi
Starting static site compilation.
[OK] Source directory located: /home/aurelijus/Documents/OPEN-SOURCE/vilnius-php-home/.phrozn/
[OK] Destination directory located: /home/aurelijus/Documents/OPEN-SOURCE/vilnius-php-home/public_html/
PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/aurelijus/Documents/OPEN-SOURCE/vilnius-php-home/vendor/pawka/phrozn/Phrozn/Twig/Loader/String.php on line 30
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 255
aurelijus@aurelijus-a:~/Documents/OPEN-SOURCE/vilnius-php-home$ docker run -it -v "$PWD":"/src" -w "/src" php:5.6 bash -c "make build"
Unable to find image 'php:5.6' locally
5.6: Pulling from library/php
357ea8c3d80b: Already exists
85537f80f73d: Already exists
3d821ad560e1: Already exists
859020aa1342: Already exists
4bd2481cc0f0: Already exists
50b6a15741e0: Already exists
f06bd2f23c34: Already exists
Digest: sha256:221e0b20565b5485405f55086b113c4d86a5fd1056f1b7b3c1025995ae248e09
Status: Downloaded newer image for php:5.6
mkdir -p public_html && vendor/pawka/phrozn/bin/phrozn.php up . public_html
Phrozn 0.5.5 by Victor Farazdagi
Starting static site compilation.
[OK] Source directory located: /src/.phrozn/
[OK] Destination directory located: /src/public_html/
[OK] ./.phrozn/entries/about.twig parsed
[OK] ./public_html/about.html written
[OK] ./.phrozn/entries/index.twig parsed
[OK] ./public_html/index.html written
[OK] ./.phrozn/entries/archive.twig parsed
[OK] ./public_html/archive.html written
[OK] ./.phrozn/entries/english.twig parsed
[OK] ./public_html/english.html written
[OK] ./.phrozn/styles/font-awesome.css parsed
[OK] ./public_html/styles/font-awesome.css written
[OK] ./.phrozn/styles/font-awesome.min.css parsed
[OK] ./public_html/styles/font-awesome.min.css written
[OK] ./.phrozn/styles/roboto.min.css parsed
[OK] ./public_html/styles/roboto.min.css written
[OK] ./.phrozn/styles/bootstrap.css parsed
[OK] ./public_html/styles/bootstrap.css written
[OK] ./.phrozn/styles/vilniusphp.css parsed
[OK] ./public_html/styles/vilniusphp.css written
[OK] ./.phrozn/styles/material-fullpalette.min.css parsed
[OK] ./public_html/styles/material-fullpalette.min.css written
[OK] ./.phrozn/styles/ripples.min.css parsed
[OK] ./public_html/styles/ripples.min.css written
[OK] ./.phrozn/styles/bootstrap.min.css parsed
[OK] ./public_html/styles/bootstrap.min.css written
[OK] ./.phrozn/scripts/jquery-1.10.2.min.js parsed
[OK] ./public_html/scripts/jquery-1.10.2.min.js written
[OK] ./.phrozn/scripts/main.js parsed
[OK] ./public_html/scripts/main.js written
[OK] ./.phrozn/scripts/ripples.min.js parsed
[OK] ./public_html/scripts/ripples.min.js written
[OK] ./.phrozn/scripts/material.min.js parsed
[OK] ./public_html/scripts/material.min.js written
[OK] ./.phrozn/scripts/bootstrap.js parsed
[OK] ./public_html/scripts/bootstrap.js written
[OK] ./.phrozn/scripts/bootstrap.min.js parsed
[OK] ./public_html/scripts/bootstrap.min.js written
[OK] ./public_html/media/fonts/Material-Design-Icons.eot copied
[OK] ./public_html/media/fonts/Judson.ttf copied
[OK] ./public_html/media/fonts/Apache License.txt copied
[OK] ./public_html/media/fonts/Judson.css copied
[OK] ./public_html/media/fonts/JudsonItalic.sfd copied
[OK] ./public_html/media/fonts/LICENSE.txt copied
[OK] ./public_html/media/fonts/fontawesome-webfont.woff copied
[OK] ./public_html/media/fonts/fontawesome-webfont.woff2 copied
[OK] ./public_html/media/fonts/JudsonItalic.ttf copied
[OK] ./public_html/media/fonts/FONTLOG.txt copied
[OK] ./public_html/media/fonts/Material-Design-Icons.woff copied
[OK] ./public_html/media/fonts/FontAwesome.otf copied
[OK] ./public_html/media/fonts/Material-Design-Icons.svg copied
[OK] ./public_html/media/fonts/JudsonBold.ttf copied
[OK] ./public_html/media/fonts/fontawesome-webfont.eot copied
[OK] ./public_html/media/fonts/JudsonBoldItalic.ttf copied
[OK] ./public_html/media/fonts/Judson.sfd copied
[OK] ./public_html/media/fonts/fontawesome-webfont.ttf copied
[OK] ./public_html/media/fonts/JudsonBold.sfd copied
[OK] ./public_html/media/fonts/fontawesome-webfont.svg copied
[OK] ./public_html/media/fonts/Material-Design-Icons.ttf copied
[OK] ./public_html/media/fonts/JudsonBoldItalic.sfd copied
[OK] ./public_html/media/img/eskimi-logo.png copied
[OK] ./public_html/media/img/ug_jetbrains.png copied
[OK] ./public_html/media/img/logo.png copied
[OK] ./public_html/media/img/logo_white.gif copied
[OK] ./public_html/media/img/transfergo.png copied
[OK] ./public_html/media/img/opacity.png copied
[OK] ./public_html/media/img/ug_ad_250_viguy.gif copied
[OK] ./public_html/media/img/vilniusphp-codeweek-blur.jpg copied
[OK] ./public_html/media/img/glyphicons-halflings-white.png copied
[OK] ./public_html/media/img/github.png copied
[OK] ./public_html/media/img/glyphicons-halflings.png copied
[OK] ./public_html/media/img/pigu-logo.gif copied
[OK] ./public_html/media/img/logo_white.png copied
[OK] ./public_html/media/img/estina-logo-black.png copied
[OK] ./public_html/media/img/full_6768322-bg-blur1.jpeg copied
[OK] ./public_html/media/img/ba.png copied
[OK] ./public_html/media/img/twitter.png copied
[OK] ./public_html/media/img/logo_90x90.jpg copied
[OK] ./public_html/media/img/linkedin.png copied
[OK] ./public_html/media/img/logo_fullsize.jpg copied
[OK] ./public_html/media/img/wix.com.png copied
[OK] ./public_html/media/img/paysera.png copied
[OK] ./public_html/media/img/adform.png copied
[OK] ./public_html/media/img/practica.png copied
[OK] ./public_html/media/img/s3-logo.jpg copied
[OK] ./public_html/media/img/ug_apress.png copied
[OK] ./public_html/media/img/uber.png copied
[OK] ./public_html/media/img/php.png copied
[OK] ./public_html/media/img/buildstuff.png copied
[OK] ./public_html/media/img/mokejimai-logo.png copied
[OK] ./public_html/media/img/full_6768322.jpeg copied
[OK] ./public_html/media/img/facebook.png copied
[OK] ./public_html/media/img/startuplt.png copied
[OK] ./public_html/media/img/manning.jpg copied
[OK] ./public_html/media/img/slideshare.jpg copied
[OK] ./public_html/media/img/logo.jpg copied
[OK] ./public_html/media/img/mailer-logo.jpg copied
[OK] ./public_html/media/img/nfq-logo.png copied
[OK] ./public_html/media/img/cardinity.png copied
[OK] ./public_html/media/img/README copied
[OK] ./public_html/media/img/visma-logo.png copied
[OK] ./public_html/media/favicon.ico copied
[OK] ./public_html/media/README copied
Phrozn is an extremely flexible static site generator for PHP.
For additional information, see http://phrozn.info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment