Commit Graph

41 Commits

Author SHA1 Message Date
Peter Razumovsky f9b2710b87 Fix changing DOCKER_OPTS for DSH and KubeCluster
Currently DOCKER_OPTS incorrectly changed with insecure-registry and
registry-mirror opts (setupDockerRegistry and setupDockerMirror
scripts): opts aren't wrapped with quotes after changing.

Change-Id: I3265953cc6e6d9de75fa4ba185059cd75c06181c
Closes-bug: #1628405
2016-10-11 13:51:45 +00:00
Tetiana Lashchova 17237b6eb3 Clarify description for Docker mirror and registry
Change-Id: Ia95ad163eb978dd0db5ddc21c901f5ac8877cef9
Closes-Bug: #1630585
2016-10-05 16:33:22 +03:00
Dmytro Dovbii 9c78a0a16d Fix path in readme for DIB
Change-Id: I11a00abc8a37cad411b57cbe156a3a2a6a8efef8
2016-09-20 17:06:42 +03:00
Dmytro Dovbii 82d6b47ddc Fix DIB elements to allow docker use EnvironmentFile
Closes-Bug: #1590070
Change-Id: I5cd7bcb9b6fc7356a9255e1e05a6a169a054ecf6
2016-09-16 18:52:04 +03:00
Nikolay Mahotkin 5c69e7d64c Fixing docker DIB element for setting correct MTU
* docker0 interface in ubuntu had incorrect MTU value
 * Older docker (< v1.1) automatically infer MTU value based
 on host. But since 1.1 docker doesn't do this. It
 sets MTU value 1500 which causes some network problems
 (especially with SSL/TLS/HTTPS) and apps like
 HTTPdSite and NginXSite couldn't clone the repo.

Closes-Bug: 1608836

Change-Id: I62482bce9ad4f45b7ea2d1d4db77d009c7191f7b
2016-08-26 15:17:38 +03:00
alexz 3f7ec09847 Shell files syntax cleanup
* add SC2001 to shellcheck skip-list
* few functions from CloudFoundryDiego application was changed -
  manual deployment test requeired

Change-Id: Ib7b223553bdfc14f7051911d7ed0e4076c6aebb0
2016-07-29 09:05:33 +00:00
alexz 719a47fa86 Yaml syntax cleanup
* remove 'error' like:
- no new line character at the end of file
- trailing spaces

Change-Id: I981f5353a5bd5bfb1546946b240a85905272887e
2016-07-27 14:06:24 +00:00
Jenkins 001f04c3a2 Merge "privileged mode support for KubernetesPod and DockerStandaloneHost" 2016-07-24 18:35:15 +00:00
Vitaly Lopatkin ba744855df privileged mode support for KubernetesPod and DockerStandaloneHost
Change-Id: I2155b27af1e59bf907d7ad03dedada98ef8ebb76
2016-07-22 16:52:44 +06:00
Dmytro Dovbii e99577fdc8 [DSH] Delete hardcoded image name
We have a debian 8 image for a long time, which
can be successfully used by docker standalone host
to run dockerized apps, but we still don't use it.
This commit deletes hardcode and adds image field to
ui with filter by type `linux.docker`.

Change-Id: Ie3d9d454cd98f651833b28690d33d55b404dc13d
2016-07-20 15:58:12 +00:00
Tetiana Lashchova 54bdd3f7dc Update namespace for DockerStandaloneHost
Replace com.example with com.mirantis

Change-Id: I03716573186fc0f6a973b25c95116aeea864a077
2016-07-14 13:22:07 +03:00
Jenkins df5b08864b Merge "Fix usage of id() and super() methods in Docker apps" 2016-06-21 12:33:20 +00:00
Tetiana Lashchova 1d0fc0a3e0 Fix usage of id() and super() methods in Docker apps
Change-Id: Ieb34aee28b796adfceebca0c825d05de02cf37ac
Closes-Bug: #1593682
2016-06-21 13:27:35 +03:00
Tetiana Lashchova 492ec6e097 Update namespaces for docker applications
io.murano.apps -> com.mirantis for k8s applications,
io.murano.apps -> com.example for example applications.

bp fix-fqn-usage

