Comments (5)
bump - also ran into this bug
from cloud-builders-community.
I've also been running into this issue lately and couldn't track down the cause. It works fine running in the Cloud, but local doesn't seem to mount volumes correctly. Usually it's empty, but one of my services has a few of the sub-folders visible. However, those sub-folders are also empty. I've tried relative and absolute paths.
I've also tried defining volumes separately (after the steps:
section). Doing it this way creates a file-not-found error at least:
volumes:
data:
driver_opts:
type: none
device: /path-to-data
o: bind
from cloud-builders-community.
Is there a work-around for this issue?
from cloud-builders-community.
@Philmod sorry to ping, but wondering if you have thoughts on this?
Maybe you have an idea of root cause?
from cloud-builders-community.
I've ran into this issue as well, except with images based on 'gcr.io/cloud-builders/docker'. I was able to get mounted volumes to show up in 'gcr.io/cloud-builders/gsutil' layers, but only if I first include a step that calls docker run
, explicitly mounting the volumes like this:
- name: 'gcr.io/cloud-builders/docker'
args: [ "run", "--rm", "-v", "vol1:/output", "gcr.io/$PROJECT_ID/tdc:latest"]
volumes:
- name: 'vol1'
path: '/output'
Then the following step will correctly list the expected contents of /output:
- name: 'gcr.io/cloud-builders/gsutil'
entrypoint: "bash"
args: [ "-c", "ls", "-l", "/workspace" ]
volumes:
- name: 'vol1'
path: '/output'
However, the mounted volume /workspace is empty in the image 'cloud-builders-community/firebase', for example if I include a step like this:
- name: 'gcr.io/$PROJECT_ID/firebase'
entrypoint: 'bash'
args: ['-c', 'ls', '-l', '/output', '.']
volumes:
- name: 'vol1'
path: '/output'
I'm not sure if there's something I'm doing wrong or if it's a bug. Any help would be appreciated.
from cloud-builders-community.
Related Issues (20)
- gcr.io/cloud-builders-community/ng - BUILD FAILURE HOT 3
- Crypto token
- Cloud build with source repositories - mirror github repo containing git lfs files
- cloudbuild-ndk.yaml using NDK that hasn't been supported since 2018 HOT 1
- Using secrets from GCP Secret Manager in Helm GCP Cloud Builder HOT 1
- Build fails on image push - Repository "gcr.io" not found HOT 1
- "Error: Not in a Firebase app directory (could not locate firebase.json)", but it is there?¿
- I can not deploy specified hosting target
- ?? What do i do HOT 1
- Slackbot integration documentation not completed HOT 1
- Helm version bump HOT 2
- entrypoint.bash is non-compliant with Shell Style Guide
- docker-compoose builder fail on docker-compose version above 2
- envsubst won't substitute secrets HOT 2
- [Feature request] envsubst: support passing -s multiple times
- Cloud Build: Firebase application deployment failed due to the experimental web framework not being enabled. HOT 2
- Can not build image with packer HOT 5
- Gcloud builds submit fails with "gcr.io/$PROJECT_ID/helm" HOT 1
- Add `apt` Cloud Builder
- Issue with installing easyocr on Cloud Builders Community Firebase image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-builders-community.