require 'sequel' DATABASE_URL = "{{ pillar['web-services.p4_phoenix_services.db_url'] }}" DB = Sequel.connect(DATABASE_URL) require 'p4_phoenix_services' require 'uri' P4_URL = URI("{{ pillar['p4d.url'] }}") phx = P4PhoenixServices::App.new phx.settings.p4 = { 'port' => "#{P4_URL.host ? P4_URL.host + ':' : ''}#{P4_URL.port || '1666'}" } phx.settings.p4['charset'] = 'auto' phx.settings.token_path = "{{ pillar['web-services.token_path'] }}" phx.settings.p4_project_services_url = "{{ pillar['web-services.p4_project_services.url'] }}" phx.settings.p4_web_api_url = "{{ pillar['web-services.p4_web_api.url'] }}" phx.settings.phoenix_updater_url = "{{ pillar['web-services.phoenix_updater.url'] }}" run phx
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 13972 | tjuricek |
Removing old microservice implementations. The system is now mostly a monolith. Eventually there will be a websocket service. |
||
#1 | 13530 | tjuricek |
Add p4_phoenix_services package and Salt configuration for deployment. This uncovered a couple of issues from the C++ API during it's conversion to C++03. So, in a nutshell, most operations, except for notifications, appear to be working (well, using Vagrant machines). |
||
//guest/perforce_software/helix-web-services/main/p4_phoenix_services/p4_phoenix_services/config.ru | |||||
#4 | 13488 | tjuricek |
Added hsm:startworld and hsm:stopworld tasks to do global starts and stops. This is not without apparent issues. It appears bundler or ruby is pausing before the nginx launch task happens. I'm not sure if there's some kind of resource issue first. P4WEBAPI-49 |
||
#3 | 13487 | tjuricek |
Pushing host, port, and URL configuration into docker-compose.yml consistently. All other configuration will be figured out by a separate system later. P4WEBAPI-51 |
||
#2 | 13482 | tjuricek |
Fix issues with running the Phoenix test suite against basic CRUD operations. Does *not* test the notifications mechanism, but we have preliminary phoenix project caching on create, and does generate a simple stream for each phoenix project. |
||
#1 | 13478 | tjuricek |
Added Docker configuration for notification services, and phoenix services, also, opened up most ports to the host by default. The current configuration is now working first for a setup of "development mode" environments, anticipating that each service will use the private internal network for most services. That way, you can selectively run things, say, in your OS X environment, and other things in the docker cluster. It can make your debugging a little easier. When more automation is available, we'll find a way to describe how to handle this in different ways. |