Skip to content

Commit b49fc9f

Browse files
committed
updated code area with temp placeholder
1 parent c1c73a0 commit b49fc9f

File tree

10 files changed

+25
-25
lines changed

10 files changed

+25
-25
lines changed

Diff for: hello-go-deploy-gce-code/bin/create-binary.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh -e
2-
# hello-go-deploy-aks create-binary.sh
2+
# hello-go-deploy-gce create-binary.sh
33

44
echo " "
55

Diff for: hello-go-deploy-gce-code/build/Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# hello-go-deploy-aks example-01 Dockerfile used to build docker image
1+
# hello-go-deploy-gce example-01 Dockerfile used to build docker image
22

33
# Multi-stage build to create a small docker image
44

@@ -13,18 +13,18 @@ FROM golang:alpine AS builder
1313
RUN apk update && apk add --no-cache git
1414

1515
# SET WORKING DIRECTORY AND PLACE YOUR CODE IN
16-
WORKDIR $GOPATH/src/github.com/jeffdecola/hello-go-deploy-aks/
16+
WORKDIR $GOPATH/src/github.com/jeffdecola/hello-go-deploy-gce/
1717
COPY . .
1818

1919
# CHECK
20-
RUN ls -lat $GOPATH/src/github.com/jeffdecola/hello-go-deploy-aks/
20+
RUN ls -lat $GOPATH/src/github.com/jeffdecola/hello-go-deploy-gce/
2121

2222
# Fetch dependencies using go get
2323
RUN go get -u github.com/sirupsen/logrus
2424
RUN go get -d -v
2525

2626
# Build the binary
27-
RUN go build -o /go/bin/hello-go-deploy-aks main.go
27+
RUN go build -o /go/bin/hello-go-deploy-gce main.go
2828

2929
###############################
3030
# STAGE 2 build a smaller image
@@ -33,15 +33,15 @@ RUN go build -o /go/bin/hello-go-deploy-aks main.go
3333
FROM alpine
3434

3535
# Add my name to it
36-
LABEL maintainer="Jeff DeCola https://github.com/JeffDeCola/hello-go-deploy-aks"
36+
LABEL maintainer="Jeff DeCola https://github.com/JeffDeCola/hello-go-deploy-gce"
3737

3838
# Put the binary from previous build into /app
3939
RUN mkdir /app
40-
COPY --from=builder /go/bin/hello-go-deploy-aks /app/hello-go-deploy-aks
40+
COPY --from=builder /go/bin/hello-go-deploy-gce /app/hello-go-deploy-gce
4141
WORKDIR /app
4242

4343
# Add the ailibty to /bin/bash in alpine
4444
RUN apk add --update bash
4545

4646
# Run the binary
47-
ENTRYPOINT ["/app/hello-go-deploy-aks"]
47+
ENTRYPOINT ["/app/hello-go-deploy-gce"]

Diff for: hello-go-deploy-gce-code/build/build.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh -e
2-
# hello-go-deploy-aks build.sh
2+
# hello-go-deploy-gce build.sh
33

44
echo " "
55

@@ -26,19 +26,19 @@ echo " "
2626

2727
echo "Build your docker image using Dockerfile"
2828
echo "NOTE: The binary is built using this step"
29-
echo "docker build -f build/Dockerfile -t jeffdecola/hello-go-deploy-aks ."
30-
docker build -f build/Dockerfile -t jeffdecola/hello-go-deploy-aks .
29+
echo "docker build -f build/Dockerfile -t jeffdecola/hello-go-deploy-gce ."
30+
docker build -f build/Dockerfile -t jeffdecola/hello-go-deploy-gce .
3131
echo " "
3232

3333
echo "Check Docker Image size"
34-
echo "docker images jeffdecola/hello-go-deploy-aks:latest"
35-
docker images jeffdecola/hello-go-deploy-aks:latest
34+
echo "docker images jeffdecola/hello-go-deploy-gce:latest"
35+
docker images jeffdecola/hello-go-deploy-gce:latest
3636
echo " "
3737

3838
echo "Useful commands:"
39-
echo " docker run --name hello-go-deploy-aks -dit jeffdecola/hello-go-deploy-aks"
40-
echo " docker exec -i -t hello-go-deploy-aks /bin/bash"
41-
echo " docker logs hello-go-deploy-aks"
39+
echo " docker run --name hello-go-deploy-gce -dit jeffdecola/hello-go-deploy-gce"
40+
echo " docker exec -i -t hello-go-deploy-gce /bin/bash"
41+
echo " docker logs hello-go-deploy-gce"
4242
echo " "
4343

4444
echo "************************************************************************"

Diff for: hello-go-deploy-gce-code/deploy/deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# hello-go-deploy-aks deploy.sh
2+
# hello-go-deploy-gce deploy.sh
33

44
echo " "
55

Diff for: hello-go-deploy-gce-code/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module hello-go-deploy-aks-code
1+
module hello-go-deploy-gce-code
22

33
go 1.20
44

Diff for: hello-go-deploy-gce-code/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// hello-go-deploy-aks main.go
1+
// hello-go-deploy-gce main.go
22

33
package main
44

Diff for: hello-go-deploy-gce-code/main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// hello-go-deploy-aks main.go
1+
// hello-go-deploy-gce main.go
22

33
package main
44

Diff for: hello-go-deploy-gce-code/push/push.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh -e
2-
# hello-go-deploy-aks push.sh
2+
# hello-go-deploy-gce push.sh
33

44
echo " "
55

@@ -22,8 +22,8 @@ fi
2222
echo "Assuming you are logged in, lets push your built docker image to DockerHub"
2323
echo "To login to docker use:"
2424
echo " docker login"
25-
echo "docker push jeffdecola/hello-go-deploy-aks"
26-
docker push jeffdecola/hello-go-deploy-aks
25+
echo "docker push jeffdecola/hello-go-deploy-gce"
26+
docker push jeffdecola/hello-go-deploy-gce
2727
echo " "
2828

2929
echo "************************************************************************"

Diff for: hello-go-deploy-gce-code/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh -e
2-
# hello-go-deploy-aks run.sh
2+
# hello-go-deploy-gce run.sh
33

44
echo " "
55

Diff for: hello-go-deploy-gce-code/test/unit-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh -e
2-
# hello-go-deploy-aks unit-tests.sh
2+
# hello-go-deploy-gce unit-tests.sh
33

44
echo " "
55

0 commit comments

Comments
 (0)