Skip to content

Latest commit

 

History

History
66 lines (50 loc) · 4.91 KB

docker.md

File metadata and controls

66 lines (50 loc) · 4.91 KB

Docker

To download the image issue the following commnad. Change the version tag as needed.

docker pull ghcr.io/spectrocloud/tutorials:1.0.12

You can start the container using the following command.

docker run -p 5000:5000 --rm -it ghcr.io/spectrocloud/tutorials:1.0.12 bash

The Docker file is build for a Linux environment. You can use this on a Mac and Windows. Windows users will require the usage of WSL2.

The Docker image includes the following tools.

Tool Description
terraform Infrastructure as code tool
palette cli The offical Palette CLI
spectro cli Spectro Cloud command-line interface
palette edge cli The Edge Installer CLU
spectro registry server Spectro Cloud Registry Server
ngrok Secure tunnels to localhost
kubectl Kubernetes command-line tool
bash Unix shell
curl Command line tool and library for transferring data with URLs
git Distributed version control system
openssl Toolkit for the Transport Layer Security (TLS) protocol
jq Lightweight and flexible command-line JSON processor
bind-tools Collection of DNS utilities, including dig, nslookup, and host
wget Free utility for non-interactive download of files from the Web
nano A text editior alternative to Vi.
ca-certificates Common set of CA certificates
canvos A utility for creating Edge artifacts
nano A text editior for Unix-like computing systems or operating environments using a command line interface
packer Hashicorp Image Builder for building Edge Native images
GOVC Tool for interracting with VMware Vsphere via API
aws-cli AWS command-line interface
oras Tool for pushing and pulling OCI artifacts to and from OCI registries
podman Tool for building and deploying OCI images

Spectro Cloud Pack Registry Server

The Spectro Cloud registry server has the following credentials:

  • username: admin

  • password: admin

You can start the registry server by issuing the following command. Keep in mind that the registry server is started in HTTP mode. For additional guidance, review the Registry Server documentation.

registry serve /etc/spectro/config.yml > /var/log/registry.log 2>&1 &

Local Builds

If you are wanting to build the docker image locally you must provide the the build arguments for PALETTE_VERSION, PALETTE_CLI_VERSION, PALETTE_EDGE_VERSION, PACKER_VERSION, ORAS_VERSION and TERRAFORM_VERSION. Use the following command to build a local image. Replace the versions as needed.

docker build --build-arg PALETTE_VERSION=4.0.2 --build-arg PALETTE_CLI_VERSION=4.4.0  --build-arg PALETTE_EDGE_VERSION=4.4.2 --build-arg PACKER_VERSION=1.11.0 --build-arg ORAS_VERSION=1.0.0 --build-arg PALETTE_REGISTRY_CLI_VERSION=4.3.0 --build-arg TERRAFORM_VERSION=1.9.0 -t tutorials .