Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@sleipnir cloudstate-cli]# cloudstate --create=shopping-cart \
- > --profile=go \
- > --registry=docker.io/sleipnir \
- > --set-user=sleipnir \
- > --set-pass=***** \
- > --tag=1.0.1 \
- > --set-editor=idea
- Creating user function project: "shopping-cart"
- Using profile: "go"
- Extracting profile template.... /root/.cloudstate/templates/go/go.tar.gz
- Downloading and install dependencies...
- Project successfully compiled
- Project created!
- Open editor!
- total 13000
- -rw-r--r--. 1 root root 6411 Nov 5 18:38 main.go
- -rw-r--r--. 1 root root 613 Nov 5 18:39 Makefile
- -rw-r--r--. 1 root root 412 Nov 5 19:21 go.mod
- -rw-rw-r--. 1 root root 289 Nov 6 10:43 deployment.yml
- -rw-r--r--. 1 root root 1658 Nov 6 12:44 Dockerfile
- -rw-r--r--. 1 root root 4852 Nov 6 12:44 go.sum
- -rwxr-xr-x. 1 root root 13279098 Nov 6 12:44 shopping-cart
- Ok(())
- [root@sleipnir cloudstate-cli]# cloudstate --build=shopping-cart --tag=1.0.1 --push
- Ok("/home/sleipnir/development/workspace/pessoal/cloudstate-cli/shopping-cart")
- Sending build context to Docker daemon 13.33MB
- Step 1/21 : FROM golang:1.13.0-stretch AS builder
- ---> d68f79d0e22c
- Step 2/21 : ENV GO111MODULE=on CGO_ENABLED=1
- ---> Using cache
- ---> 72c2295b252a
- Step 3/21 : WORKDIR /build
- ---> Using cache
- ---> da725b9f716f
- Step 4/21 : COPY go.mod .
- ---> Using cache
- ---> 99a865f61b49
- Step 5/21 : COPY go.sum .
- ---> Using cache
- ---> bfa4ca4b4a63
- Step 6/21 : RUN go mod download
- ---> Using cache
- ---> 1c3dc15b6c1f
- Step 7/21 : COPY . .
- ---> f1afb574f735
- Step 8/21 : RUN go build .
- ---> Running in ab4ef97f90cf
- Removing intermediate container ab4ef97f90cf
- ---> 46930282dd59
- Step 9/21 : WORKDIR /dist
- ---> Running in 659d34343545
- Removing intermediate container 659d34343545
- ---> ed92c6b9fd16
- Step 10/21 : RUN cp /build/shopping-cart ./shopping-cart
- ---> Running in 923dae0b3fe0
- Removing intermediate container 923dae0b3fe0
- ---> 991c6dac0020
- Step 11/21 : RUN ldd shopping-cart | tr -s '[:blank:]' '\n' | grep '^/' | xargs -I % sh -c 'mkdir -p $(dirname ./%); cp % ./%;'
- ---> Running in 1136f85b9f4c
- Removing intermediate container 1136f85b9f4c
- ---> e4d45aaa8821
- Step 12/21 : RUN mkdir -p lib64 && cp /lib64/ld-linux-x86-64.so.2 lib64/
- ---> Running in 5512f891f7f6
- Removing intermediate container 5512f891f7f6
- ---> e742afa6d58b
- Step 13/21 : RUN mkdir /data
- ---> Running in 7e65172515ad
- Removing intermediate container 7e65172515ad
- ---> 0d8cc507c5fa
- Step 14/21 : FROM scratch
- --->
- Step 15/21 : COPY --chown=0:0 --from=builder /dist /
- ---> Using cache
- ---> 4ed50d70979a
- Step 16/21 : COPY --chown=65534:0 --from=builder /data /data
- ---> Using cache
- ---> 2b5be8fe0d05
- Step 17/21 : USER 65534
- ---> Using cache
- ---> 164d1c59d707
- Step 18/21 : WORKDIR /data
- ---> Using cache
- ---> d432a06029e7
- Step 19/21 : ENV HOST=127.0.0.1
- ---> Using cache
- ---> d31ccc25ac6e
- Step 20/21 : ENV PORT=8088
- ---> Using cache
- ---> 78027b0d7458
- Step 21/21 : ENTRYPOINT ["/shopping-cart"]
- ---> Using cache
- ---> d51e5a11fb60
- Successfully built d51e5a11fb60
- Successfully tagged sleipnir/shopping-cart:1.0.1
- Image created successfully!
- Ok("/home/sleipnir/development/workspace/pessoal/cloudstate-cli/shopping-cart")
- Push container image...
- The push refers to repository [docker.io/sleipnir/shopping-cart]
- 54a6da632ac6: Pushed
- 2ab58459da5c: Pushed
- 1.0.1: digest: sha256:54e704fd08f4c6516e29c83d71b4e4f68457b922622b78043568c90ebb34eb78 size: 735
- Pushed!
- Ok(())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement