qnap-dev / container-apps

Apache License 2.0
80 stars 218 forks source link

Installation wizard #43

Closed stefaniuk closed 7 years ago

stefaniuk commented 7 years ago

I would like to make my application TCP port configurable and let user decide its number in the wizard. Here is my docker-compose.yml file:

version: '2'
services:
  web:
    image: portainer/portainer:1.12.4
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    network_mode: host
    command:
      - --bind $PORTAINER_BIND

How should I implement it in the wizard/install.json file so the PORTAINER_BIND variable can be defined by a user during the installation process?

chihhunglin commented 7 years ago

Hi @stefaniuk, I tried to do an example, please refer to https://github.com/chihhunglin/container-apps/

step1: edit list.json

    {
        "description": "Simple management UI for Docker.",
        "repository": "dockerhub",
        "arch": "amd64",
        "displayName": "Portainer",
        "name": "portainer",
        "version": "1.12.4",
        "location": "https://hub.docker.com/r/portainer/portainer/",
        "type": "app"
    },

step2: add a new folder (portainer) and the required files in template

stefaniuk commented 7 years ago

@chihhunglin thanks for your comment. With the help of your installation wizard I figured it out.

It is not very clear from the documentation that QPKG manual also applies to the qnap-dev/container-apps repo.