Giter Site home page Giter Site logo

dockerfile-tomcat-food's Introduction

Tomcat-food

Desciption

This is a dockerized java based web app, tomcat as container, mysql is required before running this.

How-to-run

  • Run a containner named mysql. You do not need to bind port.
docker run --name mysql -d homework_mysql

If a container with this name already exists, choose a new name.

docker run --name mysql_for_food -d homework_mysql

Or simply stop and remove this container on the condition that this container will not be used in the future.

docker stop 1003921 && docker rm 1003921

1003921 is the conflict container ID.

  • Start mysql service in that container

Configure and start mysql.

docker exec -it 31401354 /bin/bash
cd /
sh init.sh
sh start.sh

31401354 is the newly started mysql container ID

  • Build and run web app

Build image

./build-image.sh

Run a new container

docker run -d -P --name webapp --link mysql:db -d -p 8081:8080 homework_tomcat

dockerfile-tomcat-food's People

Watchers

James Cloos avatar zyfdegh 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.