Change-Id: I7061b48ebcc5c33b96a14cfabb982d709f8b709d
2016-06-17 12:37:23 +03:00
Dmytro Dovbii 8dd4721331 [Docker] Add cidr configuration for docker0 interface
Change-Id: Ib332086359a005146ffefb8b16c324ef04604785
Closes-Bug: #1590070
2016-06-10 08:00:00 +00:00
Dmytro Dovbii b46d49af09 Fix yaql related issues in Docker apps
Partially-Implements: bp refactor-apps-scripts

Change-Id: Iaf75ec38b133d45778bb1c0f3328e939a9a54bda
2016-05-11 16:27:06 +00:00
Dmytro Dovbii aa524e0acc Initial refactoring of murano apllications
* Increases format of packages
* Adds missed licence headers
* Other minor refactoring

Change-Id: I580bea2eb2f7e4616cd12245367ada8d43c5c4ff
Targets: bp refactor-apps-scripts
2016-04-07 12:55:24 +03:00
Tetiana Lashchova 2d2390cb72 Add Google Container Registry to DockerStandaloneHost
Allow access to Google Container Registry using json key as
a password for docker login. The key is scoped to a specific
Google Cloud Platform Console project and its resources.
Add new field for key.

Partially implements: blueprint k8s-google-registry-support

Change-Id: I904110522b482cce56a2fc14ae77eb50064b723f
2015-12-03 14:19:04 +02:00
Jenkins 082cc0c0cc Merge "Add custom docker registry to DockerStandaloneHost" 2015-11-09 10:26:18 +00:00
Tetiana Lashchova f75e1e9700 Add custom docker registry to DockerStandaloneHost
Allow access to private docker registry using docker argument
'--insecure-registry'.
Add new field for docker private registry host ip or domain name.

Partially implements: blueprint k8s-docker-enterprise-hub-support

Change-Id: I0e7b0ceebe9deda090fff56ec87f3c615050cc2a
2015-11-02 14:28:51 +02:00
Ekaterina Chernova 576cd97d0c Remove 'images.lst' files
Some images are updated and may not supported in the future.
Murano admins should build images by there own
from fresh elements, provided in the application folder

Change-Id: I683bcac64e46e4c93a1b958e5b79452874c44288
(cherry picked from commit bd51f268525a55c7800a32a3e3d3fd5e9ffc4fb0)
2015-10-20 12:05:20 +00:00
Stan Lagun 0549313491 [Docker] Do not try to delete container on destroyed host
When Environment get deleted both Docker/k8s host and
Docker applications get deleted. So it is possible that host
will try to delete container from an Instance that was already
destroyed. Attempt to send commands to such instance
will hang until timeout because there is no more agent
exist on the other side.

Change-Id: Ia6e8064ae50c24ce595ed08e446ed45b96b4a330
Closes-Bug: #1504623
Depends-On: I298f3f079a153ef87ed7213b7f1432c9e5e4b4b6
2015-10-12 11:23:27 +00:00
Stan Lagun ef413891de Updated Docker and k8s DIB elements
* Kubernetes element was updated to base on v1.0.6
* Docker now has its own repo and has different package name.
  Also it is now installed via downloadable script.
  TODO: Need somehow to fix docker version to 1.8.2

Change-Id: I230e9705cb850e9fb3772a67284561907d4be615
Implements: blueprint update-k8-to-v1-dib-elements
Co-Authored-By: Alexey Deryugin <aderyugin@mirantis.com>
2015-10-07 12:54:15 +00:00
Dmytro Dovbii 36bb9cc86a Delete unused parameter from Start Docker EP
Change-Id: I9f0cf09e4f301e39dd15cdc9568da0f1fb36f5fd
2015-07-02 10:23:11 +03:00
Alexey Deryugin b4bb6a2191 Fix missing function call in Docker DIB element
Replace call of undefined function 'lowercase' with standart bash string conversion to lowercase

