Installation¶
Go Overlay can be installed using multiple methods depending on your environment and preferences.
Installation Methods¶
Use Go Overlay as the entrypoint in your Dockerfile:
FROM ubuntu:22.04
# Download go-overlay
ADD https://github.com/srelabz/go-overlay/releases/latest/download/go-overlay /go-overlay
# Make it executable
RUN chmod +x /go-overlay
# Copy your services configuration
COPY services.toml /services.toml
# Set go-overlay as the entrypoint
ENTRYPOINT ["/go-overlay"]
Alpine-based example:
FROM alpine:3.22
# Download go-overlay
ADD https://github.com/srelabz/go-overlay/releases/latest/download/go-overlay /go-overlay
# Make it executable
RUN chmod +x /go-overlay
# Copy your services configuration
COPY services.toml /services.toml
# Set go-overlay as the entrypoint
ENTRYPOINT ["/go-overlay"]
Download the latest release directly using curl:
# Download the latest version
curl -L https://github.com/srelabz/go-overlay/releases/latest/download/go-overlay -o /go-overlay
# Make it executable
chmod +x /go-overlay
For a specific version:
Go Overlay includes an auto-installation feature that sets up the CLI tools automatically.
When you run go-overlay in daemon mode for the first time, it will:
- Create a symlink in
/usr/local/bin/for CLI access - Set up the necessary permissions
- Configure the PATH automatically
To trigger auto-installation:
After auto-installation, you can use the CLI from anywhere:
Verification¶
After installation, verify that go-overlay is correctly installed:
# Check if go-overlay is accessible
which go-overlay
# Check the version
go-overlay --version
# View help information
go-overlay --help
Expected output:
Installation Complete
If you see the version information, go-overlay is successfully installed and ready to use!
Troubleshooting¶
Permission Denied¶
If you encounter permission errors:
# Ensure the binary is executable
chmod +x /go-overlay
# If installing to /usr/local/bin requires sudo
sudo chmod +x /go-overlay
Command Not Found¶
If the go-overlay command is not found:
-
Verify the binary is in your PATH:
-
Add
/usr/local/binto your PATH if needed: -
Make the change permanent by adding it to your shell profile:
Docker Installation Issues¶
If you encounter issues in Docker:
- Ensure curl is installed in your base image
- Verify network connectivity during build
- Check that the download URL is correct and accessible
Next Steps¶
Now that you have go-overlay installed, proceed to the Quick Start Guide to learn how to configure and run your first services.