How to upgrade the OSM Platform: Difference between revisions
From OSM Public Wiki
Ramonsalguer (talk | contribs) |
Garciadeblas (talk | contribs) No edit summary |
||
Line 22: | Line 22: | ||
docker build RO -f RO/docker/Dockerfile-local -t osm/ro --no-cache | docker build RO -f RO/docker/Dockerfile-local -t osm/ro --no-cache | ||
docker stack rm osm | docker stack rm osm | ||
docker stack deploy -c / | docker stack deploy -c /etc/osm/docker/docker-compose.yaml osm | ||
For LCM: | For LCM: | ||
Line 28: | Line 28: | ||
docker build LCM -f LCM/Dockerfile.local -t osm/lcm --no-cache | docker build LCM -f LCM/Dockerfile.local -t osm/lcm --no-cache | ||
docker stack rm osm | docker stack rm osm | ||
docker stack deploy -c / | docker stack deploy -c /etc/osm/docker/docker-compose.yaml osm | ||
For MON and PM: | For MON and PM: | ||
Line 35: | Line 35: | ||
docker build MON/policy_module -f MON/policy_module/Dockerfile -t osm/pm --no-cache | docker build MON/policy_module -f MON/policy_module/Dockerfile -t osm/pm --no-cache | ||
docker stack rm osm | docker stack rm osm | ||
docker stack deploy -c / | docker stack deploy -c /etc/osm/docker/docker-compose.yaml osm | ||
For NBI: | For NBI: | ||
Line 41: | Line 41: | ||
docker build NBI -f NBI/Dockerfile.local -t osm/nbi --no-cache | docker build NBI -f NBI/Dockerfile.local -t osm/nbi --no-cache | ||
docker stack rm osm | docker stack rm osm | ||
docker stack deploy -c / | docker stack deploy -c /etc/osm/docker/docker-compose.yaml osm | ||
For light UI: | For light UI: | ||
Line 47: | Line 47: | ||
docker build LW-UI -t osm/light-ui -f LW-UI/Dockerfile --no-cache | docker build LW-UI -t osm/light-ui -f LW-UI/Dockerfile --no-cache | ||
docker stack rm osm | docker stack rm osm | ||
docker stack deploy -c / | docker stack deploy -c /etc/osm/docker/docker-compose.yaml osm |
Revision as of 13:16, 13 June 2018
Upgrading the OSM platform
Due to the new architecture and dockerized components in OSM Release FOUR, OSM platform upgrade is easier than ever. Upgrading from v4.0.0 to the latest minor version is as simple as running again the installer:
wget https://osm-download.etsi.org/ftp/osm-4.0-four/install_osm.sh chmod +x install_osm.sh ./install_osm.sh
You will be asked if you want to proceed with the installation and configuration of LXD, juju, docker CE and the initialization of a local docker swarm, as pre-requirements. Please answer "y".
Then, some dialog messages related to LXD configuration will be shown. This is what you have to answer:
- Do you want to configure the LXD bridge? Yes
- Do you want to setup an IPv4 subnet? Yes
- << Default values apply for next questions >>
- Do you want to setup an IPv6 subnet? No
That's all. You will have the newest OSM version installed.
Upgrading a specific component to use the latest code in the repos
For the RO (ro and ro-db):
docker pull mysql:5 git clone https://osm.etsi.org/gerrit/osm/RO docker build RO -f RO/docker/Dockerfile-local -t osm/ro --no-cache docker stack rm osm docker stack deploy -c /etc/osm/docker/docker-compose.yaml osm
For LCM:
git clone https://osm.etsi.org/gerrit/osm/LCM docker build LCM -f LCM/Dockerfile.local -t osm/lcm --no-cache docker stack rm osm docker stack deploy -c /etc/osm/docker/docker-compose.yaml osm
For MON and PM:
git clone https://osm.etsi.org/gerrit/osm/MON docker build MON -f MON/docker/Dockerfile -t osm/mon --no-cache docker build MON/policy_module -f MON/policy_module/Dockerfile -t osm/pm --no-cache docker stack rm osm docker stack deploy -c /etc/osm/docker/docker-compose.yaml osm
For NBI:
git clone https://osm.etsi.org/gerrit/osm/NBI docker build NBI -f NBI/Dockerfile.local -t osm/nbi --no-cache docker stack rm osm docker stack deploy -c /etc/osm/docker/docker-compose.yaml osm
For light UI:
git clone https://osm.etsi.org/gerrit/osm/LW-UI docker build LW-UI -t osm/light-ui -f LW-UI/Dockerfile --no-cache docker stack rm osm docker stack deploy -c /etc/osm/docker/docker-compose.yaml osm