Skip to content

Commit

Permalink
Set up pants.ini for remoting
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano committed Jul 1, 2019
1 parent 8833bae commit 38fac31
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pants.ini
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@ pants_ignore: +[
'/build-support/bin/native/src',
]

remote_execution_server: remotebuildexecution.googleapis.com
remote_store_server: remotebuildexecution.googleapis.com
# This file might not exist on your machine. If this default fails, run `find /usr -name '*.pem'`
# and override this value via the env var PANTS_REMOTE_CA_CERTS_PATH.
remote_ca_certs_path: /usr/local/etc/openssl/cert.pem
remote_instance_name: projects/pants-remoting-beta/instances/default_instance
remote_execution_extra_platform_properties: [
# This allows network requests, e.g. to resolve dependencies with Pex.
"dockerNetwork=standard",
"container-image=docker://marketplace.gcr.io/google/rbe-ubuntu16-04@sha256:da0f21c71abce3bbb92c3a0c44c3737f007a82b60f8bd2930abc55fe64fc2729",
]

[cache]
# Caching is on globally by default, but we disable it here for development purposes.
Expand Down Expand Up @@ -388,11 +399,28 @@ verify_commit: False


[python-setup]
interpreter_search_paths: [
'<PEXRC>',
'<PATH>'
# TODO(#7735): We need to add this entry for remoting to be able to discover a valid
# interpreter, because <PATH> will refer to the host PATH and not the remote value. This value
# was found by inspecting the docker image for remoting.
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/python3.6/bin:/usr/local/go/bin",
]
interpreter_constraints: ["CPython>=3.6,<4"]
interpreter_cache_dir: %(pants_bootstrapdir)s/python_cache/interpreters
resolver_cache_dir: %(pants_bootstrapdir)s/python_cache/requirements


[python-native-code]
# TODO(#7735): These two lines are necessary to get remoting working, but it will likely cause
# failures when running locally on macOS. What we really want is some way to say that when remoting
# on Linux, set these values to none; when running locally on macOS, use the default env var values.
# REMOTING: uncomment these two lines when remoting tests.
# ld_flags: []
# cpp_flags: []


[test.pytest]
timeouts: true
timeout_default: 60
Expand Down

0 comments on commit 38fac31

Please sign in to comment.