Giter Club home page Giter Club logo

cnabdocs's Introduction

CNAB docs bundle

how to use this bundle

Prerequisites

### Bash
$ docker-app context create cnab --description "CNAB context" --default-stack-orchestrator=swarm --docker-host=unix:///var/run/docker.sock

### Powershell
PS> docker-app context create cnab --description "CNAB context" --default-stack-orchestrator=swarm

For powershell context, we do not set a docker-host value as it will take by default the named pipe

IMPORTANT: if running Docker for Windows, you need to be in "Linux containers mode"

Server bundle

This bundle can be used with docker-app directly. The content needed is all located in the single file cnabdocs.dockerapp.

In order to install it, follow the following steps (same for both bash and powershell):

# Check that the file renders correctly (specially if changed values)
$> docker-app render

version: "3.6"
services:
server:
    image: aerth/markdownd
    ports:
    - mode: ingress
    target: 8080
    published: 8000
    protocol: tcp
    volumes:
    - type: volume
    source: web
    target: /opt
volumes:
web:
    name: content

# Install the bundle inside the context created in the prerequisites
$> docker-app install cnabdocs.dockerapp --name cnabdocs --target-context=cnab

Creating network cnabdocs_default
Creating service cnabdocs_server

# Check that the application has been installed correctly
$> docker-app status cnabdocs --target-context=cnab

ID                  NAME                    MODE                REPLICAS            IMAGE                    PORTS
tmq91ods5p2m        cnabdocs-Linux_server   replicated          1/1                 aerth/markdownd:latest   *:8000->8080/tcp

# Open a browser to http://localhost:8000

Cleaning resources

The bundle and the volume created can be uninstalled/removed as follow:

# Uninstall the bundle
$> docker-app uninstall cnabdocs --target-context=cnab

Removing service cnabdocs_server
Removing network cnabdocs_default

# Remove the volume named "content"
$> docker volume rm content

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.