GithubHelp home page GithubHelp logo

blackcow02 / practical-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from looselytyped/practical-docker

0.0 2.0 0.0 9.93 MB

Demo code for my O'Reilly "Practical Docker" presentation

Dockerfile 4.81% Shell 16.46% Java 47.99% HTML 30.75%

practical-docker's Introduction

Practical Docker

This is sample project to accomodate my "Practical Docker" presentation

Installation

You will need 2 things installed

Optionally, a good text editor. I highly recommend VS Code with the Docker Extension.

Docker installation

There are two items of note

  • Please treat this installation like any other. Different operating systems and different set ups (especially in company-issued laptops) can make this installation tricky. Google, and perhaps your desktop support team (if using a company-issued laptop) are your friends. Debugging this can be tricky.
  • Docker requires a slew of permissions to run. So please make sure you grant Docker all the permissions it needs

Testing your installation

docker version;

Warm up your engines!

You want to do this BEFORE you show up for the workshop!! Running this over a hotel wifi connection might not go well. Using the command (bash) prompt:

docker pull alpine:3.8;
docker pull jenkins:2.60.3;
docker pull mongo:3.4.5;
docker pull nginx:1.14-alpine;
docker pull openjdk:8u131-jdk;
docker pull openjdk:8u131-jre;
docker pull portainer/portainer:latest;
docker pull tomcat:9;
docker pull ubuntu:18.10;

The final test

Once again, at the command prompt:

> docker run -d --name myjenkins -p 8080:8080 jenkins:2.60.3;
> docker logs -f myjenkins;

You should see the Jenkins logs flowing by eventually settling with the following:

Sep 18, 2018 11:38:19 PM hudson.model.UpdateSite updateData
INFO: Obtained the latest update center data file for UpdateSource default
Sep 18, 2018 11:38:19 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
Sep 18, 2018 11:38:19 PM hudson.model.UpdateSite updateData
INFO: Obtained the latest update center data file for UpdateSource default
Sep 18, 2018 11:38:20 PM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
Sep 18, 2018 11:38:20 PM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.tools.JDKInstaller
Sep 18, 2018 11:38:20 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Download metadata. 7,798 ms
--> setting agent port for jnlp
--> setting agent port for jnlp... done

Visit http://localhost:8080 and see if you see the Jenkins login page. If you do, you are all set to go!!

# ctrl-c to break out of the logs
docker container stop myjenkins;
docker container rm myjenkins;

Woot!!! See you soon!!!

Notes

  • This project consists of a slew of Dockerfiles that demonstrate how to (and not to) use a few select Dockerfile instructions
  • This project also packages the artifact that this project produces so you do not need Java installed

practical-docker's People

Contributors

looselytyped avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.