Project

General

Profile

Actions

Bug #9345

closed

[Deployment] centos7 test strategy for arvados-sso-server package needs work

Added by Brett Smith almost 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Story points:
-

Description

test-package-arvados-sso-server.sh actually brings up a PostgreSQL server inside a Docker container as part of its work. However, its current approach needs a lot of work on centos7:

  • It runs service postgresql start. service doesn't even exist on centos7.
  • Even after you change that to systemctl start postgresql, that fails because systemd isn't actually running in the container. You can run systemd inside the container, but it requires more setup than our test scripts currently do. You have to at least mount /sys/fs/cgroup as a volume, run the container privileged (it might work to just grant CAP_SYS_ADMIN), and actually run /usr/sbin/init as the command. You might also need an environment variable. Then you can exec something else inside the existing container.

(Things work on debian8 because service does exist there, and at the very least it falls back to launching the process sysvinit-style when you issue the command.)

I don't know if ops has opinions about running Docker containers on ci the suggested way (especially running privileged containers), or what.

Actions #1

Updated by Brett Smith almost 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset arvados|commit:e47a01ee19ee44b8004bab7ed7eec5bbf72f175e.

Actions

Also available in: Atom PDF