Skip to content

Update the docker image vmware-py3 #9287

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

Merged
merged 11 commits into from
Nov 2, 2022
Merged

Update the docker image vmware-py3 #9287

merged 11 commits into from
Nov 2, 2022

Conversation

michal-dagan
Copy link
Contributor

@michal-dagan michal-dagan commented Oct 19, 2022

Status

Ready

Related Content Pull Request

Related PR: link to the PR at demisto/content

Related Issues

Related: link to the issue

Description

Update the docker image to python3

@dc-builder
Copy link
Contributor

Docker Image Ready - Dev

Docker automatic build at CircleCI has deployed your docker image: devdemisto/vmware-py3:1.0.0.36420
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/vmware-py3/tags
Get started by pulling the image:

docker pull devdemisto/vmware-py3:1.0.0.36420

Docker Metadata

  • Image Size: 28.13 MB

  • Image ID: sha256:9a56c2a46cdb07bb44d5383e63a4d373d9d66ccec6e875adda43576e3cf7db8b

  • Created: 2022-10-19T13:39:05.586388313Z

  • Arch: linux/amd64

  • Command: ["python3"]

  • Environment:

    • PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • LANG=C.UTF-8
    • GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
    • PYTHON_VERSION=3.10.8
    • PYTHON_PIP_VERSION=22.2.2
    • PYTHON_SETUPTOOLS_VERSION=63.2.0
    • PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py
    • PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4
    • DOCKER_IMAGE=devdemisto/vmware-py3:1.0.0.36420
  • Labels:

    • org.opencontainers.image.authors:Demisto <containers@demisto.com>
    • org.opencontainers.image.revision:c2d41fb73d7e1f93431e2154c19456372caf05fe
    • org.opencontainers.image.version:1.0.0.36420

@dc-builder
Copy link
Contributor

Docker Image Ready - Dev

Docker automatic build at CircleCI has deployed your docker image: devdemisto/vmware-py3:1.0.0.36672
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/vmware-py3/tags
Get started by pulling the image:

docker pull devdemisto/vmware-py3:1.0.0.36672

Docker Metadata

  • Image Size: 67.25 MB

  • Image ID: sha256:3ca4c921f608b6f5a373261b058325e403f49cfb925ebdcbf6fadf7c8ee95700

  • Created: 2022-10-23T11:45:27.238934196Z

  • Arch: linux/amd64

  • Command: ["python3"]

  • Environment:

    • PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • LANG=C.UTF-8
    • GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
    • PYTHON_VERSION=3.10.8
    • PYTHON_PIP_VERSION=22.2.2
    • PYTHON_SETUPTOOLS_VERSION=63.2.0
    • PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py
    • PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4
    • DOCKER_IMAGE=devdemisto/vmware-py3:1.0.0.36672
  • Labels:

    • org.opencontainers.image.authors:Demisto <containers@demisto.com>
    • org.opencontainers.image.revision:4e7ba7a00a6e1f8d3dffb9452e453f42295d790e
    • org.opencontainers.image.version:1.0.0.36672

@dc-builder
Copy link
Contributor

Docker Image Ready - Dev

Docker automatic build at CircleCI has deployed your docker image: devdemisto/vmware-py3:1.0.0.36674
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/vmware-py3/tags
Get started by pulling the image:

docker pull devdemisto/vmware-py3:1.0.0.36674

Docker Metadata

  • Image Size: 67.25 MB

  • Image ID: sha256:e28b623c784fd4794397a387ca2580d094af145f74a48585e6701b55ed40ebda

  • Created: 2022-10-23T13:31:10.342904958Z

  • Arch: linux/amd64

  • Command: ["python3"]

  • Environment:

    • PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • LANG=C.UTF-8
    • GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
    • PYTHON_VERSION=3.10.8
    • PYTHON_PIP_VERSION=22.2.2
    • PYTHON_SETUPTOOLS_VERSION=63.2.0
    • PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py
    • PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4
    • DOCKER_IMAGE=devdemisto/vmware-py3:1.0.0.36674
  • Labels:

    • org.opencontainers.image.authors:Demisto <containers@demisto.com>
    • org.opencontainers.image.revision:7390176f43e9f1ba5bef413638abb2b0435f70ab
    • org.opencontainers.image.version:1.0.0.36674

