From 7d0ae17ddd74af48b7337d73693f18b0a4970047 Mon Sep 17 00:00:00 2001 From: Johannes7k75 <57235955+Johannes7k75@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:25:48 +0200 Subject: [PATCH] Update README.md (#3023) ## Description Changes the name of the docker image that gets build. ## Tests --- cli/README.md | 12 ++---------- cli/docker-compose.yml | 6 ++++-- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/cli/README.md b/cli/README.md index 78c2db5bf1..5bdb36828a 100644 --- a/cli/README.md +++ b/cli/README.md @@ -89,22 +89,14 @@ If you fancy Docker, you can also run the CLI within a container. Modify the `docker-compose.yml` and add volume. ``cli-data`` volume is mandatory, you can add more volumes for your export directory. -Build the docker image - +Build and run the container in detached mode ```shell -docker build -t ente:latest . +docker-compose up -d --build ``` - Note that [BuildKit](https://docs.docker.com/go/buildkit/) is needed to build this image. If you face this issue, a quick fix is to add `DOCKER_BUILDKIT=1` in front of the build command. -Start the container in detached mode - -```shell -docker-compose up -d -``` - `exec` into the container ```shell docker-compose exec ente-cli /bin/sh -c "./ente-cli version" diff --git a/cli/docker-compose.yml b/cli/docker-compose.yml index d508155115..3eeb6fdc57 100644 --- a/cli/docker-compose.yml +++ b/cli/docker-compose.yml @@ -1,7 +1,9 @@ -version: '3' services: ente-cli: - image: ente-cli:latest + build: + context: . + tags: + - ente-cli:latest command: /bin/sh volumes: # This is mandatory to mount the local directory to the container at /cli-data