Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.7 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.7 KB

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)