Giter Site home page Giter Site logo

templates's Introduction

App Templates

This repository hosts the official templates ('Apps Templates') definitions for Portainer.

For more information about the template definition format and how to deploy your own templates, see the relevant documentation section.

Notice

This branch (master) is Deprecated.

Since version 3 of the templates, we've moved to use v3 branch as the default branch for this repository. If you are using version 2, please use the master branch of this repository (or https://raw.githubusercontent.com/portainer/templates/master/templates-2.0.json).

templates's People

Contributors

alexivkin avatar andres-portainer avatar chelorydel avatar chiptus avatar daftaupe avatar dakota-portainer avatar deviantony avatar golamrashed avatar hookenz avatar jevontane avatar jophey avatar megastef avatar mileippert avatar ncresswell avatar ramiresviana avatar samdulam avatar sbusso avatar thib3113 avatar vladdoster avatar xat0mz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

templates's Issues

Enhance templates variables definition

I would like to be able to add env variables not only with input fields, but with more types.
We develop an internal tool for this purpose, and we could abandon it for portainer if we have this feature.
I'll try to describe it with examples :

Today we have a mysql template, like that :

{
    "title": "MySQL",
    "description": "The most popular open-source database",
    "categories": ["database"],
    "platform": "linux",
    "logo": "https://cloudinovasi.id/assets/img/logos/mysql.png",
    "image": "mysql:latest",
    "env": [
      {
        "name": "MYSQL_ROOT_PASSWORD",
        "label": "Root password"
      }
    ],
    "ports": [
      "3306/tcp"
    ],
    "volumes": ["/var/lib/mysql"]
  }

I imagine something like that :

{
    "title": "MySQL",
    "description": "The most popular open-source database",
    "categories": ["database"],
    "platform": "linux",
    "logo": "https://cloudinovasi.id/assets/img/logos/mysql.png",
    "image": "mysql:latest",
    "env": [
      {
        "name": "MYSQL_ROOT_PASSWORD",
        "label": "Root password"
      },
      {
        "name": "MYSQL_VAR_1",
        "label": "var 1",
        "type": "select",
         "values": [
           "value1",
           "value2"
         ]
      },
      {
        "name": "MYSQL_VAR_2",
        "label": "var 2",
        "type": "select",
         "values_from": "https://mywebservice/mysql/var2"
      },
      {
        "name": "MYSQL_VAR_3",
        "label": "var 3",
        "type": "radio",
         "values": [
           "value1",
           "value2"
         ]
      }
    ],
    "ports": [
      "3306/tcp"
    ],
    "volumes": ["/var/lib/mysql"]
  }

This will generate form according to json description
We already do that here to deploy stacks from compose templates, with var values comming from other webservices, and it's powerful

This can be added for container templates as well as for WIP stack templates

Thanx

Glusterfs

Hi

I would suggest a new template that will add a glusterfs HA distributed storage volume system.

That coupled with the swarm mode will create a seriously HA infrastructure since data/volumes will be HA as well.

Template testing

Hi,

I've got a problem to use templates from github:

docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock --name p1 \
portainer/portainer  --no-auth --templates https://raw.githubusercontent.com/megastef/templates/master/templates.json
05b831e278d0980c4832e77f32f9c01ee020569fc066b906f803fc8ff8d5464b
imac:templates stefan$ docker logs p1
2017/03/14 08:39:31 Migrating database from version 0 to 1.
2017/03/14 08:39:31 Starting Portainer on :9000
2017/03/14 08:39:37 http error: Endpoint not found (code=500)
2017/03/14 08:39:37 http error: Endpoint not found (code=500)
2017/03/14 08:39:37 http error: Endpoint not found (code=500)

When I click to App templates I get an error message in the UI.

The fun part: using the github URL from this repository works fine, without any error:

docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock --name p1  \
portainer/portainer  --no-auth --templates https://raw.githubusercontent.com/portainer/templates/master/templates.json
15d8f1d63f74070157c587533d38f64e7bc54ccdec6f8657694656e40884070e
imac:templates stefan$ docker logs p1
2017/03/14 08:46:35 Migrating database from version 0 to 1.
2017/03/14 08:46:35 Starting Portainer on :9000
imac:templates stefan$ docker logs p1
2017/03/14 08:46:35 Migrating database from version 0 to 1.
2017/03/14 08:46:35 Starting Portainer on :9000

My URL works, and it is valid json ...
https://raw.githubusercontent.com/megastef/templates/master/templates.json

Could you please tell me what could be wrong?

Add Readme field to templates

It would be nice to show a readme as documentation for templates.
The templates could contain at least a readme field supporting markdown format.
This would help to give user instructions or point to full documentation of the application.

Template - Wowza

Based on:

docker run --name wowza -d --restart=always --publish 1935:1935 --publish 8086:8086 --publish 8087:8087 --publish 8088:8088 --env "WOWZA_ACCEPT_LICENSE=yes" --env "WOWZA_KEY=MYWOWZAKEY sameersbn/wowza:4.1.2-8

Template category

Each template should define a category (database, web server, developer tool...) so they could be sorted in the Portainer UI.

multiple architecture support

Support templates that properly handle portainer running on architectures other than amd64.

I'm not sure how this actually gets implemented in the future. In practice, if you are on a linux/arm64 machine, portainer presents you with linux/amd64 images as templates that won't run.

One possibility is another field in the template definition that describes the architectures it runs on; the bigger future is for widespread use of multiarch containers and some run-time check to validate for each container which architecture it is built for.

Support foreground flags (i.e. -i -t) in portainer templates

Feature Request: support foreground flags, i.e. (-i -t), in portainer templates

Reference: This feature request is in reference to the screencast I just shared with you showing how foreground flag support is necessary in order to use a custom Portainer template to open a [python, etc] container (and keep it open).

Link to screencast: https://portainer.slack.com/files/forman/F53M0TW03/portainer-screencase.mov

BTW: love this software product (portainer) !

Thanks,

James

Netsil template

Image: netsil/netsil

There should be a client and a server template. We must be able to deploy the agent as a Swarm service, this will have to wait until Swarm service templates support is added into Portainer.

Add missing volume declarations

I just noticed that portainer was not showing any linked volumes for some of my containers and with the help of @ncresswell I was able to find that it just created a non persistent volume (the one auto generated by docker) and not a persistent one.
It is probably a good idea to add the volumes to some templates (I only played with wordpress, nginx and apache) as a user will most likely not expect that the volume gets deleted when the container gets deleted.

Host template logos

We should host the logos somewhere.

In this repository could be a good start. Also, rework the logo so they're the lightest possible, to enhance download speed.

Template - Magento2

Based on:

docker run -d -i -t -p 9080:80 -p 3000:3000 -p 3001:3001 -p 2222:22 --name gsd alankent/gsd

LinuxServer.io template contributions

Hi,

I'm one of the LinuxServer.io guys, we make 'a few' Docker containers here. We maintain a bunch of templates for native integration into unRAID and OpenMediaVault already. I've been using your UI for a couple of weeks and really like it.

We'd like to know if you're interested in starting a partnership to include our templates in your UI out of the box?

Regards.
IB

Networking field in template.json

Please could you add in a "networking" field into the template.json so that we can pre-define a docker for either bridge or net use?

Thanks

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.