Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Docker image creation fails with molecule #79

Closed
lkalina-cera opened this issue Jul 13, 2021 · 2 comments
Closed

Docker image creation fails with molecule #79

lkalina-cera opened this issue Jul 13, 2021 · 2 comments

Comments

@lkalina-cera
Copy link

Issue Type

  • Bug report

Molecule and Ansible details

molecule 3.3.0 using python 3.7
    ansible:2.10.8
    delegated:3.3.0 from molecule
    docker:0.2.4 from molecule_docker

Molecule installation method (one of):

pip (in a venv)
Ansible installation method (one of):

pip (in a venv)

Desired Behavior

Here is my simple project structure.
I would like to use the image for further work.

└── molecule
    └── default
        ├── Dockerfile
        ├── converge.yml
        ├── molecule.yml
        └── test_folder
            └── test_file

Dockerfile content

FROM centos:7

COPY test_folder /test_folder

converge-yml content

---
- name: Converge example
  hosts: localhost
  gather_facts: no

molecule.yml content

---
dependency:
  name: galaxy
driver:
  name: docker
platforms:
  - name: atestimage
    image: test/testimage:0.1
    dockerfile: Dockerfile
    pre_build_image: false
provisioner:
  name: ansible
scenario:
  create_sequence:
    - dependency
    - create
    - destroy

In the command line I use molecule create and then the images should have created.

Actual Behaviour

Image creations fails with the following message

msg": "Error building molecule_local/test/testimage - code: None, message: COPY failed: stat /var/lib/docker/tmp/docker-builder598809966/test_folder: no such file or directory,

Please help me to identify whats the problem whit this.

@tadeboro tadeboro transferred this issue from ansible/molecule Jul 31, 2021
@tadeboro
Copy link

This issue should be solved in the development version of the docker driver. Can you please test this and report back?

See #51 for more details about the implementation details.

@lkalina-cera
Copy link
Author

lkalina-cera commented Aug 2, 2021

I reinstalled the ansible, and molecule and their dependencies in a virtual env with the following versions

    ansible:2.11.2
    delegated:3.3.4 from molecule
    docker:0.3.4 from molecule_docker```
    now the image creation works fine.
    
 I am going to close this issue, thanks for your help @tadeboro 

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

No branches or pull requests

2 participants