Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker and docker-compose across production cluster #7676

Closed
9 tasks done
cdrini opened this issue Mar 16, 2023 · 1 comment
Closed
9 tasks done

Update docker and docker-compose across production cluster #7676

cdrini opened this issue Mar 16, 2023 · 1 comment
Assignees
Labels
Affects: Configuration Related to the configuration of the dev/staging/prod environments, CI, docker, etc. [managed] Lead: @cdrini Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed] Priority: 2 Important, as time permits. [managed] Theme: Provisioning

Comments

@cdrini
Copy link
Collaborator

cdrini commented Mar 16, 2023

The only potential change that could cause us problems is that newer versions of docker-compose use hyphens instead of underscores in their container names. E.g. Previously our container would be called openlibrary_web_1. Now it will be openlibrary-web-1

  • Search codebase for openlibrary_ or solr_builder_. Switch any matches to hyphens.

Then we can start migrating prod. Do in this order, confirming after each step the containers restarted correctly.

  • ol-dev1
  • ol-web1
  • ol-web2
  • ol-solr1
  • ol-solr0
  • ol-covers0
  • ol-www0
  • ol-home0
@cdrini cdrini added Theme: Provisioning Priority: 2 Important, as time permits. [managed] Affects: Configuration Related to the configuration of the dev/staging/prod environments, CI, docker, etc. [managed] Lead: @cdrini Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed] labels Mar 16, 2023
@cdrini cdrini added this to the Sprint 2023-03 milestone Mar 16, 2023
@cclauss
Copy link
Contributor

cclauss commented Mar 22, 2023

ol-home0% ./ubuntu_versions.sh

ol-covers0
VERSION="20.04.6 LTS (Focal Fossa)"
Docker version 23.0.1, build a5ee5b1
Docker Compose version v2.16.0

ol-dev1
VERSION="18.04.6 LTS (Bionic Beaver)"
Docker version 23.0.1, build a5ee5b1
Docker Compose version v2.16.0

ol-home0
VERSION="20.04.6 LTS (Focal Fossa)"
Docker version 23.0.1, build a5ee5b1
Docker Compose version v2.16.0

ol-solr0
VERSION="20.04.6 LTS (Focal Fossa)"
Docker version 23.0.1, build a5ee5b1
Docker Compose version v2.16.0

ol-solr1
VERSION="20.04.6 LTS (Focal Fossa)"
Docker version 23.0.1, build a5ee5b1
Docker Compose version v2.16.0

ol-web1
VERSION="20.04.6 LTS (Focal Fossa)"
Docker version 23.0.1, build a5ee5b1
Docker Compose version v2.16.0

ol-web2
VERSION="20.04.6 LTS (Focal Fossa)"
Docker version 23.0.1, build a5ee5b1
Docker Compose version v2.16.0

ol-www0
VERSION="20.04.6 LTS (Focal Fossa)"
Docker version 23.0.1, build a5ee5b1
Docker Compose version v2.16.0

cat ./ubuntu_versions.sh

#!/bin/bash

# Which Ubuntu release are we running on?  Do not fail if /etc/os-release does not exist.
# cat /etc/os-release | grep VERSION= || true  # VERSION="20.04.1 LTS (Focal Fossa)"

SERVERS="ol-backup0 ol-covers0 ol-db1 ol-db2 ol-dev0 ol-dev1 ol-home ol-home0 ol-mem0 ol-mem1 ol-mem2 ol-solr0 ol-solr1 ol-web1 ol-web2 ol-www0 ol-www1"
for SERVER in $SERVERS; do
    ssh $SERVER "hostname --short ; cat /etc/os-release | grep VERSION= ; docker --version ; docker compose version || true"
done

% docker version

Client: Docker Engine - Community
 Version:           23.0.1
 API version:       1.42
 Go version:        go1.19.5
 Git commit:        a5ee5b1
 Built:             Thu Feb  9 19:46:56 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          23.0.1
  API version:      1.42 (minimum version 1.12)
  Go version:       go1.19.5
  Git commit:       bc3805a
  Built:            Thu Feb  9 19:46:56 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.18
  GitCommit:        2456e983eb9e37e47538f59ea18f2043c9a73640
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Affects: Configuration Related to the configuration of the dev/staging/prod environments, CI, docker, etc. [managed] Lead: @cdrini Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed] Priority: 2 Important, as time permits. [managed] Theme: Provisioning
Projects
None yet
Development

No branches or pull requests

2 participants