@dc-builder
Copy link
Contributor

Docker Image Ready - Dev

Docker automatic build at CircleCI has deployed your docker image: devdemisto/vmware-py3:1.0.0.36675
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/vmware-py3/tags
Get started by pulling the image:

docker pull devdemisto/vmware-py3:1.0.0.36675

Docker Metadata

  • Image Size: 67.25 MB

  • Image ID: sha256:c1e704b921b0c7e4c8510521277580f5a679318eb59ed7982d7e6126e612b6e6

  • Created: 2022-10-23T13:33:36.168973168Z

  • Arch: linux/amd64

  • Command: ["python3"]

  • Environment:

    • PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • LANG=C.UTF-8
    • GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
    • PYTHON_VERSION=3.10.8
    • PYTHON_PIP_VERSION=22.2.2
    • PYTHON_SETUPTOOLS_VERSION=63.2.0
    • PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py
    • PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4
    • DOCKER_IMAGE=devdemisto/vmware-py3:1.0.0.36675
  • Labels:

    • org.opencontainers.image.authors:Demisto <containers@demisto.com>
    • org.opencontainers.image.revision:5d22beab1f913295ce8df8349e786d119be5db21
    • org.opencontainers.image.version:1.0.0.36675

@JudahSchwartz
Copy link
Collaborator

is there a seperate integration using the py2 version? Can we keep this under the same name, and do a major bump to version?

@dc-builder
Copy link
Contributor

Docker Image Ready - Dev

Docker automatic build at CircleCI has deployed your docker image: devdemisto/vmware:1.0.0.36741
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/vmware/tags
Get started by pulling the image:

docker pull devdemisto/vmware:1.0.0.36741

Docker Metadata

  • Image Size: 67.27 MB

  • Image ID: sha256:f05ce53af3fd8d8f9b11c457f0256653642c5b89d9167498d651f5afeeec9df8

  • Created: 2022-10-25T10:41:59.198845175Z

  • Arch: linux/amd64

  • Command: ["python3"]

  • Environment:

    • PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • LANG=C.UTF-8
    • GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
    • PYTHON_VERSION=3.10.8
    • PYTHON_PIP_VERSION=22.2.2
    • PYTHON_SETUPTOOLS_VERSION=63.2.0
    • PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py
    • PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4
    • DOCKER_IMAGE=devdemisto/vmware:1.0.0.36741
  • Labels:

    • org.opencontainers.image.authors:Demisto <containers@demisto.com>
    • org.opencontainers.image.revision:48c4ee900f292b02282477da045d68aeef3ff045
    • org.opencontainers.image.version:1.0.0.36741

@dc-builder
Copy link
Contributor

Docker Image Ready - Dev

Docker automatic build at CircleCI has deployed your docker image: devdemisto/vmware:2.0.0.36742
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/vmware/tags
Get started by pulling the image:

docker pull devdemisto/vmware:2.0.0.36742

Docker Metadata

  • Image Size: 67.27 MB

  • Image ID: sha256:22dc2c5592510a267fe648b5527367feb44cbfb1e3d750ffcab2cff120cbfc7b

  • Created: 2022-10-25T11:14:49.618567266Z

  • Arch: linux/amd64

  • Command: ["python3"]

  • Environment:

    • PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • LANG=C.UTF-8
    • GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
    • PYTHON_VERSION=3.10.8
    • PYTHON_PIP_VERSION=22.2.2
    • PYTHON_SETUPTOOLS_VERSION=63.2.0
    • PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py
    • PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4
    • DOCKER_IMAGE=devdemisto/vmware:2.0.0.36742
  • Labels:

    • org.opencontainers.image.authors:Demisto <containers@demisto.com>
    • org.opencontainers.image.revision:9df0ab29a5489657880980b88c5f37a087f04a96
    • org.opencontainers.image.version:2.0.0.36742

