Git Product home page Git Product logo

dops-final-project's Introduction

Docker for Enterprise Operations

Final Project

This is a simple web application displaying a photo album of stock photos. The application is used by the final project of the Docker for Enterprise Operations course.

Please fork this repository.

Build and Run Image

Build image with

$ docker image build -t training/dops-final-project .

or run with docker-compose:

$ docker-compose up

In your browser navigate to localhost:3000. You should see a nice album with animal pictures.

Compatibility

This application has been tested on the latest versions of Chrome, Firefox and Safari (as of Jan. 2018).

Unit Tests

Build the unit test image with:

$ docker image build -t dops-final-project-unittests -f Dockerfile.unittests .

and run with:

$ docker container run --rm -it dops-final-project-unittests

The output should look like this:

> [email protected] test /app
> jasmine-node --matchall specs

Getting list of pets.
.

Finished in 0.008 seconds
1 test, 1 assertion, 0 failures, 0 skipped

Alternatively run the unit tests using the unit tests docker-compose file:

$ docker-compose -f docker-compose.unittests.yml up

which produces this output (note: showing only last part of output):

...
Recreating dopsfinalproject_web_1 ... done
Attaching to dopsfinalproject_web_1
web_1  |
web_1  | > [email protected] test /app
web_1  | > jasmine-node --matchall specs
web_1  |
web_1  | Getting list of pets.
web_1  | .
web_1  |
web_1  | Finished in 0.008 seconds
web_1  | 1 test, 1 assertion, 0 failures, 0 skipped
web_1  |
web_1  |
dopsfinalproject_web_1 exited with code 0

dops-final-project's People

Watchers

 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.