Page MenuHomeDevCentral

Deploy corspat container on Docker PaaS
Changes PlannedPublic

Authored by dereckson on Jan 23 2024, 01:07.
Tags
None
Referenced Files
F3765374: D3300.id8496.diff
Fri, Nov 22, 12:01
Unknown Object (File)
Tue, Nov 19, 06:56
Unknown Object (File)
Mon, Nov 18, 21:40
Unknown Object (File)
Mon, Nov 11, 15:59
Unknown Object (File)
Sun, Nov 10, 09:37
Unknown Object (File)
Sun, Nov 10, 01:57
Unknown Object (File)
Sat, Nov 9, 23:47
Unknown Object (File)
Sat, Nov 9, 20:18
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 5227
Build 5508: 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.