-
Notifications
You must be signed in to change notification settings - Fork 4.7k
All services in docker-compose not mapped to OpenShift services #8943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@surajssd - The reason OpenShift does not create a service for Also, OpenShift is unable to identify to-be-exposed ports when you do a So, either do a However, name resolution not working might break some Docker Compose applications which are being run using @smarterclayton does it make sense if OpenShift could resolve names for the services mentioned in |
@containscafeine so yes I tried adding |
Unfortunately services and names are linked in Kubernetes, so you can't get On Fri, May 20, 2016 at 9:06 AM, Shubham [email protected] wrote:
|
Yes that makes sense! |
Fixed in #9009 On Tue, May 24, 2016 at 2:02 AM, Suraj Deshmukh [email protected]
|
I am trying
oc import docker-compose
with the following docker-compose file. When imported the OpenShift template that is generated looks like this. So with this new feature, with the intoductory mail it said:So this docker-compose file has 5 services, when imported it does get converted to 5 different
DeploymentConfigs
but not 5 different services. The reason I believe is the fact that the mail also says:So this docker-compose file has two networks(
front-tier
andback-tier
), two services(voting-app
andresult-app
) share networkfront-tier
whileback-tier
is shared by everyone. There is complicated sharing of networks.And so all of these services in docker-compose are not mapped with the services in OpenShift the application is not able to communicate within, most of the services call each other by name and since service does not exist it fails.
compose file:
Version
Steps To Reproduce
$ git clone https://github.com/docker/docker-birthday-3 $ cd docker-birthday-3/example-voting-app/ $ oc import docker-compose -f docker-compose.yml
Current Result
So currently when this application is imported the state of the application looks like this:
pods:
services
The text was updated successfully, but these errors were encountered: