Reputation: 1075
I would like to move the Omnibus gitlab docker image to openshift V3, so I've got the dockerfile and docker-compose files @ https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master/docker. What is the best way for having a scalable openshift v3 pod ? As the command oc import docker-compose is experimental so I stuck and lost in the process of building a reliable solution. Thanks Herve
Upvotes: 13
Views: 9667
Reputation: 1047
You should use https://kompose.io/
Run kompose convert --provider=openshift
in the same directory as your docker-compose.yaml
file.
Upvotes: 9
Reputation: 1664
Apparently, that capability was introduced in openshift origin : https://github.com/openshift/origin/commit/7a08be6b6e61cef531e8a6d99df60e50fca87221
oc import docker-compose -f [docker-compose-file.yml]
Note: I haven't tested it yet. I hope it works.
Upvotes: 3