[packages]
pyVim = "*"
pyVmomi = "*"
vsphere-automation-sdk = {file = "https://github.com/vmware/vsphere-automation-sdk-python/archive/refs/tags/v7.0.3.0.tar.gz"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we able to add git+https://github.com/vmware/vsphere-automation-sdk-python.git@v8.0.0.1 here similiar to how this was done in the past instead of to the dockerfile?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we tried it doesn't work, the installation via pipenv fails with python 3

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at the end of the day this gets installed using a requirements.txt file, not pipenv- thats how our build works under the hood. What syntax did you use to add this to the pipfile?

Copy link
Contributor Author

@michal-dagan michal-dagan Oct 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vsphere-automation-sdk = {file = "https://github.com/vmware/vsphere-automation-sdk-python/archive/refs/tags/v8.0.0.1.tar.gz"}

vsphere-automation-sdk-python = {git = "https://github.com/vmware/vsphere-automation-sdk-python.git", ref = "v7.0.1.0" }

pipenv install git+https://github.com/vmware/vsphere-automation-sdk-python.git#egg=vSphere-Automation-SDK

and more.. with different versions, all gave the same error as mention here: vmware/vsphere-automation-sdk-python#302
I searched it more in google, and also consulted with Ilan, but maybe there is a way I'm not aware of?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is happening when running pipenv lock?

Copy link
Contributor Author

@michal-dagan michal-dagan Nov 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes
image

@dc-builder
Copy link
Contributor

Docker Image Ready - Dev

Docker automatic build at CircleCI has deployed your docker image: devdemisto/vmware:2.0.0.36897
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/vmware/tags
Get started by pulling the image:

docker pull devdemisto/vmware:2.0.0.36897

Docker Metadata

  • Image Size: 67.27 MB

  • Image ID: sha256:c380a2dd7f2df4fe0ceb05d08694a8796071bf453a819ea9e38511fb39cfa9c8

  • Created: 2022-10-31T07:31:22.210441163Z

  • Arch: linux/amd64

  • Command: ["python3"]

  • Environment:

    • PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • LANG=C.UTF-8
    • GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
    • PYTHON_VERSION=3.10.8
    • PYTHON_PIP_VERSION=22.2.2
    • PYTHON_SETUPTOOLS_VERSION=63.2.0
    • PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py
    • PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4
    • DOCKER_IMAGE=devdemisto/vmware:2.0.0.36897
  • Labels:

    • org.opencontainers.image.authors:Demisto <containers@demisto.com>
    • org.opencontainers.image.revision:273bfe5492d9e82089abd2dc812dd98f8534eb37
    • org.opencontainers.image.version:2.0.0.36897

@michal-dagan michal-dagan merged commit 3bf174a into master Nov 2, 2022
@michal-dagan michal-dagan deleted the VMware_to_py3 branch November 2, 2022 13:44
@dc-builder
Copy link
Contributor

Docker Image Ready - Production

Docker automatic build at CircleCI has deployed your docker image: demisto/vmware:2.0.0.37077
It is available now on docker hub at: https://hub.docker.com/r/demisto/vmware/tags
Get started by pulling the image:

docker pull demisto/vmware:2.0.0.37077

Docker Metadata

  • Image Size: 68.81 MB

  • Image ID: sha256:6ed6d66517931c672c4b074061fcb5e057bb25bdf7f1c5b2f7c3296d4f00713f

  • Created: 2022-11-02T13:46:59.086483642Z

  • Arch: linux/amd64

  • Command: ["python3"]

  • Environment:

    • PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • LANG=C.UTF-8
    • GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
    • PYTHON_VERSION=3.10.8
    • PYTHON_PIP_VERSION=22.2.2
    • PYTHON_SETUPTOOLS_VERSION=63.2.0
    • PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py
    • PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4
    • DOCKER_IMAGE=demisto/vmware:2.0.0.37077
  • Labels:

    • org.opencontainers.image.authors:Demisto <containers@demisto.com>
    • org.opencontainers.image.revision:3bf174ad57303279617ac8ef030b88134f43ec62
    • org.opencontainers.image.version:2.0.0.37077

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

Successfully merging this pull request may close these issues.

3 participants