You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add Dockerfile that installs cody from source (#7513)
[Slack
context](https://sourcegraph.slack.com/archives/C04MSD3DP5L/p1742314663276049)
[Linear
ticket](https://linear.app/sourcegraph/issue/REL-806/release-cody-cli-as-docker-image-for-version-5517)
~~This is just so that we have a reference here for now. We're
unblocking
a customer while we integrate a CI pipeline that will publish this
whenever an agent release goes out. That means coping the _built_ files
into this container, rather than using npm. We'll also need to give the
GHA the creds to publish this to Dockerhub.~~
This handles creation of a docker container, pushed to docker hub, which
comes pre-installed with the cody npm package, built from source.
Previously a single image was published for a customer under the
`ccsourcegraph` account, but this PR makes the process production ready,
and hooks into existing CI actions, under the `sourcegraph` dockerhub
account.
~~I have chosen not to publish this image given it doesn't currently
exist
in the Sourcegraph Dockerhub registry. If the customer demands it, I
could.~~
Once approved and merged, I'll publish the specific image for `5.5.17`
to dockerhub since that CI run has already passed.
Running `docker build . -t sourcegraph/cody-cli:5.5.17` from the
`cody/cli` directory will give you a container that has `cody`
installed.
## Test plan
```
> docker run --rm sourcegraph/cody-cli cody --help
Usage: cody [options] [command]
The Cody cli supports running Cody in headless mode and interacting with it via
JSON-RPC. Run `cody chat -m "Hello" to get started.
Options:
-v, --version output the version number
-h, --help display help for command
Commands:
auth Authenticate Cody with Sourcegraph
chat [options] Chat with codebase context.
Examples:
cody chat -m 'Tell me about React hooks'
cody chat --context-file README.md --message 'Summarize this readme'
git diff | cody chat --stdin -m 'Explain this diff'
Enterprise Only:
cody chat --context-repo github.com/sourcegraph/cody --message 'What is the agent?'
models Manage models
api
internal
help [command] display help for command
```
<!-- Required. See
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->
0 commit comments