In my requirements.txt
I am attempting to download python-ldap==3.2.0
. However, I need these dependencies. How should I download these using Google Build? I tried the following but got the errors:
Step #0 - "Dependency install": E: Unable to locate package libsasl2-dev
Step #0 - "Dependency install": E: Unable to locate package python-dev
Step #0 - "Dependency install": E: Unable to locate package libldap2-dev
Step #0 - "Dependency install": E: Unable to locate package libssl-dev
Step #0 - "Dependency install": Building dependency tree...
Step #0 - "Dependency install": Reading state information...
Finished Step #0 - "Dependency install"
2019/06/14 12:51:21 Step Step #0 - "Dependency install" finished
2019/06/14 12:51:21 status changed to "ERROR"
ERROR
ERROR: build step 0 "ubuntu" failed: exit status 100
2019/06/14 12:51:21 Error updating docker credentials: failed to update docker credentials: signal: killed
2019/06/14 12:51:21 Failed to delete homevol: exit status 1
2019/06/14 12:51:24 Build finished with ERROR status
cloudbuild.yaml
steps:
# Install Dependencies
- name: 'ubuntu'
id: Dependency install
args: ['apt-get', 'install',
'libsasl2-dev', 'python-dev', 'libldap2-dev', 'libssl-dev']
# Install Python Dependencies
- name: 'python'
id: Pip install
args: ['pip3', 'install', '-r', 'requirements.txt', '--user']
Then I tried
- name: 'ubuntu'
id: Dependency install
args: ['apt-get', 'update', '&&', 'apt-get', 'install',
'libsasl2-dev', 'python-dev', 'libldap2-dev', 'libssl-dev']
But that also failed.