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

Update outdated base images and release 0.8.1.MS3 #247

Merged
merged 2 commits into from
Oct 27, 2023
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
5 changes: 3 additions & 2 deletions demo/dockerfiles/demo-theia-monitor-theia/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-bullseye as build-stage
FROM node:16-bookworm as build-stage
RUN apt-get update && apt-get install -y libxkbfile-dev libsecret-1-dev
WORKDIR /home/theia
ADD package.json ./package.json
Expand All @@ -13,10 +13,11 @@ RUN yarn --pure-lockfile && \
yarn autoclean --force && \
yarn cache clean

FROM node:16-bullseye-slim as production-stage
FROM node:16-bookworm-slim as production-stage
RUN adduser --system --group theia
RUN chmod g+rw /home && \
mkdir -p /home/project && \
mkdir -p /home/theia && \
chown -R theia:theia /home/theia && \
chown -R theia:theia /home/project;
RUN apt-get update && apt-get install -y wget apt-transport-https && \
Expand Down
2 changes: 1 addition & 1 deletion demo/dockerfiles/demo-theia-monitor-vscode/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM theiacloud/theia-cloud-demo as production-stage
FROM theiacloud/theia-cloud-demo:0.8.1.MS3 as production-stage

COPY --chown=theia:theia theiacloud-monitor-0.8.1.vsix /home/theia/applications/browser/plugins
2 changes: 1 addition & 1 deletion demo/k8s/appdefinitions/theia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: theiacloud
spec:
downlinkLimit: 30000
image: theiacloud/theia-cloud-demo:0.8.1.MS2
image: theiacloud/theia-cloud-demo:0.8.1.MS3
imagePullPolicy: IfNotPresent
ingressname: theia-cloud-demo-ws-ingress
limitsCpu: "2"
Expand Down
5 changes: 3 additions & 2 deletions dockerfiles/operator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM maven:3.8.4-openjdk-11 AS builder
FROM eclipse-temurin:11-jdk AS builder
RUN apt-get update && apt-get install -y maven
WORKDIR /operator
COPY java/common ./common
COPY java/operator ./operator
Expand All @@ -9,7 +10,7 @@ RUN cd /operator/common/maven-conf && \
cd /operator/operator/org.eclipse.theia.cloud.operator && \
mvn clean verify --no-transfer-progress

FROM openjdk:11-jre-slim-buster
FROM eclipse-temurin:11-jre-alpine
RUN mkdir /templates
WORKDIR /log-config
COPY java/operator/org.eclipse.theia.cloud.operator/log4j2.xml .
Expand Down
5 changes: 3 additions & 2 deletions dockerfiles/operator/Dockerfile.withcache
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM maven:3.8.4-openjdk-11 AS builder
FROM eclipse-temurin:11-jdk AS builder
RUN apt-get update && apt-get install -y maven
WORKDIR /operator
COPY java/common ./common
COPY java/operator ./operator
Expand All @@ -10,7 +11,7 @@ RUN --mount=type=cache,target=/root/.m2 \
cd /operator/operator/org.eclipse.theia.cloud.operator && \
mvn clean verify

FROM openjdk:11-jre-slim-buster
FROM eclipse-temurin:11-jre-alpine
RUN mkdir /templates
WORKDIR /log-config
COPY java/operator/org.eclipse.theia.cloud.operator/log4j2.xml .
Expand Down
5 changes: 3 additions & 2 deletions dockerfiles/service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM maven:3.8.4-openjdk-11 AS builder
FROM eclipse-temurin:11-jdk AS builder
RUN apt-get update && apt-get install -y maven
WORKDIR /service
COPY java/common ./common
COPY java/service ./service
Expand All @@ -9,7 +10,7 @@ RUN cd /service/common/maven-conf && \
cd /service/service/org.eclipse.theia.cloud.service && \
mvn clean package -Dmaven.test.skip=true -Dquarkus.package.type=uber-jar --no-transfer-progress

FROM openjdk:11-jre-slim-buster
FROM eclipse-temurin:11-jre-alpine
WORKDIR /service
COPY --from=builder /service/service/org.eclipse.theia.cloud.service/target/service-0.8.1-SNAPSHOT-runner.jar .
ENV APPID default-app-id
Expand Down
5 changes: 3 additions & 2 deletions dockerfiles/service/Dockerfile.withcache
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM maven:3.8.4-openjdk-11 AS builder
FROM eclipse-temurin:11-jdk AS builder
RUN apt-get update && apt-get install -y maven
WORKDIR /service
COPY java/common ./common
COPY java/service ./service
Expand All @@ -10,7 +11,7 @@ RUN --mount=type=cache,target=/root/.m2 \
cd /service/service/org.eclipse.theia.cloud.service && \
mvn clean package -Dmaven.test.skip=true -Dquarkus.package.type=uber-jar

FROM openjdk:11-jre-slim-buster
FROM eclipse-temurin:11-jre-alpine
WORKDIR /service
COPY --from=builder /service/service/org.eclipse.theia.cloud.service/target/service-0.8.1-SNAPSHOT-runner.jar .
ENV APPID default-app-id
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/wondershaper/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bullseye-slim
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y iproute2 wondershaper && \
apt-get clean
# kilobits per second
Expand Down
4 changes: 2 additions & 2 deletions helm/theia.cloud/valuesGKETryNow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ issuer:
email: [email protected]

