Skip to content
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

Unable to build/deploy as CloudFoundry app on IBM Cloud #30

Open
oosawak1975 opened this issue Sep 17, 2020 · 1 comment
Open

Unable to build/deploy as CloudFoundry app on IBM Cloud #30

oosawak1975 opened this issue Sep 17, 2020 · 1 comment

Comments

@oosawak1975
Copy link

To whom it may concern,
We are trying to deploy an Swift app as CloudFoundry on IBM Cloud. When we contain Kitura-OpenAPI and Kitura-CouchDB, it fails due to 2GB disk space limitation of CloudFoundry. We tried the SWIFT_BUILD_DIR_CACHE: false setting in manifest file, but no luck. Also, 2GB disk space seems to be a hard limit. Is there any workaround to build and deploy?

The df command shows:

Filesystem 1K-blocks Used Available Use% Mounted on
overlay 2097152 774416 1322736 37% /
tmpfs 16467392 0 16467392 0% /dev
tmpfs 16467392 0 16467392 0% /dev/shm
/dev/xvdc2 277086368 94244140 168744004 36% /tmp/garden-init
tmpfs 16467392 0 16467392 0% /sys/fs/cgroup
tmpfs 2952 936 2016 32% /etc/cf-instance-credentials
udev 16439524 0 16439524 0% /dev/tty
tmpfs 16467392 0 16467392 0% /proc/scsi
tmpfs 16467392 0 16467392 0% /sys/firmware

However if we add the below dependencies

Kitura-OpenAPI located at https://github.com/IBM-Swift/Kitura-OpenAPI.git
Kitura-CouchDB located at https://github.com/IBM-Swift/Kitura-CouchDB.git

The application fails with the below error:

-----> Copying binaries to 'bin'
cp: cannot create regular file '/tmp/app/.swift-bin/Multitool': Disk quota exceeded
cp: cannot create regular file '/tmp/app/.swift-bin/libcpuplugin.so': Disk quota exceeded
cp: cannot create regular file '/tmp/app/.swift-bin/libmemplugin.so': Disk quota exceeded
cp: cannot create regular file '/tmp/app/.swift-bin/libhcapiplugin.so': Disk quota exceeded
cp: cannot create regular file '/tmp/app/.swift-bin/libenvplugin.so': Disk quota exceeded
cp: cannot create regular file '/tmp/app/.swift-bin/libagentcore.so': Disk quota exceeded
-----> Clearing previous swift cache
mkdir: cannot create directory ‘/tmp/cache/final/swift’: Disk quota exceeded
Failed to compile droplet: Failed to compile droplet: exit status 1
@djones6
Copy link
Contributor

djones6 commented Sep 21, 2020

Unfortunately I think this is a known issue - see: IBM-Swift/swift-buildpack#123

I doubt that the Kitura-OpenAPI project is at fault here, likely the additional libraries that it pulls in are just enough to cause the Swift build to exceed the file system limit.

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

No branches or pull requests

2 participants