Skip to content
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

kompose up - unmarshal errors when using docker compose version '3' #1064

Closed
lakshmanvvs opened this issue Aug 13, 2018 · 5 comments
Closed

Comments

@lakshmanvvs
Copy link

lakshmanvvs commented Aug 13, 2018

Using docker compose version 3, kompose convert creates deployment/service files, when using kompose up, I get
ERRO Could not parse config for project kubecompose : yaml: unmarshal errors: line 1: cannot unmarshal !!str extensi...into config.RawService line 2: cannot unmarshal !!strDeployment into config.RawService

kompose version 1.16.0 (0c01309)

Using Docker for Mac - OS - High Sierra

Client:
 Version:           18.06.0-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        0ffa825
 Built:             Wed Jul 18 19:05:26 2018
 OS/Arch:           darwin/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.0-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       0ffa825
  Built:            Wed Jul 18 19:13:46 2018
  OS/Arch:          linux/amd64
  Experimental:     true
 Kubernetes:
  Version:          v1.10.3
  StackAPI:         v1beta2

Expected behavior: kompose up deploys on kubernetes

@hangyan
Copy link
Contributor

hangyan commented Aug 15, 2018

@lakshmanvvs Would you mind to paste a sample compose file that can reproduce these errors?

@lakshmanvvs
Copy link
Author

@hangyan
Sure

version: "3"

services:
  inspections-aggregate-service:
    build:
      context: ./
      dockerfile: ./docker/Dockerfile
    image: inspections-aggregate-service
    entrypoint: ./entrypoint.sh
    ports:
      - "7110:8080"
    environment:
      - https_proxy=${https_proxy}
      - HTTPS_PROXY=${HTTPS_PROXY}
      - http_proxy=${http_proxy}
      - HTTP_PROXY=${HTTP_PROXY}
      - COUCHBASE_HOSTNAME=couchbase-server
      - COUCHBASE_BUCKET_NAME=vin-info
      - COUCHBASE_BUCKET_EDCRAY=bananarama
      - COUCHBASE_CLUSTER_USERNAME=Administrator
      - COUCHBASE_CLUSTER_EDCRAY=bananarama
      - COUCHBASE_KEY_VALUE_TIMEOUT=35000
      - COUCHBASE_QUERY_TIMEOUT=35000
      - COUCHBASE_SOCKET_TIMEOUT=40000
      - COUCHBASE_CONNECT_TIMEOUT=40000
    depends_on:
      - couchbase-server
  couchbase-server:
    build:
      context: ./docker/couchbase
      dockerfile: Dockerfile
    image: couchbase-custom:4.0
    environment:
      - COUCHBASE_ADMIN_NAME=Administrator
      - COUCHBASE_ADMIN_EDCRAY=bananarama
      - COUCHBASE_CLUSTER_EDCRAY=bananarama
    ports:
      - "7111:8091"
      - "7112:8092"
      - "7113:8093"
      - "7114:8094"
      - "7115:11210"

@lakshmanvvs
Copy link
Author

@hangyan
Apologies. Looks like it does convert the file into deployment and service yaml files.
I wonder why I got the above unmarshal errors.

@hangyan
Copy link
Contributor

hangyan commented Aug 17, 2018

@lakshmanvvs NP. Close this for now. Will reopen if it occurs to you agagin.

@hangyan hangyan closed this as completed Aug 17, 2018
@etotientz
Copy link

I am getting line 1: cannot unmarshal !!str 3.8 into config.RawService when using
version: '3.8'
in my docker-compose.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants