From 02cc0513b6c70a8931369597edd7bc09e976bae9 Mon Sep 17 00:00:00 2001 From: guanhua <0guanhua0@gmail.com> Date: Thu, 26 Sep 2024 11:04:36 -0700 Subject: [PATCH 1/2] update docker compose ref: https://docs.docker.com/compose/intro/history/#docker-compose-cli-versioning https://github.com/compose-spec/compose-spec/blob/main/spec.md#compose-file test: ```sh guanhua@arch ~/ibeam (git)-[guanhua/update-docker] % sudo docker compose up -d guanhua@arch ~/ibeam (git)-[guanhua/update-docker] % sudo docker compose logs -f guanhua@arch ~/ibeam (git)-[guanhua/update-docker] % curl -X GET "https://localhost:5000/v1/api/portfolio/accounts" -k ``` --- CONTRIBUTING.md | 8 +++----- README.md | 14 +++++++++----- docker-compose.yml => compose.yaml | 2 -- 3 files changed, 12 insertions(+), 12 deletions(-) rename docker-compose.yml => compose.yaml (95%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0ebfd04..d45f7c4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -167,13 +167,11 @@ If using `docker buildx`, run: docker buildx build -t ibeam --load . ``` -Alternatively, `docker-compose` can be used to build and run a local IBeam instance as follows: +Alternatively, `docker compose` can be used to build and run a local IBeam instance as follows: -Create a `docker-compose.yml` file with the following content: +Create a `compose.yaml` file with the following content: ```yaml -version: "2.1" - services: ibeam: build: . @@ -196,7 +194,7 @@ IBEAM_PASSWORD=your_password123 Run the following command: ```shell -docker-compose up -d --build +docker compose up -d --build ``` ### Building and Pushing Multi-Platform Images diff --git a/README.md b/README.md index 68e39e6..4dae0bf 100644 --- a/README.md +++ b/README.md @@ -78,13 +78,11 @@ pip install ibeam docker run --env IBEAM_ACCOUNT=your_account123 --env IBEAM_PASSWORD=your_password123 -p 5000:5000 voyz/ibeam ``` -#### docker-compose: +#### docker compose: -Create a `docker-compose.yml` file with the following contents: +Create a `compose.yaml` file with the following contents: ```yaml -version: "2.1" - services: ibeam: image: voyz/ibeam @@ -108,7 +106,13 @@ IBEAM_PASSWORD=your_password123 Run the following command: ```posh -docker-compose up -d +docker compose up -d +``` + +to check output + +```sh +docker compose logs -f ``` #### Standalone: diff --git a/docker-compose.yml b/compose.yaml similarity index 95% rename from docker-compose.yml rename to compose.yaml index 0df3ef8..3064184 100644 --- a/docker-compose.yml +++ b/compose.yaml @@ -1,5 +1,3 @@ -version: "2.1" - services: ibeam: image: voyz/ibeam From 9397a8178a5821ad4251f0a86e7cd97a76ed35ed Mon Sep 17 00:00:00 2001 From: guanhua <0guanhua0@gmail.com> Date: Fri, 27 Sep 2024 11:33:53 -0700 Subject: [PATCH 2/2] rm hint to check log keep clean code the target group for the repo is tech, should know basic debug --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 4dae0bf..99e7714 100644 --- a/README.md +++ b/README.md @@ -109,12 +109,6 @@ Run the following command: docker compose up -d ``` -to check output - -```sh -docker compose logs -f -``` - #### Standalone: ```posh