First, go through the general local installation instructions here. Additionally, make sure you have the following installed:
In order to run some tests locally, you will need the AWS CLI installed and configured to access Pachyderm S3 buckets. In order to set this up:
- Message an owner of the Pachyderm AWS account (@jdoliner) to get AWS credentials
- Get back a login link and initial username/password - log in
- Configure your own password
- Go to your account settings => My Security Credentials
- In "Access keys for CLI [...]", click "Create Access Key"
- On the command-line, run
sudo apt install awscli
(or equivalent for your platform) - Run
aws configure
and fill in these fields:
AWS Access Key ID
- the ID for the new Access Key you createdAWS Secret Access Key
- the secret for the new Access Key you createdDefault region name
-us-west-1
might be a good choiceDefault output format
-json
because why not?
- Test that you can access a Pachyderm S3 bucket:
aws s3 ls s3://pachyderm-engineering/
To stay up to date, we recommend doing the following.
First clone the code:
cd $GOPATH/src
mkdir -p github.com/pachyderm
cd github.com/pachyderm
git clone [email protected]:pachyderm/pachyderm
Then update your ~/.bash_profile
by adding the line:
source $GOPATH/src/github.com/pachyderm/pachyderm/etc/contributing/bash_helpers
And you'll stay up to date!
If you're running tests locally, you'll need to up your file descriptor limit. To do this, first setup a LaunchDaemon to up the limit with sudo privileges:
sudo cp $GOPATH/src/github.com/pachyderm/pachyderm/etc/contributing/com.apple.launchd.limit.plist /Library/LaunchDaemons/
Once you restart, this will take effect. To see the limits, run:
launchctl limit maxfiles
Before the change is in place you'll see something like 256 unlimited
. After the change you'll see a much bigger number in the first field. This ups the system wide limit, but you'll also need to set a per-process limit.
Second, up the per process limit by adding something like this to your ~/.bash_profile
:
ulimit -n 12288
Unfortunately, even after setting that limit it never seems to report the updated version. So if you try
ulimit
And just see unlimited
, don't worry, it took effect.
To make sure all of these settings are working, you can test that you have the proper setup by running:
make test-pfs-server
If this fails with a timeout, you'll probably also see 'too many files' type of errors. If that test passes, you're all good!
You'll need the timeout
utility to run the make launch
task. To install on mac, do:
brew install coreutils
And then make sure to prepend the following to your path:
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
Now launch the dev cluster: make launch-dev-vm
.
And check it's status: kubectl get all
This will install the dev version of pachctl
:
cd $GOPATH/src/github.com/pachyderm/pachyderm
make install
pachctl version
And make sure that $GOPATH/bin
is on your $PATH
somewhere