Skip to content

Commit 0dda7e8

Browse files
committed
chore: update step 0
1 parent 6db585f commit 0dda7e8

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

.cl/cloudbuild.yaml

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,20 @@
1313
# limitations under the License.
1414

1515
steps:
16-
# - id: enable-fuse-config
17-
# name: 'ubuntu'
18-
# entrypoint: bash
19-
# args:
20-
# - '-c'
21-
# - |
22-
# apt-get update && apt-get install -y sed
23-
# # Check if FUSE device exists
24-
# if [ ! -c /dev/fuse ]; then
25-
# echo "Error: FUSE device /dev/fuse not found. FUSE might not be available in this environment."
26-
# exit 1
27-
# fi
28-
29-
# # Create /etc/fuse.conf if it doesn't exist and populate with default content
30-
# if [ ! -f /etc/fuse.conf ]; then
31-
# echo "Creating /etc/fuse.conf with default content."
32-
# cat <<EOF > /etc/fuse.conf
33-
# # Set the maximum number of FUSE mounts allowed to non-root users.
34-
# # The default is 1000.
35-
# #mount_max = 1000
36-
37-
# # Allow non-root users to specify the 'allow_other' mount option.
38-
# #user_allow_other
39-
# EOF
40-
# fi
41-
# sudo sed -i 's/#user_allow_other/user_allow_other/g' /etc/fuse.conf
16+
# Enable fuse config (Linux - assuming Cloud Build environment is Linux-based)
17+
- id: enable-fuse-config
18+
name: 'ubuntu'
19+
entrypoint: bash
20+
args:
21+
- '-c'
22+
- |
23+
apt-get update && apt-get install -y --no-install-recommends fuse
24+
# Check if FUSE device exists
25+
if [ ! -c /dev/fuse ]; then
26+
echo "Error: FUSE device /dev/fuse not found. FUSE might not be available in this environment."
27+
exit 1
28+
fi
29+
sudo sed -i 's/#user_allow_other/user_allow_other/g' /etc/fuse.conf
4230
4331
- id: run mysql integration tests
4432
name: golang:${_VERSION}

0 commit comments

Comments
 (0)