Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Ubuntu docker image with Brazil/Sao_Paulo locale and pt_BR.UTF-8 lang

## Build and Deploy
```sh
$ docker build -t caninjas/ubuntu-br:18.04 .
$ docker push caninjas/ubuntu-br:18.04
$ docker build -t 439291037095.dkr.ecr.us-east-2.amazonaws.com/base/ubuntu-br:18.04 .
$ docker push 439291037095.dkr.ecr.us-east-2.amazonaws.com/base/ubuntu-br:18.04
Comment on lines +6 to +7
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Add ECR authentication steps to prevent push failures.

AWS ECR requires authentication before pushing images. Users following the current instructions will encounter "no basic auth credentials" errors when attempting to push.

📝 Proposed documentation update
 ## Build and Deploy
 ```sh
+$ aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 439291037095.dkr.ecr.us-east-2.amazonaws.com
 $ docker build -t 439291037095.dkr.ecr.us-east-2.amazonaws.com/base/ubuntu-br:18.04 .
 $ docker push 439291037095.dkr.ecr.us-east-2.amazonaws.com/base/ubuntu-br:18.04
</details>

<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

```suggestion
$ aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 439291037095.dkr.ecr.us-east-2.amazonaws.com
$ docker build -t 439291037095.dkr.ecr.us-east-2.amazonaws.com/base/ubuntu-br:18.04 .
$ docker push 439291037095.dkr.ecr.us-east-2.amazonaws.com/base/ubuntu-br:18.04
🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 6-6: Dollar signs used before commands without showing output

(MD014, commands-show-output)


[warning] 7-7: Dollar signs used before commands without showing output

(MD014, commands-show-output)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 6 - 7, The README's Docker push instructions are
missing AWS ECR authentication which causes "no basic auth credentials" errors;
update the docs to include an authentication step using the AWS CLI (run aws ecr
get-login-password --region us-east-2 and pipe to docker login --username AWS
--password-stdin <ECR_URI>) before the shown docker build and docker push
commands so readers authenticate to 439291037095.dkr.ecr.us-east-2.amazonaws.com
first.

```