GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — re-worked and tested quite some samples · norman465/CodeEngine@f3f2d05

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app-n-job
    • Dockerfile
    • README.md
    • app-n-job.go
    • build
    • run
  • app2job
    • Dockerfile.app
    • Dockerfile.job
    • run
  • bash
    • Dockerfile
    • README.md
    • app
    • build
    • init
    • run
    • server.go
  • bind-job
    • run
  • cecli
    • Dockerfile
    • cecli.go
    • run
  • cloudant-change-listener
    • Dockerfile
    • run
  • configmaps-env
    • Dockerfile
    • run
  • configmaps-vol
    • Dockerfile
    • run
  • cos-event-job
    • run
  • cos-event
    • Dockerfile
    • run
  • cos2cos
    • .DEPS
    • .SEQ
    • .gitignore
    • Dockerfile
    • README.md
    • __init__.py
    • build
    • cos.py
    • cos_2_cos.py
    • run
    • setup.py
    • templates
      • files.html
      • history.html
  • cronjob
    • Dockerfile
    • run
  • cron
    • Dockerfile
    • run
  • daemonjob
    • Dockerfile
    • run
  • function2job
    • Dockerfile
    • run
  • gallery
    • README.md
    • app
      • Dockerfile
    • job
      • Dockerfile
  • github
    • Dockerfile
    • run
  • helloworld-samples/function-codebundle-nodejs
    • README.md
  • helloworld
    • Dockerfile
    • helloworld.go
  • hello
    • Dockerfile
  • job2app
    • Dockerfile.app
    • Dockerfile
    • job.go
    • run
  • job
    • Dockerfile
    • README.md
    • build
    • job.go
    • run
  • metrics-collector
    • Dockerfile
    • go.mod
    • go.sum
  • private
    • Dockerfile.backend
    • Dockerfile.frontend
    • README.md
    • backend.go
    • build
    • frontend.go
    • run
  • s2i-buildpacks
    • README.md
    • package.json
    • run
    • server.js
  • s2i-dockerfile
    • Dockerfile
    • README.md
    • app.go
    • run
  • testjob
    • Dockerfile
    • README.md
    • build
    • run
    • testjob.go

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎app-n-job/Dockerfile‎

Copy file name to clipboardExpand all lines: app-n-job/Dockerfile
-8Lines changed: 0 additions & 8 deletions
This file was deleted.
Collapse file

‎app-n-job/README.md‎

Copy file name to clipboardExpand all lines: app-n-job/README.md
-16Lines changed: 0 additions & 16 deletions
This file was deleted.
Collapse file

‎app-n-job/app-n-job.go‎

Copy file name to clipboardExpand all lines: app-n-job/app-n-job.go
-25Lines changed: 0 additions & 25 deletions
This file was deleted.
Collapse file

‎app-n-job/build‎

Copy file name to clipboardExpand all lines: app-n-job/build
-19Lines changed: 0 additions & 19 deletions
This file was deleted.
Collapse file

‎app-n-job/run‎

Copy file name to clipboardExpand all lines: app-n-job/run
-52Lines changed: 0 additions & 52 deletions
This file was deleted.
Collapse file

‎app2job/Dockerfile.app‎

Copy file name to clipboard
+8-6Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
FROM icr.io/codeengine/golang:alpine
2-
COPY app.go /
3-
RUN go build -o /app /app.go
1+
FROM quay.io/projectquay/golang:1.22 AS build-env
2+
WORKDIR /go/src/app
3+
COPY app.go .
4+
5+
RUN CGO_ENABLED=0 go build -o /go/bin/app app.go
46

57
# Copy the exe into a smaller base image
6-
FROM icr.io/codeengine/alpine
7-
COPY --from=0 /app /app
8-
CMD /app
8+
FROM gcr.io/distroless/static-debian12
9+
COPY --from=build-env /go/bin/app /
10+
CMD ["/app"]
Collapse file

‎app2job/Dockerfile.job‎

Copy file name to clipboard
+8-6Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
FROM icr.io/codeengine/golang:alpine
2-
COPY job.go /
3-
RUN go build -o /job /job.go
1+
FROM quay.io/projectquay/golang:1.22 AS build-env
2+
WORKDIR /go/src/app
3+
COPY job.go .
4+
5+
RUN CGO_ENABLED=0 go build -o /go/bin/job job.go
46

57
# Copy the exe into a smaller base image
6-
FROM icr.io/codeengine/alpine
7-
COPY --from=0 /job /job
8-
CMD /job
8+
FROM gcr.io/distroless/static-debian12
9+
COPY --from=build-env /go/bin/job /
10+
CMD ["/job"]
Collapse file

‎app2job/run‎

Copy file name to clipboardExpand all lines: app2job/run
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ export REGISTRY=${REGISTRY:-icr.io/codeengine}
2323
export COUNT=${COUNT:-50}
2424

2525
# Create the app
26-
ibmcloud ce app create -n a2j-app --image ${REGISTRY}/a2j-app
26+
ibmcloud ce app create -n a2j-app --cpu .125 --memory 0.25G --image ${REGISTRY}/a2j-app
2727

2828
# Get metadata about the app for later use
2929
URL=$(ibmcloud ce app get -n a2j-app -o url)
3030

3131
# Create the job definition
32-
ibmcloud ce job create -n a2j-job --ai=1-${COUNT} --image ${REGISTRY}/a2j-job
32+
ibmcloud ce job create -n a2j-job --ai=1-${COUNT} --cpu .125 --memory 0.25G --image ${REGISTRY}/a2j-job
3333

3434
# Now, curl the app and see if it creates the job
3535
curl -fs ${URL}/a2j-job -X PUT | tee out
Collapse file

‎bash/Dockerfile‎

Copy file name to clipboardExpand all lines: bash/Dockerfile
-25Lines changed: 0 additions & 25 deletions
This file was deleted.
Collapse file

‎bash/README.md‎

Copy file name to clipboardExpand all lines: bash/README.md
-39Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.