summaryrefslogtreecommitdiffstats
path: root/docs/installconfigure/Install_Docker.rst
blob: 91e40ca138f83b3d1f515aca1292e977ce5b2b62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
.. Copyright 2018 Huawei Technologies Co., Ltd.

Install Docker
===============

Make sure curl is installed on the Ubuntu VM:

.. code-block:: bash

	sudo apt update
	sudo apt install curl

If you are behind a corporate firewall (replace "proxyhost:port" with your actual proxy information)
	https_proxy="https://*proxyhost:port*" curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -
	
Otherwise:
	curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -
Expected Response:
	OK
Add the docker package repository:
	sudo apt-add-repository "deb https://apt.dockerproject.org/repo ubuntu-xenial main"
	
Install packages:

.. code-block:: bash

    sudo apt update
    sudo apt-cache policy docker-engine
	sudo apt install docker-engine
	sudo apt install docker-compose
	
If you are behind a corporate firewall, you will need to configure proxy settings for docker so that images may be obtained from internet repositories.  In the commands shown here, replace *"proxyhost:port"*, *"yourdomain1.com"*, and *"yourdomain2.com"* with appropriate values.
	
    Make the docker configuration directory:

.. code-block:: bash
	
        sudo mkdir -p /etc/systemd/system/docker.service.d
	
    Edit (create) this file:

.. code-block:: bash
	
		sudo vi /etc/systemd/system/docker.service.d/http-proxy.conf
	
    Add these lines:

        [Service]
        
		Environment="HTTP_PROXY=https://*proxyhost:port*"
        
		Environment="HTTPS_PROXY=https://*proxyhost:port*"
        
		Environment="NO_PROXY=localhost,127.0.0.1,.yourdomain1.com,.yourdomain2.com"
	
    Restart docker:

.. code-block:: bash
	
        sudo systemctl daemon-reload
        sudo systemctl restart docker

Add yourself to the docker user group (replace "userid" with your user ID):

.. code-block:: bash

    sudo usermod -a -G docker *userid*

Log out and log back in so that the user group change will takeeffect.

Verify that you can connect to docker as yourself (i.e. not as root):

.. code-block:: bash

    docker ps

Verify that you can download and run the hello-world container

.. code-block:: bash

    docker run hello-world
	
.. image:: images/Docker_install_1.png
d2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
aai:
  auth: 5A1272FE739BECA4D4374A86B25C021DFE6745E3BB7BE6836BF64A6059B8220E586C21FD7567AF41DB42571EB7
  endpoint: http://localhost:${wiremock.server.port}
appc:
  client:
    key: iaEMAfjsVsZnraBP
    response:
      timeout: '120000'
    secret: wcivUjsjXzmGFBfxMmyJu9dz
    poolMembers: localhost
    service: ueb
    topic:
      read:
        name: APPC-TEST-AMDOCS2
        timeout: '120000'
      write: APPC-TEST-AMDOCS1-DEV3
      sdnc:
        read: SDNC-LCM-READ
        write: SDNC-LCM-WRITE
log:
  debug:
    CompleteMsoProcess: 'true'
    CreateNetworkInstanceInfra: 'true'
    CreateServiceInstanceInfra: 'true'
    DeleteNetworkInstanceInfra: 'true'
    FalloutHandler: 'true'
    UpdateNetworkInstanceInfra: 'true'
    VnfAdapterRestV1: 'true'
    sdncAdapter: 'true'
    vnfAdapterCreateV1: 'true'
    vnfAdapterRestV1: 'true'
