Skip to main content

How it's designed

CGC is designed to enhance the development of various AI tasks by allowing you to incorporate your own images into your namespace. Its purpose is to assist you in scenarios where computational resources do not need to be constantly running.

Private Image Repository​

We recognize the need for privacy, hence most of your images can be kept private. We provide an option for you to input a secret to your private repository, ensuring your code and data are securely used.

Initialization Command​

The most efficient way to input a start-up command is by implementing Docker's ENTRYPOINT into your image. However, if you need to modify it or pass it dynamically, we provide a variable that allows you to make changes during creation.

Application Code​

The application code can be integrated into your image. Additionally, CGC volumes can be utilized to enhance accessibility during development. When combined with the full mount path and the startup command, custom code can be directly delivered and executed from your volumes.

Custom ports​

By default every app run on CGC utilizes port 8888 and this port will be set as / path of your URL. If you need you can use Custom ports to bring more external ports to live.

Custom Environment Variables​

You can pass custom environment variables to your image. This is done by using the -e flag in the cgc compute create command. The variables will be available in your container and can be used to configure your application dynamically.

cgc compute create -n <name> -c <cpu_cores> -m <RAM GiB> -g <gpu_count> -gt <gpu_type> --image <image_name> -e <env_var_name>=<env_var_value>

Custom arguments​

You can pass custom arguments to your application. This is done by using the -- flag in the cgc compute create command. The arguments will be passed to your application as command-line arguments.

cgc compute create -n <name> -c <cpu_cores> -m <RAM GiB> -g <gpu_count> -gt <gpu_type> --image <image_name> -- <arg1> <arg2> ...

Custom App Token​

You can set a custom app token for your application. This token will be used to authenticate requests to your application. You can set it using the -ce flag in the cgc compute create command.

cgc compute create -n <name> -c <cpu_cores> -m <RAM GiB> -g <gpu_count> -gt <gpu_type> --image <image_name> -ce app_token=<app_token_value>