Public Repository

Last pushed: 2 years ago
Short Description
Docker image hosting the Outdated Browser's Demo application
Full Description

Outdated Browser Demo app

This repository contains a Docker image hosting the demo application from Outdated Browser library.

The purpose of this repository is to ease the testing of the library across
multiple web browsers.

Github: https://github.com/YourCursus/docker-outdated-browser-demo

Usage

In order to use the Docker image, you simply have to run the following command:

$ docker run --rm -p 80:80 yourcursus/outdated-browser-demo

which will download the latest version and run it on port 80 so that you can
now point your favorite web browser to the http://localhost/ URL.

Versions

In case you would like to test a different version than the latest one,
you can give a version number after the image name (Docker image tag).

$ docker run --rm -p 80:80 yourcursus/outdated-browser-demo:1.0.2

Build your own version

As a good and lazy developer, I have written a shell script which takes care of
everything for you.

  1. Ensure to have the required dependencies:
    $ apt-get install unzip wget -y
    
  2. Update the VERSION file with the version
    you want to build.
  3. Then run the make_new_release.sh script

    $ ./make_new_release.sh
    Downloading Demo app version 1.1.3 ...
    Unziping tmp/1.1.3.zip ...
    Saving Demo app files ...
    Sending build context to Docker daemon 73.22 kB
    Step 1 : FROM nginx
    ---> eb4a127a1188
    Step 2 : ADD demo /usr/share/nginx/html
    ---> Using cache
    ---> c834d3995664
    Successfully built c834d3995664
    Docker image yourcursus/outdated-browser-demo:1.1.3 ready.
    You should now be able to run it with the following command:
    
     $ docker run --rm -p 80:80 yourcursus/outdated-browser-demo:1.1.3
    
    Then open your favorite web browser and point to http://localhost/
    

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Docker Pull Command
Owner
yourcursus

Comments (0)