mso:
  adapters:
    requestDb:
      auth: Basic YnBlbDptc28tZGItMTUwNyE=
      endpoint: http://localhost:8081  
    completemsoprocess:
      endpoint: http://localhost:${wiremock.server.port}/CompleteMsoProcess
    db:
      auth: 5E12ACACBD552A415E081E29F2C4772F9835792A51C766CCFDD7433DB5220B59969CB2798C
      endpoint: http://localhost:${wiremock.server.port}/dbadapters/RequestsDbAdapter
      att-endpoint: http://localhost:${wiremock.server.port}/dbadapters/AttRequestsDbAdapter
      spring:
        endpoint: http://localhost:${wiremock.server.port}
    network:
      endpoint: http://localhost:${wiremock.server.port}/networks/NetworkAdapter
      rest:
        endpoint: http://localhost:${wiremock.server.port}/networks/rest/v1/networks
    openecomp:
      db:
        endpoint: http://localhost:${wiremock.server.port}/dbadapters/RequestsDbAdapter
    po:
      auth: 5E12ACACBD552A415E081E29F2C4772F9835792A51C766CCFDD7433DB5220B59969CB2798C
      password: 3141634BF7E070AA289CF2892C986C0B
    sdnc:
      endpoint: http://localhost:${wiremock.server.port}/SDNCAdapter
      rest:
        endpoint: http://localhost:${wiremock.server.port}/SDNCAdapter/v1/sdnc
      timeout: PT60S
    tenant:
      endpoint: http://localhost:${wiremock.server.port}/tenantAdapterMock
    vnf:
      endpoint: http://localhost:${wiremock.server.port}/vnfs/VnfAdapter
      rest:
        endpoint: http://localhost:${wiremock.server.port}/services/rest/v1/vnfs
    volume-groups:
      rest:
        endpoint: http://localhost:${wiremock.server.port}/services/rest/v1/volume-groups
    vnf-async:
      endpoint: http://localhost:${wiremock.server.port}/vnfs/VnfAdapterAsync
    workflow:
      message:
        endpoint: http://localhost:${wiremock.server.port}/workflows/messages/message
  camundaAuth: E8E19DD16CC90D2E458E8FF9A884CC0452F8F3EB8E321F96038DE38D5C1B0B02DFAE00B88E2CF6E2A4101AB2C011FC161212EE

  async:
      core-pool-size: 50
      max-pool-size: 50
      queue-capacity: 500

  bpmn:
    optimisticlockingexception:
      retrycount: '3'
  callbackRetryAttempts: '5'
  catalog:
    db:
      endpoint: http://localhost:${wiremock.server.port}/
      spring:
        endpoint: http://localhost:${wiremock.server.port} 
  correlation:
        timeout: 60
  db:
    auth: Basic YnBlbDptc28tZGItMTUwNyE=
  default:
    adapter:
      namespace: http://org.onap.so
  healthcheck:
    log:
      debug: 'false'
  infra:
    customer:
      id: testCustIdInfra
  logPath: logs
  msoKey: 07a7159d3bf51a0e53be7a8f89699be7
  po:
    timeout: PT60S
  request:
    db:
      endpoint: http://localhost:${wiremock.server.port}/
  rollback: 'true'
  rainyDay:
    retryDurationMultiplier: '2'
    defaultCode: Abort
  site-name: localDevEnv
  workflow:    
    default:
      aai:
        cloud-region:
          version: '9'
        generic-vnf:
          version: '9'
    global:
      default:
        aai:
          namespace: http://org.openecomp.aai.inventory/
          version: '8'
    message:
      endpoint: http://localhost:${wiremock.server.port}/mso/WorkflowMesssage
    notification:
      name: GenericNotificationService
    sdncadapter:
      callback: http://localhost:${wiremock.server.port}/mso/SDNCAdapterCallbackService
    vnfadapter:
      create:
        callback: http://localhost:${wiremock.server.port}/mso/vnfAdapterNotify
      delete:
        callback: http://localhost:${wiremock.server.port}/mso/vnfAdapterNotify
      query:
        callback: http://localhost:${wiremock.server.port}/mso/services/VNFAdapterQuerCallbackV1
      rollback:
        callback: http://localhost:${wiremock.server.port}/mso/vnfAdapterNotify
  global:
    dmaap:
      username: dmaapUsername
      password: ZG1hYXBQYXNzd29yZA==
      host: http://localhost:${wiremock.server.port}
      publisher:
        topic: com.att.mso.asyncStatusUpdate
  oof:
    auth: test
    timeout: PT10S
    service:
      agnostic:
        endpoint: /api/oof/v1/placement
        host: http://localhost:${wiremock.server.port}
policy:
  auth: Basic dGVzdHBkcDphbHBoYTEyMw==
  client:
    auth: Basic bTAzNzQzOnBvbGljeVIwY2sk
  endpoint: https://localhost:8081/pdp/api/
  environment: TEST
sdnc:
  auth: Basic YWRtaW46YWRtaW4=
  host: http://localhost:8446
  path: /restconf/operations/GENERIC-RESOURCE-API
sniro:
  conductor:
    enabled: true
    host: http://localhost:${wiremock.server.port}
    uri: /v1/release-orders
    headers.auth: Basic dGVzdDp0ZXN0cHdk
  manager:
    timeout: PT30M
    host: http://localhost:${wiremock.server.port}
    uri.v1: /sniro/api/v2/placement
    uri.v2: /sniro/api/placement/v2
    headers.auth: Basic dGVzdDp0ZXN0cHdk
    headers.patchVersion: 1
    headers.minorVersion: 1
    headers.latestVersion: 2

spring:
  datasource:
    jdbc-url: jdbc:mariadb://localhost:3307/camundabpmn
    username: root
    password: password
    driver-class-name: org.mariadb.jdbc.Driver
    initialize: true
  jpa:
    generate-ddl: false
    show-sql: false
    hibernate:
      ddl-auto: none
      naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
      enable-lazy-load-no-trans: true
    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect

mariaDB4j:
  dataDir:
  port: 3307
  databaseName: camundabpmn

camunda:
  bpm:
    metrics:
      enabled: false
      db-reporter-activate: false

org:
  onap:
    so:
      adapters:
        network:
          encryptionKey: aa3871669d893c7fb8abbcda31b88b4f