Created
          July 8, 2020 21:16 
        
      - 
      
- 
        Save Creatiwww/aeaf8b7c297fe1133f82a1c602f85e7d to your computer and use it in GitHub Desktop. 
    Medium - Cloud infrastructure configuration in declarative way with version control (Ansible, GitLab, OpenStack)
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM centos:centos7 | |
| ENV PYTHON_VERSION "3.6.1" | |
| ENV PYENV_ROOT /$HOME/.pyenv | |
| ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH | |
| RUN yum -y install epel-release \ | |
| && yum -y update \ | |
| && yum -y install \ | |
| gcc \ | |
| make \ | |
| git \ | |
| openssl-devel \ | |
| zlib-devel \ | |
| readline-devel \ | |
| sqlite-devel \ | |
| bzip2-devel \ | |
| && yum clean all | |
| # look for more info: https://github.com/pyenv/pyenv-installer | |
| RUN curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash | |
| RUN pyenv install ${PYTHON_VERSION} \ | |
| && pyenv global ${PYTHON_VERSION} | |
| RUN pip3 install --no-cache-dir \ | |
| ansible \ | |
| python-openstackclient | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment