@@ -558,7 +558,11 @@ def get_indexer_build_steps(project_name,
558558 # Enable re-building both the project and the indexes.
559559 'cp -n /usr/local/bin/replay_build.sh $$SRC/ && '
560560 # Save the CDB fragments so we can re-use them for rebuilding indexes.
561- 'cp -r $$OUT/cdb /cdb'
561+ 'cp -r $$OUT/cdb /cdb && '
562+ # Link /out to the actual $OUT and actually create it in the
563+ # container's filesystem since it's a mount.
564+ 'rm -rf /out && ln -s $$OUT /out && '
565+ 'umount /workspace && mkdir -p $$OUT'
562566 ],
563567 'env' : env ,
564568 }
@@ -567,45 +571,12 @@ def get_indexer_build_steps(project_name,
567571 use_architecture_image_name = build .is_arm ,
568572 container_name = _INDEXED_CONTAINER_NAME )
569573 push_image_steps = [
570- # Create a link to the $OUT used during the build (which was mounted in
571- # and won't exist in the container's filesystem) in case there's
572- # references in build flags. To do this, we have to restart the container.
573- {
574- 'name' : build_lib .DOCKER_TOOL_IMAGE ,
575- 'args' : [
576- 'start' ,
577- _INDEXED_CONTAINER_NAME ,
578- ],
579- 'env' : env ,
580- },
581- {
582- 'name' : build_lib .DOCKER_TOOL_IMAGE ,
583- 'args' : [
584- 'exec' ,
585- 'indexed-container' ,
586- 'bash' ,
587- '-c' ,
588- 'mkdir -p $(dirname $$OUT) && ln -s /out $$OUT' ,
589- ],
590- 'env' : env ,
591- },
592- {
593- 'name' : build_lib .DOCKER_TOOL_IMAGE ,
594- 'args' : [
595- 'stop' ,
596- _INDEXED_CONTAINER_NAME ,
597- ],
598- 'env' : env ,
599- },
600574 {
601575 'name' :
602576 build_lib .DOCKER_TOOL_IMAGE ,
603577 'args' : [
604578 'container' ,
605579 'commit' ,
606- # Change $OUT back to the default for consistency.
607- '-c' ,
608- 'ENV OUT /out' ,
609580 '-c' ,
610581 'ENV REPLAY_ENABLED 1' ,
611582 # Add CFLAGS that enable debugging (this should match the
0 commit comments