Change-Id: I7fa4a85058e81afbd72d2f245c66995afc5ce26a
Closes-Bug: #1465282
2015-06-15 14:09:17 +00:00
Alexey Deryugin 0661ee3e30 Update Docker DIB elements for usage with Debian-based images
Change-Id: I319c28b5314f9d8ee070a0cafe10968851adf64c
2015-06-05 13:21:46 +00:00
Jenkins 3f06af663d Merge "Set Docker version to 1.6.2 due to Docker update" 2015-06-04 21:43:46 +00:00
Alexey Deryugin 96701cbcfa Set Docker version to 1.6.2 due to Docker update
Change-Id: Idf9e400191787c4df76011a41c192194fd45b012
Closes-Bug: #1457086
2015-05-28 10:04:55 +00:00
Dmytro Dovbii 0fc2e52dc4 Add Require section to maniest file for all apps
Change-Id: I88d690eab977d54e8272fd66a4b785ee5022a2c6
Closes-Bug: #1446563
2015-05-26 09:41:30 +03:00
Jenkins 39dc31ae4b Merge "Adds force docker service start" 2015-05-07 16:31:43 +00:00
Stan Lagun 626370becf Adds force docker service start
Despite being started via upstart in rare cases docker service
wasn't available on VM first boot. This commit adds force
server star step

Change-Id: I6fb0d247a4333c9444629c23dbc259de12f05805
Closes-Bug: #1449510
(cherry picked from commit 6944505e75aee39058eb2567f872c3416ca3fd60)
2015-05-01 22:44:47 +00:00
Stan Lagun 39a9001c04 Adds ability to delete docker applications from the host
Application deletion were supported on DSH/Pod but not exposed
in DockerApplication. Once it became exposed number of bugs in
KubernetesPod and DSH became visible.

Change-Id: I33650936a73994668f72348a909b7a51bae2b98c
Closes-Bug: #1446582
(cherry picked from commit a74293e2b4ed5695737066d9154d51a4170b8a80)
2015-05-01 22:44:24 +00:00
Alexey Deryugin c1660be27e Fix wrong permissions on element files
Change-Id: I106542a3c52657a5cbfcdaac32aa7e1208f5d5a4
2015-04-22 18:50:45 +03:00
Alexey Deryugin a514989c9c Elements for Docker and Kubernetes migrated to murano-apps
Versions for kubernetes components fixed to:
* Kubernetes v0.15
* etcd v2.0.9
* flannel v0.3.1
* confd v0.7.1
* Docker v1.6.0

Change-Id: Ibf4028dc4fbc4568e5de24805669d9caa6d4caf1
(cherry picked from commit cc765433d6878f752a0709b04676de0a96e93c13)
2015-04-22 10:35:09 +00:00
Ekaterina Chernova 53c9a9ad26 Add license information
* LICENSE file placed to every package
* License information is shown during application creation
* License added to every file

Change-Id: I682f3d9a09d0c0b575206d79223c1822c4b94f27
Closes-Bug: #1446121
2015-04-20 19:15:15 +03:00
Jenkins 317af79e6b Merge "Fixes port acquiring logic in DockerStandaloneHost" 2015-04-16 09:36:29 +00:00
Ekaterina Chernova d44ea97fd3 Add requirements to docker host and k8s cluster
Since now, all flavors that have less than 10 GB disk will
not be added to the possible selection.

Also, unnecessary backslashes were removed.

Change-Id: I0839a4252957acd2be9dddbd335674c22c3d57a5
2015-04-16 08:24:31 +00:00
Stan Lagun 52a4621626 Fixes port acquiring logic in DockerStandaloneHost
Previous code used integer keys in port map. But because
JSON doesn't support integer keys they were converted
to corresponding string representations and were not
found on subsequent deployments

Change-Id: I0477a043854a5ed78545d3b944397cdbf2352bd8
Closes-Bug: #1444681
2015-04-16 03:05:36 +03:00
Stan Lagun 414c8cdf83 Fixes port binding in Docker
Host port and container port were mixed up in container
run command

Change-Id: I128b6bf575b06c10ac80e2352d08e794ff897dc7
Closes-Bug: #1443725
2015-04-15 04:12:26 +03:00
Dmytro Dovbii fc827e50b2 Fix the incorrect work of method _removeApplicationEndpoints()
Fixed typo in method implementation. `select` command was used
for data filtration instead of `where` 

Change-Id: I80b859333089865f8f054b3cf35746e65eeef192
Closes-Bug: #1443686
2015-04-14 14:26:36 +00:00
Dmytro Dovbii 7cb39996f0 Restructure murano-apps repository
Change-Id: I9cdb1e4afcb9929c7b7a5437faaa25d284daefdb
Closes-Bug: #1441644
2015-04-14 09:42:21 +03:00