image:
name: theiacloud/theia-cloud-demo:0.8.1.MS2
name: theiacloud/theia-cloud-demo:0.8.1.MS3
pullSecret: ""
timeoutStrategy: "FIXEDTIME"
timeoutLimit: "30"
Expand All @@ -22,7 +22,7 @@ hosts:
instance: ws.theia-cloud.io

landingPage:
image: theiacloud/theia-cloud-try-now-page:0.8.1.MS2
image: theiacloud/theia-cloud-try-now-page:0.8.1.MS3
appDefinition: "theia-cloud-demo"
ephemeralStorage: true
additionalApps:
Expand Down
4 changes: 2 additions & 2 deletions helm/theia.cloud/valuesMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ app:
name: Theia Blueprint

image:
name: theiacloud/theia-cloud-activity-demo:0.8.1.MS2
name: theiacloud/theia-cloud-activity-demo:0.8.1.MS3
pullSecret: ""
timeoutStrategy: "FIXEDTIME"
timeoutLimit: "0"
Expand All @@ -19,7 +19,7 @@ hosts:
instance: ws.theia-cloud.io

landingPage:
image: theiacloud/theia-cloud-try-now-page:0.8.1.MS2
image: theiacloud/theia-cloud-try-now-page:0.8.1.MS3
appDefinition: "theia-cloud-demo"
ephemeralStorage: true

Expand Down
2 changes: 1 addition & 1 deletion helm/theia.cloud/valuesTestTrynowPage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ hosts:
instance: ws.192.168.39.3.nip.io

landingPage:
image: theiacloud/theia-cloud-try-now-page:0.8.1.MS2
image: theiacloud/theia-cloud-try-now-page:0.8.1.MS3
imagePullPolicy: Always
appDefinition: "theia-cloud-demo"
ephemeralStorage: true
Expand Down
12 changes: 6 additions & 6 deletions terraform/modules/helm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ resource "helm_release" "theia-cloud-base" {
name = "theia-cloud-base"
repository = "https://github.eclipsesource.com/theia-cloud-helm"
chart = "theia-cloud-base"
version = "0.8.1-v004-MS2"
version = "0.8.1-v004-MS3"
namespace = "theiacloud"
create_namespace = true

Expand All @@ -145,7 +145,7 @@ resource "helm_release" "theia-cloud-crds" {
name = "theia-cloud-crds"
repository = "https://github.eclipsesource.com/theia-cloud-helm"
chart = "theia-cloud-crds"
version = "0.8.1-v004-MS2"
version = "0.8.1-v004-MS3"
namespace = "theiacloud"
create_namespace = true
}
Expand All @@ -162,9 +162,9 @@ locals {
# it will output "".
local_exec_quotes = startswith(abspath(path.module), "/") ? "'" : ""
jsonpatch = jsonencode([{
"op" = "add",
"path" = "/spec/template/spec/containers/0/args/-",
"value" = "--default-ssl-certificate=keycloak/${var.hostname}-tls"
"op" = "add",
"path" = "/spec/template/spec/containers/0/args/-",
"value" = "--default-ssl-certificate=keycloak/${var.hostname}-tls"
}])
}

Expand Down Expand Up @@ -229,7 +229,7 @@ resource "helm_release" "theia-cloud" {
name = "theia-cloud"
repository = "https://github.eclipsesource.com/theia-cloud-helm"
chart = "theia-cloud"
version = "0.8.1-v008-MS2"
version = "0.8.1-v009-MS3"
namespace = "theiacloud"
create_namespace = true

Expand Down
4 changes: 2 additions & 2 deletions terraform/modules/helm/theia-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ app:
name: Theia Cloud

image:
name: theiacloud/theia-cloud-demo:0.8.1.MS2
name: theiacloud/theia-cloud-demo:0.8.1.MS3
pullSecret: ""
timeoutStrategy: "FIXEDTIME"
timeoutLimit: "30"
Expand All @@ -19,7 +19,7 @@ hosts:
instance: instances

landingPage:
image: theiacloud/theia-cloud-landing-page:0.8.1.MS2
image: theiacloud/theia-cloud-landing-page:0.8.1.MS3
appDefinition: "theia-cloud-demo"
ephemeralStorage: false

Expand Down
2 changes: 1 addition & 1 deletion terraform/test-configurations/2-02_monitor/theia_cloud.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ resource "helm_release" "theia-cloud" {

set {
name = "image.name"
value = var.use_vscode_extension ? "theiacloud/theia-cloud-activity-demo:0.8.1.MS2" : "theiacloud/theia-cloud-activity-demo-theia:0.8.1.MS2"
value = var.use_vscode_extension ? "theiacloud/theia-cloud-activity-demo:0.8.1.MS3" : "theiacloud/theia-cloud-activity-demo-theia:0.8.1.MS3"
}

set {
Expand Down