Giter VIP home page Giter VIP logo

phusion-app-template's Introduction

phusion-app-template

Docker template to containerize an application using arturol76/phusion-baseimage (i.e. phusion) as base image.

Why phusion and not ubuntu? Have a look to this: https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/

Sample app

Have a look to the app.

Your app

Put you code in the /app folder.

IMPORTANT: in order to start your application at container's startup, remember to edit "myapp.run" accordingly. That's the way to start an application (DO NOT add any CMD to the Dockerfile).

Build

To build the docker on a local docker host:

docker build -t YOUR_IMAGE_NAME .

To build it on a remote docker host:

docker -H YOUR_DOCKER_HOST_IP build -t YOUR_IMAGE_NAME .

...or just you the the provided build script build.sh as follows:

./build.sh YOUR_DOCKER_HOST_IP YOUR_IMAGE_NAME

Run

TBD

SSH Keys

Have a look to the keys. IMPORTANT: the container must be running.

VSCODE: sample config file for the SFTP extension

Assuming that:

  • you use pageant to manage the key authentication (recommended!)
  • your docker host ip is 192.168.2.96
  • you are exposing SSH on port 7122
{
    "name": "mydocker",
    "host": "192.168.2.96",
    "protocol": "sftp",
    "port": 7122,
    "username": "root",
    "remotePath": "/",
    "agent": "pageant",
    "passphrase": true,
    "uploadOnSave": true
}

If the container is running, vscode will automatically upload the code you are editing to the remote container via SSH.

phusion-app-template's People

Contributors

arturol76 avatar

Watchers

 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.