Skip to content

Commit

Permalink
DockUI support with Portainer Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mhynlo committed Mar 15, 2017
1 parent c8867af commit 16cda9c
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
portainer (1.12.1) stable; urgency=medium

* Initial release of portainer (docker ui) app on readynas.

-- Mhynlo <[email protected]> Thu, 02 Jun 2016 18:19:29 -0700
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
14 changes: 14 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Source: portainer
Section: contrib
Priority: extra
Maintainer: Mhynlo <[email protected]>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.8
Homepage: http://portainer.io/

Package: portainer
Architecture: amd64
Depends: ${shlibs:Depends}, ${misc:Depends}, readynasos (>= 6.7.0~T169), kernelplus, docker-cli-rnapp
Description: Docker UI lightweight management
XB-Repo: deb https://download.docker.com/linux/debian jessie stable
XB-Repo-Key-Url: https://download.docker.com/linux/debian/gpg
1 change: 1 addition & 0 deletions debian/dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apps/portainer
1 change: 1 addition & 0 deletions debian/install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rn-files/* apps/portainer
4 changes: 4 additions & 0 deletions debian/preinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#--DockerUI--#
docker pull portainer/portainer:1.12.1
/usr/bin/docker run -d -p 9000:9000 --name=portainermgmt -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer:1.12.1
/usr/bin/docker stop portainermgmt
4 changes: 4 additions & 0 deletions debian/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#--DockerUI--#
docker stop portainermgmt
docker rm portainermgmt
docker rmi portainer/portainer:1.12.1
14 changes: 14 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DH_ALWAYS_EXCLUDE=.git

%:
dh $@
12 changes: 12 additions & 0 deletions rn-files/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Application resource-id="portainer"><!-- 'resource-id' must be AppName -->
<Name>Portainer</Name><!-- Any desciptive name, upto 48 chars -->
<Author>Mhynlo</Author><!-- Authers name. upto 48 chars -->
<Version>1.12.1</Version><!-- Version -->
<RequireReboot>0</RequireReboot><!-- If non-zero, it indicate reboot is required. -->
<ConfigURL></ConfigURL><!-- 'localhost' will be replaced by framework JS. -->
<LaunchURL>http://localhost:9000</LaunchURL><!-- 'localhost' will be replaced by framework JS. -->
<ReservePort>9000</ReservePort>
<DebianPackage>portainer</DebianPackage>
<ServiceName>fvapp-portainer.service</ServiceName><!-- If start/stop need to start/stop service, specify service name -->
<Description lang="en-us">Portainer is an open-source lightweight management UI which allows you to easily manager you Docker host or Swarm Cluseter</Description>
</Application>
15 changes: 15 additions & 0 deletions rn-files/fvapp-portainer.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=Docker UI container
Documentation=https://docs.docker.com
After=docker.service
Requires=docker.service

[Service]
ExecStart=/usr/bin/docker start -a portainermgmt
ExecStop=/usr/bin/docker stop -t 2 portainermgmt
Restart=on-abnormal
Nice=18

[Install]
Also=docker.socket
WantedBy=multi-user.target
Binary file added rn-files/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 16cda9c

Please sign in to comment.