Page MenuHomeDevCentral

Deploy corspat container on Docker PaaS
Changes PlannedPublic

Authored by dereckson on Jan 23 2024, 01:07.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 10:47
Unknown Object (File)
Wed, Dec 18, 10:27
Unknown Object (File)
Tue, Dec 17, 07:59
Unknown Object (File)
Sun, Dec 15, 15:04
Unknown Object (File)
Sun, Dec 15, 15:04
Unknown Object (File)
Sun, Dec 15, 15:04
Unknown Object (File)
Fri, Dec 13, 06:41
Unknown Object (File)
Fri, Dec 13, 03:47
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 5228
Build 5509: 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.