Skip to content

Commit e39829f

Browse files
authored
Fix terminating containers (#102)
1 parent 893db3c commit e39829f

File tree

25 files changed

+203
-7
lines changed

25 files changed

+203
-7
lines changed

.ci/openshift_integration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ $(realpath odo) registry delete DefaultDevfileRegistry -f
6262
$(realpath odo) registry add TestDevfileRegistry http://$REGISTRY_HOSTNAME
6363

6464
# Run the devfile validation tests
65-
ENV=openshift REGISTRY=remote tests/test.sh $(realpath odo) $YQ_PATH
65+
ENV=openshift REGISTRY=remote tests/check_odo_happy_path.sh $(realpath odo) $YQ_PATH

.github/workflows/validate-devfiles-minikube.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
- name: Checkout
3232
uses: actions/checkout@v1
3333
- name: Setup Minikube
34-
uses: manusa/actions-setup-minikube@v2.4.2
34+
uses: manusa/actions-setup-minikube@v2.7.0
3535
with:
36-
minikube version: 'v1.21.0'
37-
kubernetes version: 'v1.21.0'
36+
minikube version: 'v1.26.1'
37+
kubernetes version: '1.25.0'
3838
driver: 'docker'
3939
github token: ${{ secrets.GITHUB_TOKEN }}
4040
start args: '--addons=ingress'
@@ -43,5 +43,7 @@ jobs:
4343
with:
4444
# Installs the latest release of odo
4545
odo: "2.5.1"
46-
- name: Validate the devfile stacks
47-
run: tests/test.sh odo
46+
- name: Check that containers components are non terminating
47+
run: tests/check_non_terminating.sh
48+
- name: Run odo happy path tests
49+
run: tests/check_odo_happy_path.sh odo

stacks/dotnet50/devfile.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ components:
2424
- name: dotnet
2525
container:
2626
image: registry.access.redhat.com/ubi8/dotnet-50:5.0
27+
args: ["tail", "-f", "/dev/null"]
2728
mountSources: true
2829
env:
2930
- name: CONFIGURATION

stacks/dotnet60/devfile.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ components:
2424
- name: dotnet
2525
container:
2626
image: registry.access.redhat.com/ubi8/dotnet-60:6.0
27+
args: ["tail", "-f", "/dev/null"]
2728
mountSources: true
2829
env:
2930
- name: CONFIGURATION

stacks/dotnetcore31/devfile.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ components:
2424
- name: dotnet
2525
container:
2626
image: registry.access.redhat.com/ubi8/dotnet-31:3.1
27+
args: ["tail", "-f", "/dev/null"]
2728
mountSources: true
2829
env:
2930
- name: CONFIGURATION

stacks/go/devfile.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ components:
2323
- name: http-go
2424
targetPort: 8080
2525
image: quay.io/devfile/golang:latest
26+
args: ["tail", "-f", "/dev/null"]
2627
memoryLimit: 1024Mi
2728
mountSources: true
2829
name: runtime

stacks/java-openliberty-gradle/devfile.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ components:
4040
- name: dev
4141
container:
4242
image: icr.io/appcafe/open-liberty-devfile-stack:{{liberty-version}}-gradle
43+
args: ["tail", "-f", "/dev/null"]
4344
memoryLimit: 1280Mi
4445
mountSources: true
4546
endpoints:

stacks/java-openliberty/devfile.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ components:
4242
container:
4343
# In the original upstream of this devfile, the image used is openliberty/devfile-stack:<x.y.z>, which is built from the repository: https://github.com/OpenLiberty/devfile-stack
4444
image: icr.io/appcafe/open-liberty-devfile-stack:{{liberty-version}}
45+
args: ["tail", "-f", "/dev/null"]
4546
memoryLimit: 768Mi
4647
mountSources: true
4748
endpoints:

stacks/java-quarkus/devfile.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ components:
2020
- name: tools
2121
container:
2222
image: registry.access.redhat.com/ubi8/openjdk-11
23+
args: ["tail", "-f", "/dev/null"]
2324
memoryLimit: 512Mi ## default app nowhere needs this but leaving room for expansion.
2425
mountSources: true
2526
volumeMounts:

stacks/java-websphereliberty-gradle/devfile.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ components:
4040
- name: dev
4141
container:
4242
image: icr.io/appcafe/websphere-liberty-devfile-stack:{{liberty-version}}-gradle
43+
args: ["tail", "-f", "/dev/null"]
4344
memoryLimit: 1280Mi
4445
mountSources: true
4546
endpoints:

0 commit comments

Comments
 (0)