Revert "Don't store apk indexes in cache"
This causes job failures with psycopg2_binary being unable to locate
pg_config.
This reverts commit 1c04073e6c
.
Change-Id: I781aa72f3fd5c1aad42d9ba740807bc34a8dcbc4
This commit is contained in:
parent
1c04073e6c
commit
cfca55bc4e
|
@ -159,6 +159,7 @@ def build(args):
|
|||
cont.run("sed -i 's,{old},{new}' /etc/apk/repositories".format(
|
||||
old=ALPINE_MIRROR_BASE,
|
||||
new=args.mirror))
|
||||
cont.run("apk update")
|
||||
|
||||
log.info("Building bindep container")
|
||||
# Create bindep container
|
||||
|
@ -216,7 +217,7 @@ def build(args):
|
|||
cont.run("chown -R $(whoami) /root/.cache/pip")
|
||||
|
||||
# Add the compile dependencies
|
||||
cont.run("apk --no-cache add {compile_packages} git".format(
|
||||
cont.run("apk add {compile_packages} git".format(
|
||||
compile_packages=compile_packages))
|
||||
|
||||
# Build a wheel so that we have an install target.
|
||||
|
@ -246,7 +247,7 @@ def build(args):
|
|||
) as cont:
|
||||
try:
|
||||
cont.run(
|
||||
"apk --no-cache add {packages} dumb-init".format(
|
||||
"apk add {packages} dumb-init".format(
|
||||
packages=packages)
|
||||
)
|
||||
cont.run(
|
||||
|
|
Loading…
Reference in New Issue