Page MenuHomeDevCentral

Deploy corspat container on Docker PaaS
Changes PlannedPublic

Authored by dereckson on Jan 23 2024, 01:07.
Tags
None
Referenced Files
F3278208: D3300.id8497.diff
Mon, Jul 1, 08:21
F3276786: D3300.id8496.diff
Mon, Jul 1, 07:58
Unknown Object (File)
Sun, Jun 30, 07:11
Unknown Object (File)
Sat, Jun 29, 19:39
Unknown Object (File)
Sat, Jun 29, 16:41
Unknown Object (File)
Sat, Jun 29, 14:36
Unknown Object (File)
Sat, Jun 29, 14:32
Unknown Object (File)
Sat, Jun 29, 10:44
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.