when running from a docker_environment, are the re...
# general
b
when running from a docker_environment, are the results in the
output_directories
available in the local build environment, or do you have to use an archive target to collect them into the local build. Currently I'm running some platform specific builds via shell script in a
docker_environment
but I can't seem to find the outputs anywhere in the local build tree.
b
Could you show the snippets of your BUILD file? All the relevant targets if possible?
b
try/
Copy code
shell_command(
    name = "try_ls",
    execution_dependencies = [ "support/allen-srl-deps:build_deps"],
    command="find support/allen-srl-deps -ls",
    workdir="/",
    tools=["find"],
    log_output=True
)

archive(
   format="tar.gz",
   files=["support/allen-srl-deps:build_deps"]
)
support/allen-srl-deps/
Copy code
docker_environment(
    name="python38_builder",
    image="<http://racp-dev.docker.artifactory.rii.io/python38-builder-image:1.0.0|racp-dev.docker.artifactory.rii.io/python38-builder-image:1.0.0>",
    docker_executable_search_paths=["/bin", "/usr/bin", "/usr/local/bin"],
    platform="linux_x86_64"
)

shell_source(
    name="build_script",
    source="build-deps"
)

resource(
    name="pip_constraints",
    source="constraints.txt"
)
shell_command(
    name="build_deps",
    execution_dependencies=["support/python38-builder-image:python38-builder-image", ":build_script", ":pip_constraints"],
    command="./build-deps",
    environment="python38_builder",
    output_files=["wheels/*.whl"],
    tools = ["echo", "env", "bash", "rpm", "pwd", "mkdir", "dirname", "basename", "xargs", "touch", "cp" ],
    log_output=True,
    timeout=7200
)
Using this build I can archive the target, but was hoping that I could use the results in another shell script.