This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| func main() { | |
| fmt.Println("Hello,Prashant") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM busybox | |
| COPY mytesttar /tmp | |
| CMD ["sh"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ docker build -t mytesttar . | |
| Sending build context to Docker daemon 13.31kB | |
| Step 1/3 : FROM busybox | |
| ---> 19485c79a9bb | |
| Step 2/3 : ADD mytesttar /tmp | |
| ---> 78a1461fdfd1 | |
| Step 3/3 : CMD ["sh"] | |
| ---> Running in 8aa5aa9a977b | |
| Removing intermediate container 8aa5aa9a977b | |
| ---> bab7ef2e937c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM busybox | |
| ADD mytesttar /tmp | |
| CMD ["sh"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM busybox | |
| ADD https://github.com/100daysofdevops/100daysofdevops/blob/master/apache_log_parser.py /tmp | |
| CMD ["sh"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ docker build -t mytestbusybox . | |
| Sending build context to Docker daemon 2.56kB | |
| Step 1/3 : FROM busybox | |
| ---> 19485c79a9bb | |
| Step 2/3 : ADD test.txt /tmp | |
| ---> 691ea295ef52 | |
| Step 3/3 : CMD ["sh"] | |
| ---> Running in 41a3f8bb1425 | |
| Removing intermediate container 41a3f8bb1425 | |
| ---> 02a0828a0556 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM busybox | |
| ADD test.txt /tmp | |
| CMD ["sh"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ docker build -t mynginx . | |
| Sending build context to Docker daemon 2.048kB | |
| Step 1/4 : FROM ubuntu | |
| latest: Pulling from library/ubuntu | |
| 5667fdb72017: Pull complete | |
| d83811f270d5: Pull complete | |
| ee671aafb583: Pull complete | |
| 7fc152dfb3a6: Pull complete | |
| Digest: sha256:b88f8848e9a1a4e4558ba7cfc4acc5879e1d0e7ac06401409062ad2627e6fb58 | |
| Status: Downloaded newer image for ubuntu:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu | |
| RUN apt-get update | |
| RUN apt-get -y install nginx | |
| CMD ["nginx", "-g", "daemon off;"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Principal": { | |
| "AWS": "arn:aws:iam::XXXXX:root" <---- | |
| }, | |
| "Action": "sts:AssumeRole", | |
| "Condition": {} |