Marc Campbell 4ba01e35fc Fix CI: create empty .env file for docker-compose build
docker-compose.yaml references env_file: .env which is created by
Ansible on the server but doesn't exist in the repo. Create an empty
file during CI build to satisfy the reference.

Signed-off-by: Marc Campbell <marc.e.campbell@gmail.com>
2026-02-03 11:45:31 +00:00
2024-02-05 09:16:45 -08:00
2025-10-01 14:45:20 +01:00
2019-05-16 00:22:18 +00:00
2024-02-05 09:16:45 -08:00

Develop on Okteto

ttl.sh

An ephemeral container registry for CI workflows.

What is ttl.sh?

ttl.sh is an anonymous, expiring Docker container registry using the official Docker Registry image. This is a set of tools and configurations that can be used to deploy the registry without authentication, but with self-expiring images.

Development

Development for the services in this project is done through Okteto.

Setup

  1. Install the Okteto CLI (brew install okteto)
  2. Setup Okteto CLI (okteto context use https://replicated.okteto.dev)
  3. Setup Okteto context in kubectl (okteto context update-kubeconfig)
  4. Deploy your current branch. (from the ttl.sh root directory: okteto pipeline deploy)

Debugging

Okteto is utilized for debugging. New build targets have been added to allow building and running each service in debug mode.

  1. Replace the default container in your Okteto environment with a development container.
    1. From the root directory: okteto up or okteto up <service name>
  2. Run the build targets for the desired service:
    1. ttl-hooks: make deps build hooks
    2. ttl-reaper: make deps build reap
  3. Stop development and go back to the default container.
    1. From the root directory: okteto down or okteto down <service name>

Example workflows

Switching branches or rebasing

  1. git checkout my-new-branch
  2. okteto pipeline deploy
  3. (make code changes)
  4. okteto up
  5. (test changes, find they don't work, make more changes)...
  6. okteto down
  7. (commit code, and be happy)
Description
An anonymous & ephemeral Docker image registry
Readme Apache-2.0 947 KiB
Languages
TypeScript 89%
HTML 4.7%
HCL 2%
CSS 1.6%
Shell 1%
Other 1.6%