Update Docker #1
Labels
No Label
Kind/Bug
Kind/Doc
Kind/Feature
Kind/Security
Kind/Testing
Priority/High
Priority/Low
Priority/Medium
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: core/deprecated-oc-catalog#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Update dockerfile and compose to build a minimal container with Swagger like in oc-discovery component.
The docker-compose.yml shall be used for the current project and a docker-compose-prereq.yml shall be used for running dependencies, both on the opencloud network.
Need to update the configuration process, currently doesn't support the way oc-discovery runs in docker :
=> implementing onion to handle environment variables
Changed the architecture of the conf, moved it from models/conf.go to conf/conf.go to avoid import cycle between the models and services packages. Now the package to import in conf, which is available to every other package without risking an import cycle.
Identified some code that prevents the module to be compiled and then run outside of its directory.
It seems like the swagger is regenerated each time the server is launched. Actually there is a line in oc-catalog/routers/router.go that reads :
When running the binary in a scratch container or a folder different from the one where it was built, it generates a "parsing error".
I am still trying to understand why this part of the code was written and if we can get ride of it now that we generate the swagger in the Dockerfile with
Dockerfile has been reduced to a minimal size (30 Mb) by using a scratch image and generating the swagger during the build. Several modifications happened :