Page MenuHomeDevCentral

Deploy corspat container on Docker PaaS
Changes PlannedPublic

Authored by dereckson on Jan 23 2024, 01:07.
Tags
None
Referenced Files
F3778800: D3300.diff
Mon, Nov 25, 06:19
F3776659: D3300.id8497.diff
Sun, Nov 24, 22:58
F3776658: D3300.id8496.diff
Sun, Nov 24, 22:58
F3776657: D3300.id8495.diff
Sun, Nov 24, 22:57
F3776477: D3300.id.diff
Sun, Nov 24, 22:33
F3776204: D3300.diff
Sun, Nov 24, 21:38
Unknown Object (File)
Fri, Nov 22, 12:37
Unknown Object (File)
Fri, Nov 22, 12:22
Subscribers
None

Details

Reviewers
inidal
Maniphest Tasks
T1949: Deploy corspat on docker
Summary

Ref T1949

Test Plan

Deploy on docker-002

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
corspat-docker
Build Status
Buildable 5229
Build 5510: arc lint + arc unit

Event Timeline

dereckson created this revision.
docker-002
$ deploy-container corspat
local:
----------
          ID: corspat
    Function: docker_container.running
      Result: True
     Comment: Created container 'corspat'
     Started: 01:13:52.318452
    Duration: 2883.061 ms
     Changes:
              ----------
              container_id:
                  ----------
                  added:
                      864eee3b3abe5f6be7ce8f07a26f1ec5ebf5fec5dc6c08cb2ba9c72e3bfe3ad4
              state:
                  ----------
                  new:
                      running
                  old:
                      None

Summary for local
------------
Succeeded: 1 (changed=1)
Failed:    0
------------
Total states run:     1
Total run time:   2.883 s

$ docker logs corspat
[2024-01-23 01:13:54 +0000] [1] [INFO] Starting gunicorn 20.1.0
[2024-01-23 01:13:54 +0000] [1] [INFO] Listening at: http://0.0.0.0:5000 (1)
[2024-01-23 01:13:54 +0000] [1] [INFO] Using worker: sync
[2024-01-23 01:13:54 +0000] [7] [INFO] Booting worker with pid: 7

Next step: nginx configuration

Regarding nginx config, the nginx unit now copies _default.conf if service configuration is missing (here that would be roles/paas-docker/nginx/files/vhosts/corspat.conf). It seems this default config with only proxy_pass works correctly.

There is just a matter HTTP/HTTPS to fix at app or proxy level.