Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image currency updates #113

Merged
merged 2 commits into from
Jul 26, 2024
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
3 changes: 2 additions & 1 deletion gallery/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM icr.io/codeengine/node:18-alpine
FROM icr.io/codeengine/node:22-alpine
RUN apk -U upgrade

# Define which files should be copied into the container image
COPY *.js .
Expand Down
8 changes: 4 additions & 4 deletions gallery/build
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export REGISTRY=${REGISTRY:-icr.io/codeengine}

# First build and push the app - notice no tag on the image name
cd app
podman build ${NOCACHE} -t ${REGISTRY}/gallery . --platform linux/amd64
podman push ${REGISTRY}/gallery:latest
docker build ${NOCACHE} -t ${REGISTRY}/gallery . --platform linux/amd64
docker push ${REGISTRY}/gallery:latest
cd ..

# Second build and push the job - notice no tag on the image name
cd job
podman build ${NOCACHE} -t ${REGISTRY}/gallery-job . --platform linux/amd64
podman push ${REGISTRY}/gallery-job:latest
docker build ${NOCACHE} -t ${REGISTRY}/gallery-job . --platform linux/amd64
docker push ${REGISTRY}/gallery-job:latest
cd ..
3 changes: 2 additions & 1 deletion gallery/job/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM icr.io/codeengine/node:18-alpine
FROM icr.io/codeengine/node:22-alpine
RUN apk -U upgrade

# Define which files should be copied into the container image
COPY *.js .
Expand Down
3 changes: 2 additions & 1 deletion hello/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM icr.io/codeengine/node:20-alpine
FROM icr.io/codeengine/node:22-alpine
RUN apk -U upgrade
WORKDIR /app
RUN npm init -f && npm install
COPY server.js .
Expand Down
2 changes: 2 additions & 0 deletions helloworld/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM icr.io/codeengine/golang:alpine
RUN apk -U upgrade
COPY helloworld.go /
RUN go build -ldflags '-s -w -extldflags "-static"' -o /helloworld /helloworld.go

# Copy the exe into a smaller base image
FROM icr.io/codeengine/alpine
RUN apk -U upgrade
COPY --from=0 /helloworld /helloworld
CMD /helloworld
Loading