Moving a docker-compose container to openshift V3
Asked Answered
B

2

13

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

Breathy answered 31/12, 2016 at 9:32 Comment(0)
S
9

You should use https://kompose.io/

Run kompose convert --provider=openshift in the same directory as your docker-compose.yaml file.

Salesmanship answered 2/8, 2019 at 16:23 Comment(0)
L
3

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.

Lelahleland answered 30/1, 2018 at 18:25 Comment(1)
This is no longer available - it was removed in favour of using Kompose according to the discussion here github.com/openshift/origin/issues/16748#issuecomment-335119762Barreto

© 2022 - 2024 — McMap. All rights reserved.