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

Upgrade Drupal Docker Images and Containers #156

Closed
p-a-s-c-a-l opened this issue Jul 3, 2020 · 2 comments
Closed

Upgrade Drupal Docker Images and Containers #156

p-a-s-c-a-l opened this issue Jul 3, 2020 · 2 comments
Assignees
Labels
Best practice enhancement New feature or request SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless
Milestone

Comments

@p-a-s-c-a-l
Copy link
Member

p-a-s-c-a-l commented Jul 3, 2020

Stop and remove drupal containers:

cd /docker/100-csis
docker-compose down

Manually trigger incremental duplicity backup:

cd /docker/999-duplicity
docker-compose up

Hint: You can restore the latest backup-set with docker-compose up -f restore.yml to ./restore directory.

Edit Dockerfile and change base image to docker-drupal new version.
Example: FROM drupal:8.9.1-apache

Hint: This does not update the existing CSIS Drupal Core, since the actual drupal system lives in a host-mounted ./drupal-data volume! Therefore a manual update inside the new running container is required.

Edit compose file and change custom csis-drupal image tag, e.g. to 8.9.1-apache, in order to be able to revert to the previous image:

  drupal:
    image: csis-drupal:8.9.1-apache
    build:
      context: ./drupal

Also upgrade postgis/postgis image, if necessary.

  drupal-db:
    container_name: ${COMPOSE_PROJECT_NAME}-postgis
    image: postgis/postgis:10-3.0

Build our custom csis-drupal docker image:

cd /docker/100-csis
docker-compose build

Recreate containers:

docker-compose up -d --force-recreate --remove-orphans

sh into csis container and Update Drupal Core and modules.

sudo su docker
docker exec -it --user 999 csis-drupal bash
# composer ...
@p-a-s-c-a-l p-a-s-c-a-l added enhancement New feature or request Best practice labels Jul 3, 2020
p-a-s-c-a-l added a commit that referenced this issue Jul 3, 2020
p-a-s-c-a-l added a commit that referenced this issue Jul 3, 2020
p-a-s-c-a-l added a commit that referenced this issue Jul 3, 2020
@p-a-s-c-a-l p-a-s-c-a-l pinned this issue Jul 3, 2020
@p-a-s-c-a-l p-a-s-c-a-l changed the title Upgrade Drupal Container and Version Upgrade Drupal Docker Image, Core and Modules. Jul 3, 2020
@p-a-s-c-a-l p-a-s-c-a-l added this to the CSIS Release milestone Jul 3, 2020
@p-a-s-c-a-l p-a-s-c-a-l added the SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless label Jul 6, 2020
@p-a-s-c-a-l p-a-s-c-a-l changed the title Upgrade Drupal Docker Image, Core and Modules. Upgrade Drupal Docker Image, Core and Modules Jul 8, 2020
@p-a-s-c-a-l
Copy link
Member Author

@fgeyer16 Docker containers are now up-to-date on CSIS DEV. As described above, updates only apply to Apache, PHP, Postgres, etc. (see status report), Drupla Core + Modules have to be updated separately.

@p-a-s-c-a-l p-a-s-c-a-l changed the title Upgrade Drupal Docker Image, Core and Modules Upgrade Drupal Docker Images and Containers Jul 8, 2020
@p-a-s-c-a-l p-a-s-c-a-l unpinned this issue Jul 13, 2020
@p-a-s-c-a-l
Copy link
Member Author

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Best practice enhancement New feature or request SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless
Projects
None yet
Development

No branches or pull requests

3 participants