In this page, you will run a Piped agent on local as a single binary.
-
Create a Piped ID on the console.
1-1. Access the Piped settings page on the console: http://localhost:8080/settings/piped
1-3. Enter any
Name
andDescription
, and then clickSAVE
.1-4. You will see the Piped's ID and Key. You will use them in the following steps.
-
Move on to the directory you cloned in 1. Setup Git Repository.
cd <YOUR_CLONED_TUTORIAL_DIR> cd src/install/piped/
-
Replace
<YOUR_PIPED_KEY>
below to thePiped Key
value you got in1-4.
and create a file of the key.1echo -n <YOUR_PIPED_KEY> > .pipedKey
-
Edit your
src/install/piped/piped.yaml
as below.spec.pipedID
:Piped Id
you got in1-4.
spec.pipedKeyFile
:<YOUR_CLONED_TUTORIAL_DIR>/src/install/piped/.pipedKey
spec.repositories[0].remote
: The URL of your repository on GitHub you created in 1. Setup Git Repository.spec.platformProviders
: Uncomment one item. You will deploy to the environment.
-
Get the official binary of Piped from pipecd/releases. Choose your OS and CPU architecture.
# OS=darwin or linux # CPU=arm64 or amd64 curl -Lo ./piped https://github.com/pipe-cd/pipecd/releases/download/v0.48.0/piped_v0.48.0_${OS}_${CPU}
-
Make the Piped executable.
chmod +x ./piped
-
Run the Piped.2
./piped piped --config-file=./piped.yaml --insecure
Troubleshooting (Click to expand)
-
failed to create api client {"error": "context deadline exceeded"}
- It means the piped failed to connect to the control plane.
- Check
apiAddress
inpiped.yaml
- Check whether the control plane is serving on
apiAddress
.
-
rpc error: code = Unauthenticated desc = Unauthenticated
- It means the piped connected to the control plane but failed to authenticate.
- Check
projectID
,pipedID
,pipedKeyFile
inpiped.yaml
. - Check the value in the
pipedKeyFile
.
-
failed to clone from remote
- It means the piped successfully connected to the control plane with authentication but failed to clone from GitHub.
- Check
spec.git.repositories
>remote
,branch
.
-
-
Access the Piped settings page on the console: http://localhost:8080/settings/piped
If successful, you will see a green mark(
Online
) in theName
area. If not green, please wait for a few minutes.
< Previous: 2. Install Control Plane
Footnotes
-
Do NOT push a Piped Key to remote because it is a credential. In actual use, you should store it and
piped.yaml
in a secret management tool. ↩ -
--insecure
option disables TLS of the communication from the Piped to the Control Plane. (cf. Piped's Runtime Options) ↩