|
|
Create the docker image
|
|
|
```
|
|
|
|
|
|
```
|
|
|
|
|
|
# Push the image to AWS
|
|
|
|
|
|
## AWS Login
|
|
|
```
|
|
|
$(aws ecr get-login --no-include-email --region eu-west-1)
|
|
|
```
|
|
|
The output of this command has to contain the string
|
|
|
```
|
|
|
Login Succeeded
|
|
|
```
|
|
|
to be considered successfully
|
|
|
|
|
|
## Tag the image
|
|
|
```
|
|
|
docker tag hydra-debug:latest 560078195495.dkr.ecr.eu-west-1.amazonaws.com/hydra-debug:latest
|
|
|
```
|
|
|
|
|
|
## Push the image inside the registry
|
|
|
```
|
|
|
docker push 560078195495.dkr.ecr.eu-west-1.amazonaws.com/hydra-debug:latest
|
|
|
```
|
|
|
The result of this command will be a sort of this output:
|
|
|
```
|
|
|
The push refers to repository [560078195495.dkr.ecr.eu-west-1.amazonaws.com/hydra-debug]
|
|
|
bc0915392ef2: Pushed
|
|
|
ed29cec5c6cd: Pushed
|
|
|
3c76b89ad78b: Pushed
|
|
|
e521411783ac: Pushed
|
|
|
4ed69a15849e: Pushed
|
|
|
2f896f22520e: Pushed
|
|
|
47347e81d7a2: Pushed
|
|
|
f9917e40a33c: Pushed
|
|
|
dec39d527620: Pushed
|
|
|
1e83222d81f0: Pushed
|
|
|
ae0a7163fc33: Pushed
|
|
|
6746a5c082c7: Pushed
|
|
|
4d937f70f066: Pushed
|
|
|
268a067217b5: Pushed
|
|
|
c01d74f99de4: Pushed
|
|
|
ccd4d61916aa: Pushed
|
|
|
8f2b771487e9: Pushed
|
|
|
f49017d4d5ce: Pushed
|
|
|
latest: digest: sha256:45c2b22541ab4e139e932406b4c0e5e89142ac4fa66cf9287ddffb6a2f074c56 size: 4095
|
|
|
``` |