Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions app-n-job/Dockerfile

This file was deleted.

16 changes: 0 additions & 16 deletions app-n-job/README.md

This file was deleted.

25 changes: 0 additions & 25 deletions app-n-job/app-n-job.go

This file was deleted.

19 changes: 0 additions & 19 deletions app-n-job/build

This file was deleted.

52 changes: 0 additions & 52 deletions app-n-job/run

This file was deleted.

14 changes: 8 additions & 6 deletions app2job/Dockerfile.app
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM icr.io/codeengine/golang:alpine
COPY app.go /
RUN go build -o /app /app.go
FROM quay.io/projectquay/golang:1.22 AS build-env
WORKDIR /go/src/app
COPY app.go .

RUN CGO_ENABLED=0 go build -o /go/bin/app app.go

# Copy the exe into a smaller base image
FROM icr.io/codeengine/alpine
COPY --from=0 /app /app
CMD /app
FROM gcr.io/distroless/static-debian12
COPY --from=build-env /go/bin/app /
CMD ["/app"]
14 changes: 8 additions & 6 deletions app2job/Dockerfile.job
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM icr.io/codeengine/golang:alpine
COPY job.go /
RUN go build -o /job /job.go
FROM quay.io/projectquay/golang:1.22 AS build-env
WORKDIR /go/src/app
COPY job.go .

RUN CGO_ENABLED=0 go build -o /go/bin/job job.go

# Copy the exe into a smaller base image
FROM icr.io/codeengine/alpine
COPY --from=0 /job /job
CMD /job
FROM gcr.io/distroless/static-debian12
COPY --from=build-env /go/bin/job /
CMD ["/job"]
4 changes: 2 additions & 2 deletions app2job/run
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export REGISTRY=${REGISTRY:-icr.io/codeengine}
export COUNT=${COUNT:-50}

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

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

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

# Now, curl the app and see if it creates the job
curl -fs ${URL}/a2j-job -X PUT | tee out
Expand Down
25 changes: 0 additions & 25 deletions bash/Dockerfile

This file was deleted.

39 changes: 0 additions & 39 deletions bash/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions bash/app

This file was deleted.

19 changes: 0 additions & 19 deletions bash/build

This file was deleted.

16 changes: 0 additions & 16 deletions bash/init

This file was deleted.

58 changes: 0 additions & 58 deletions bash/run

This file was deleted.

Loading