This website requires JavaScript.
Explore
Help
Register
Sign In
sig_cloud
/
diskimage-builder
Watch
2
Star
0
Fork
0
You've already forked diskimage-builder
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
a030387d6b
diskimage-builder
/
elements
/
base
/
install.d
/
00-ccache
7 lines
78 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Use ccache to cache all compiles between builds. Many python extensions are built from source each time an image is built. Repeating these is wasteful, so ccache is employed to eliminate that waste. A cache dir outside the chroot is used to speed up subsequent image builds. Change-Id: Ib73563ddbe5f3be7454bfc54ab91cedb559a1304
2013-07-09 22:03:58 +00:00
#!/bin/bash
set -e all the things Using set -e in all of our scripts will prevent some subtle bugs from slipping in, and will allow us to enforce use of set -e with tooling. This change also adds -u and set -o pipefail in the less complex scripts where it is unlikely to cause problems. A follow-up change will enable those options in the complex scripts so that if it breaks something it can be reverted easily. Change-Id: I0ad358ccb98da7277a0ee2e9ce8fda98438675eb
2014-03-29 03:28:22 +00:00
set -eu
set -o pipefail
Update base element to make use of pkg-map With this change package name to distro mappings used within the base element are now stored in the top level pkg-map file. Additionally, all bin/install-packages commands are updated to use the -m option so that the base element pkg-map namespace is used by default. Change-Id: I3bdbf987c8525f9ef67ca0c263651d6613f29ef0
2014-05-02 19:43:05 +00:00
install-packages -m base ccache_package
Reference in New Issue
Copy Permalink