Shipper Installation
Detailed installation guide for the Nadi Shipper agent.
Linux & macOS
Automatic Installation
The easiest way to install Shipper:
bash
sudo bash < <(curl -sL https://raw.githubusercontent.com/nadi-pro/shipper/master/install)This script:
- Detects your OS and architecture
- Downloads the appropriate binary
- Installs to the correct location
- Creates the configuration directory
- Copies the default configuration
Installation Locations
| OS | Binary | Config |
|---|---|---|
| Linux | /usr/local/bin/shipper | /opt/nadi-pro/shipper/ |
| macOS | /usr/local/bin/shipper | /usr/local/nadi-pro/shipper/ |
Manual Installation
- Download the latest release:
bash
# Linux x64
curl -LO https://github.com/nadi-pro/shipper/releases/latest/download/shipper-linux-amd64.tar.gz
# Linux ARM64
curl -LO https://github.com/nadi-pro/shipper/releases/latest/download/shipper-linux-arm64.tar.gz
# macOS Intel
curl -LO https://github.com/nadi-pro/shipper/releases/latest/download/shipper-darwin-amd64.tar.gz
# macOS Apple Silicon
curl -LO https://github.com/nadi-pro/shipper/releases/latest/download/shipper-darwin-arm64.tar.gz- Extract and install:
bash
tar -xzf shipper-*.tar.gz
sudo mv shipper /usr/local/bin/
sudo chmod +x /usr/local/bin/shipper- Create config directory:
bash
# Linux
sudo mkdir -p /opt/nadi-pro/shipper
# macOS
sudo mkdir -p /usr/local/nadi-pro/shipper- Create configuration file:
bash
# Linux
sudo curl -o /opt/nadi-pro/shipper/nadi.yaml \
https://raw.githubusercontent.com/nadi-pro/shipper/master/nadi.reference.yaml
# macOS
sudo curl -o /usr/local/nadi-pro/shipper/nadi.yaml \
https://raw.githubusercontent.com/nadi-pro/shipper/master/nadi.reference.yamlWindows
Automatic Installation
Run in PowerShell as Administrator:
powershell
powershell -command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/nadi-pro/shipper/master/install.ps1', '%TEMP%\install.ps1') && %TEMP%\install.ps1 && del %TEMP%\install.ps1"Manual Installation
Download from releases:
shipper-windows-amd64.zip
Create directories:
C:\Program Files\Nadi-Pro\Shipper\ C:\ProgramData\Nadi-Pro\Shipper\Extract
shipper.exetoC:\Program Files\Nadi-Pro\Shipper\Copy
nadi.reference.yamltoC:\ProgramData\Nadi-Pro\Shipper\nadi.yaml
Add to PATH
Add C:\Program Files\Nadi-Pro\Shipper\ to your system PATH.
Docker
Docker Hub
bash
docker pull nadipro/shipper:latestRun with Docker
bash
docker run -d \
--name shipper \
-v /var/log/nadi:/var/log/nadi:ro \
-v $(pwd)/nadi.yaml:/etc/nadi/nadi.yaml:ro \
nadipro/shipper:latestDocker Compose
yaml
# docker-compose.yml
version: '3.8'
services:
shipper:
image: nadipro/shipper:latest
restart: unless-stopped
volumes:
- /var/log/nadi:/var/log/nadi:ro
- ./nadi.yaml:/etc/nadi/nadi.yaml:roVerify Installation
Check Version
bash
shipper --versionCheck Configuration
bash
shipper --config /path/to/nadi.yaml --validateTest Run
bash
shipper --config /path/to/nadi.yaml --testPost-Installation
1. Configure Credentials
Edit the configuration file:
yaml
nadi:
apiKey: your-api-key
token: your-application-key
storage: /var/log/nadi2. Set Permissions
Ensure Shipper can read the log directory:
bash
# Linux/macOS
sudo chown -R shipper:shipper /opt/nadi-pro/shipper
sudo chmod 755 /var/log/nadi3. Create Log Directory
If it doesn't exist:
bash
sudo mkdir -p /var/log/nadi
sudo chown www-data:www-data /var/log/nadi # Or your web server user4. Test Connection
bash
shipper --config /path/to/nadi.yaml --testExpected output:
Connection test successful
API Key: Valid
App Key: Valid
Storage Path: /var/log/nadi (accessible)Upgrading
Linux & macOS
bash
sudo bash < <(curl -sL https://raw.githubusercontent.com/nadi-pro/shipper/master/install)Your configuration will be preserved.
Windows
- Download the latest release
- Stop the Shipper service
- Replace the binary
- Start the Shipper service
Docker
bash
docker pull nadipro/shipper:latest
docker-compose up -dUninstallation
Linux
bash
sudo systemctl stop shipper
sudo systemctl disable shipper
sudo rm /etc/systemd/system/shipper.service
sudo rm /usr/local/bin/shipper
sudo rm -rf /opt/nadi-pro/shippermacOS
bash
launchctl unload ~/Library/LaunchAgents/pro.nadi.shipper.plist
rm ~/Library/LaunchAgents/pro.nadi.shipper.plist
sudo rm /usr/local/bin/shipper
sudo rm -rf /usr/local/nadi-pro/shipperWindows
- Stop and remove the service:powershell
sc.exe stop Shipper sc.exe delete Shipper - Delete the installation directories
Next Steps
- Configuration - Configure Shipper
- Deployment - Run in production
- Troubleshooting - Common issues