Actions
Bug #9345
closed[Deployment] centos7 test strategy for arvados-sso-server package needs work
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