For developers
Setting up Hosty CLI
4 min
system requirements in order to use hosty cli, you need to have docker and (optional, but recommended) docker compose installed on your local machine set up hosty cli using docker compose config file hosty cli is represented as a binary executable file inside the docker image with all necessary dependencies already installed and configured in order to use it, you need to pull a hosty cli docker image and execute hosty binary inside of it the easiest way to do this is to configure docker compose yaml file ( compose yml ) services hosty cli \# we highly encourage you to use a stable tag for hosty cli \# instead of the "latest" list of tags can be found at \# https //hub docker com/r/systemseed/hosty/tags image systemseed/hosty\ latest volumes \# the root folder of the project must be mapped to \# the /src/project inside the hosty container \# it is used to build images, track changes, etc \# below is an example mapping assumed that compose yml file \# is in the project root (where git folder is) \ / /src/project \# in order to run docker commands inside of the hosty \# container we need to have access to the docker socket of \# the host machine \# the location of docker socket can be different, depending on \# your os \ /var/run/docker sock /var/run/docker sock \# mapping the folder with aws credentials received from \# the hosting administrators note that the folder does not \# have to be relative to your home folder and can be located \# in any other place, as long as it contains credentials file \# with the correct aws configuration for the hosty user \# profile \ / aws\ /src/ aws using hosty cli to see a list of hosty cli commands, run the following in the root of your project docker compose run rm hosty cli hosty list it should show you the list of commands to manage your project on the hosting follow the instructions or request more information about each command by adding help flag at to the end docker compose run rm hosty cli hosty build help improving developer experience for better dx, it is recommended to create a small helper bash script in the project root to do this, execute the following commands in the project root touch hosty sh chmod +x /hosty sh add the following content to hosty sh \#!/bin/bash docker compose run rm hosty cli hosty "$@" now, you can access hosty cli from the project root like this /hosty sh list