Skip to content

Commit

Permalink
init.
Browse files Browse the repository at this point in the history
  • Loading branch information
neilferreira committed Sep 3, 2024
0 parents commit 7b361a0
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM --platform=linux/amd64 python:3.12.2-slim

RUN mkdir /opt/application
WORKDIR /opt/application

COPY code.py ./

RUN echo "foo"
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
To reproduce the issue within AWS ECR:

Enable the `containerd image store` as per https://docs.docker.com/build/cache/backends/ by adding the following to the Docker features:

```
"features": {
"containerd-snapshotter": true
}
```

ref: https://docs.docker.com/engine/storage/containerd/#enable-containerd-image-store-on-docker-engine

Sign in to AWS ECR:

```
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 211125654114.dkr.ecr.us-east-2.amazonaws.com
```

Build this image:

```
docker build -t 211125654114.dkr.ecr.us-east-2.amazonaws.com/test-immutable:bar .
```

Push this image:

```
docker push 211125654114.dkr.ecr.us-east-2.amazonaws.com/test-immutable:bar
```

This yields:

```
failed commit on ref "manifest-sha256:b1046f6218c477a57f78da412bdf0e9225359b4f46f01a30f7929a3517a59e5f": unexpected status from PUT request to https://211125654114.dkr.ecr.us-east-2.amazonaws.com/v2/test-immutable/manifests/bar: 400 Bad Request
```
1 change: 1 addition & 0 deletions code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("hello world")

0 comments on commit 7b361a0

Please sign in to comment.