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

Unable to kompose up my django container from windows or azure cloudshell. #966

Open
nh2d opened this Issue Mar 25, 2018 · 7 comments

Comments

Projects
None yet
7 participants
@nh2d

nh2d commented Mar 25, 2018

version: '2' 

volumes:
  postgres_data_local: {}
  postgres_backup_local: {}

services:
  django: &django
    build:
      context: .
      dockerfile: ./compose/local/django/Dockerfile
    image: enjoithesk8life/test_respo:django
    depends_on:
      - postgres
    volumes:
      - .:/app
    environment:
      - POSTGRES_USER=nh2d
      - USE_DOCKER=yes
    ports:
      - "8000:8000"
    command: /start.sh

  postgres:
    build:
      context: .
      dockerfile: ./compose/production/postgres/Dockerfile
    volumes:
      - postgres_data_local:/var/lib/postgresql/data
      - postgres_backup_local:/backups
      - /var/lib/postgresql:/var/run/postgresql
    environment:
      - POSTGRES_USER=nh2d


  redis:
    image: redis:3.0

  celeryworker:
    # https://github.com/docker/compose/issues/3220
    <<: *django
    image: enjoithesk8life/test_respo:celeryworker
    depends_on:
      - redis
      - postgres
    ports: []
    command: /start-celeryworker.sh

  celerybeat:
    # https://github.com/docker/compose/issues/3220
    <<: *django
    image: enjoithesk8life/test_repo:celerybeat
    depends_on:
      - redis
      - postgres
    ports: []
    command: /start-celerybeat.sh

From cookie-cutter django. Did not change much. Just trying to test a deploy here.... I get

�[33mWARN�[0m Unsupported root level volumes key - ignoring
�[33mWARN�[0m Unsupported depends_on key - ignoring
�[36mINFO�[0m Build key detected. Attempting to build and push image 'enjoithesk8life/test_repo:django'
�[36mINFO�[0m Building image 'enjoithesk8life/test_repo:django' from directory 'E:\projects\hoos_feeding\src\hoos_fed'
�[31mFATA�[0m Error while deploying application: k.Transform failed: Unable to build Docker image for service django: open \tmp\kompose-image-build-929081207: The system cannot find the path specified.

From powershell.

When I tried in azure cloudshell I get an error at same point but with different message:

navid@Azure:~/clouddrive/hoos_feeding/src/hoos_fed$ ../../../kompose --file local.yml up
WARN Unsupported root level volumes key - ignoring
WARN Unsupported depends_on key - ignoring
INFO Build key detected. Attempting to build and push image 'enjoithesk8life/test_repo:celerybeat'
INFO Building image 'enjoithesk8life/test_repo:celerybeat' from directory 'hoos_fed'
FATA Error while deploying application: k.Transform failed: Unable to build Docker image for service celerybeat: Unable to build image. For more output, use -v or --verbose when converting.: dial unix /var/run/docker.sock: connect: no such file or directory

@hangyan

This comment has been minimized.

Member

hangyan commented Mar 25, 2018

I believe kompose have bot been well tested on windows...

@nrsattele

This comment has been minimized.

nrsattele commented Jun 4, 2018

Has any progress been made on this? Getting the same error

@y12at

This comment has been minimized.

y12at commented Jun 11, 2018

Same issue.

@mixas27

This comment has been minimized.

mixas27 commented Jul 4, 2018

I have the same problem

@segrax

This comment has been minimized.

Contributor

segrax commented Sep 6, 2018

Hardcoded path to /tmp is probably the cause

tmpFile, err := ioutil.TempFile("/tmp", "kompose-image-build-")

@hangyan

This comment has been minimized.

Member

hangyan commented Sep 7, 2018

@mixas27 @y12at @nrsattele @nh2d Merge a PR to fix this, give it another try if you guys willing to.

@BRMC888

This comment has been minimized.

BRMC888 commented Oct 25, 2018

Still getting this issue on windows version 1.16.0 (0c01309)

FATA Error while deploying application: k.Transform failed: Unable to build Docker image for service admin-mongo: open \tmp\kompose-image-build-354181415: The system cannot find the path specified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment