Skip to content

Instantly share code, notes, and snippets.

View 100daysofdevops's full-sized avatar
🎯
Focusing

100daysofdevops

🎯
Focusing
View GitHub Profile
package main
import "fmt"
func main() {
fmt.Println("Hello,Prashant")
}
FROM busybox
COPY mytesttar /tmp
CMD ["sh"]
$ 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
FROM busybox
ADD mytesttar /tmp
CMD ["sh"]
FROM busybox
ADD https://github.com/100daysofdevops/100daysofdevops/blob/master/apache_log_parser.py /tmp
CMD ["sh"]
$ 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
FROM busybox
ADD test.txt /tmp
CMD ["sh"]
$ 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
FROM ubuntu
RUN apt-get update
RUN apt-get -y install nginx
CMD ["nginx", "-g", "daemon off;"]
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::XXXXX:root" <----
},
"Action": "sts:AssumeRole",
"Condition": {}