Page MenuHomePhabricator

Setup demo server in Cloud VPS project
Closed, ResolvedPublic

Description

Setup a demonstration server using Docker and the PipelineLib managed post-merge container in our new Cloud VPS project. Ideally the implementation will include an auto-update mechanism so that new builds are automatically noticed and deployed when ready. Bonus points if this also logs a SAL message so we can see the deploy history easily (and trace back update failures).

Related Objects

Event Timeline

bd808 triaged this task as High priority.Dec 15 2021, 4:48 PM
bd808 changed the task status from Open to In Progress.Dec 21 2021, 1:21 AM
bd808 claimed this task.
$ ssh devportal-demo01.devportal.eqiad1.wikimedia.cloud
$ sudo vim /etc/apt/sources.list # Fix config for T291168
$ sudo apt install podman docker-compose
$ sudo podman pull docker-registry.wikimedia.org/wikimedia/wikimedia-developer-portal:latest
$ sudo podman run --name developer-portal --label 'io.containers.autoupdate=image' --rm --detach --publish 0.0.0.0:8000:8000 docker-registry.wikimedia.org/wikimedia/wikimedia-developer-portal:latest
$ sudo podman generate systemd --new --name developer-portal | sudo tee /etc/systemd/system/developer-portal.service
$ sudo systemctl enable developer-portal
$ sudo systemctl start developer-portal
$ sudo systemctl edit podman-auto-update.timer # Set to run every 5m
$ sudo systemctl enable podman-auto-update.service
$ sudo systemctl start podman-auto-update.service

$ sudo podman logs -f developer-portal

The container is exposed as https://developer-portal.wmcloud.org/

apaskulin subscribed.

https://developer-portal.wmcloud.org/ is up and running with auto-deployed builds 🎉