Advertisement
sleipnir1981

Untitled

Nov 6th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.46 KB | None | 0 0
  1. [root@sleipnir cloudstate-cli]# cloudstate --create=shopping-cart \
  2. >   --profile=go \
  3. >   --registry=docker.io/sleipnir \
  4. >   --set-user=sleipnir \
  5. >   --set-pass=bsd*a211003 \
  6. >   --tag=1.0.1 \
  7. >   --set-editor=idea
  8. Creating user function project: "shopping-cart"
  9. Using profile: "go"
  10. Extracting profile template.... /root/.cloudstate/templates/go/go.tar.gz
  11. Downloading and install dependencies...
  12. Project successfully compiled
  13. Project created!
  14. Open editor!
  15. total 13000
  16. -rw-r--r--. 1 root root     6411 Nov  5 18:38 main.go
  17. -rw-r--r--. 1 root root      613 Nov  5 18:39 Makefile
  18. -rw-r--r--. 1 root root      412 Nov  5 19:21 go.mod
  19. -rw-rw-r--. 1 root root      289 Nov  6 10:43 deployment.yml
  20. -rw-r--r--. 1 root root     1658 Nov  6 12:44 Dockerfile
  21. -rw-r--r--. 1 root root     4852 Nov  6 12:44 go.sum
  22. -rwxr-xr-x. 1 root root 13279098 Nov  6 12:44 shopping-cart
  23. Ok(())
  24. [root@sleipnir cloudstate-cli]# cloudstate --build=shopping-cart --tag=1.0.1 --push
  25. Ok("/home/sleipnir/development/workspace/pessoal/cloudstate-cli/shopping-cart")
  26. Sending build context to Docker daemon  13.33MB
  27. Step 1/21 : FROM golang:1.13.0-stretch AS builder
  28.  ---> d68f79d0e22c
  29. Step 2/21 : ENV GO111MODULE=on     CGO_ENABLED=1
  30.  ---> Using cache
  31.  ---> 72c2295b252a
  32. Step 3/21 : WORKDIR /build
  33.  ---> Using cache
  34.  ---> da725b9f716f
  35. Step 4/21 : COPY go.mod .
  36.  ---> Using cache
  37.  ---> 99a865f61b49
  38. Step 5/21 : COPY go.sum .
  39.  ---> Using cache
  40.  ---> bfa4ca4b4a63
  41. Step 6/21 : RUN go mod download
  42.  ---> Using cache
  43.  ---> 1c3dc15b6c1f
  44. Step 7/21 : COPY . .
  45.  ---> f1afb574f735
  46. Step 8/21 : RUN go build .
  47.  ---> Running in ab4ef97f90cf
  48. Removing intermediate container ab4ef97f90cf
  49.  ---> 46930282dd59
  50. Step 9/21 : WORKDIR /dist
  51.  ---> Running in 659d34343545
  52. Removing intermediate container 659d34343545
  53.  ---> ed92c6b9fd16
  54. Step 10/21 : RUN cp /build/shopping-cart ./shopping-cart
  55.  ---> Running in 923dae0b3fe0
  56. Removing intermediate container 923dae0b3fe0
  57.  ---> 991c6dac0020
  58. Step 11/21 : RUN ldd shopping-cart | tr -s '[:blank:]' '\n' | grep '^/' |     xargs -I % sh -c 'mkdir -p $(dirname ./%); cp % ./%;'
  59.  ---> Running in 1136f85b9f4c
  60. Removing intermediate container 1136f85b9f4c
  61.  ---> e4d45aaa8821
  62. Step 12/21 : RUN mkdir -p lib64 && cp /lib64/ld-linux-x86-64.so.2 lib64/
  63.  ---> Running in 5512f891f7f6
  64. Removing intermediate container 5512f891f7f6
  65.  ---> e742afa6d58b
  66. Step 13/21 : RUN mkdir /data
  67.  ---> Running in 7e65172515ad
  68. Removing intermediate container 7e65172515ad
  69.  ---> 0d8cc507c5fa
  70. Step 14/21 : FROM scratch
  71.  --->
  72. Step 15/21 : COPY --chown=0:0 --from=builder /dist /
  73.  ---> Using cache
  74.  ---> 4ed50d70979a
  75. Step 16/21 : COPY --chown=65534:0 --from=builder /data /data
  76.  ---> Using cache
  77.  ---> 2b5be8fe0d05
  78. Step 17/21 : USER 65534
  79.  ---> Using cache
  80.  ---> 164d1c59d707
  81. Step 18/21 : WORKDIR /data
  82.  ---> Using cache
  83.  ---> d432a06029e7
  84. Step 19/21 : ENV HOST=127.0.0.1
  85.  ---> Using cache
  86.  ---> d31ccc25ac6e
  87. Step 20/21 : ENV PORT=8088
  88.  ---> Using cache
  89.  ---> 78027b0d7458
  90. Step 21/21 : ENTRYPOINT ["/shopping-cart"]
  91.  ---> Using cache
  92.  ---> d51e5a11fb60
  93. Successfully built d51e5a11fb60
  94. Successfully tagged sleipnir/shopping-cart:1.0.1
  95. Image created successfully!
  96. Ok("/home/sleipnir/development/workspace/pessoal/cloudstate-cli/shopping-cart")
  97. Push container image...
  98. The push refers to repository [docker.io/sleipnir/shopping-cart]
  99. 54a6da632ac6: Pushed
  100. 2ab58459da5c: Pushed
  101.  
  102. 1.0.1: digest: sha256:54e704fd08f4c6516e29c83d71b4e4f68457b922622b78043568c90ebb34eb78 size: 735
  103. Pushed!
  104. Ok(())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement