Skip to content

Commit ec16a43

Browse files
[Devtools week] go and php-laravel stack image tag updates and fixes (#188)
* update go image tags from 1.18.9-14 to 1.18.10-4 Signed-off-by: Michael Valdron <mvaldron@redhat.com> * go-toolset image tags update from latest to 1.18.10-4 under Dockerfile resources of go stack Signed-off-by: Michael Valdron <mvaldron@redhat.com> * use go-toolset base image workdir instead of overriding it to fix image-build permissions error under go stack Signed-off-by: Michael Valdron <mvaldron@redhat.com> * php-laravel stack and image tag updates Signed-off-by: Michael Valdron <mvaldron@redhat.com> --------- Signed-off-by: Michael Valdron <mvaldron@redhat.com>
1 parent 1315b0f commit ec16a43

File tree

9 files changed

+116
-13
lines changed

9 files changed

+116
-13
lines changed

stacks/go/1.0.2/devfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ components:
2323
endpoints:
2424
- name: http-go
2525
targetPort: 8080
26-
image: registry.access.redhat.com/ubi9/go-toolset:1.18.9-14
26+
image: registry.access.redhat.com/ubi9/go-toolset:1.18.10-4
2727
args: ["tail", "-f", "/dev/null"]
2828
memoryLimit: 1024Mi
2929
mountSources: true

stacks/go/1.1.0/devfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ components:
2626
- exposure: none
2727
name: debug
2828
targetPort: 5858
29-
image: registry.access.redhat.com/ubi9/go-toolset:1.18.9-14
29+
image: registry.access.redhat.com/ubi9/go-toolset:1.18.10-4
3030
args: ["tail", "-f", "/dev/null"]
3131
env:
3232
- name: DEBUG_PORT

stacks/go/2.0.0/devfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ components:
3636
endpoints:
3737
- name: http-go
3838
targetPort: 8080
39-
image: registry.access.redhat.com/ubi9/go-toolset:1.18.9-14
39+
image: registry.access.redhat.com/ubi9/go-toolset:1.18.10-4
4040
args: ['tail', '-f', '/dev/null']
4141
memoryLimit: 1024Mi
4242
mountSources: true

stacks/go/2.0.0/docker/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
FROM registry.access.redhat.com/ubi9/go-toolset:latest
2-
3-
WORKDIR /app
1+
FROM registry.access.redhat.com/ubi9/go-toolset:1.18.10-4
42

53
COPY go.mod ./
64
RUN go mod download
@@ -11,4 +9,4 @@ RUN go build -o ./main
119

1210
EXPOSE 8081
1311

14-
CMD [ "app/main" , "-p=8081"]
12+
CMD [ "./main" , "-p=8081"]

stacks/go/2.1.0/devfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ components:
3939
- exposure: none
4040
name: debug
4141
targetPort: 5858
42-
image: registry.access.redhat.com/ubi9/go-toolset:1.18.9-14
42+
image: registry.access.redhat.com/ubi9/go-toolset:1.18.10-4
4343
args: ['tail', '-f', '/dev/null']
4444
env:
4545
- name: DEBUG_PORT

stacks/go/2.1.0/docker/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
FROM registry.access.redhat.com/ubi9/go-toolset:latest
2-
3-
WORKDIR /app
1+
FROM registry.access.redhat.com/ubi9/go-toolset:1.18.10-4
42

53
COPY go.mod ./
64
RUN go mod download
@@ -11,4 +9,4 @@ RUN go build -o ./main
119

1210
EXPOSE 8081
1311

14-
CMD [ "app/main" , "-p=8081"]
12+
CMD [ "./main" , "-p=8081"]

stacks/php-laravel/devfile.yaml renamed to stacks/php-laravel/1.0.1/devfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ components:
2727
endpoints:
2828
- name: http-laravel
2929
targetPort: 8000
30-
image: quay.io/devfile/composer:2.4
30+
image: quay.io/devfile/composer:2.5.8
3131
args: ["tail", "-f", "/dev/null"]
3232
memoryLimit: 1024Mi
3333
mountSources: true

stacks/php-laravel/2.0.0/devfile.yaml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
schemaVersion: 2.2.0
2+
metadata:
3+
name: php-laravel
4+
displayName: Laravel
5+
description: "Laravel is an open-source PHP framework, which is robust and easy to understand.
6+
It follows a model-view-controller design pattern.
7+
Laravel reuses the existing components of different frameworks which helps in creating a web application.
8+
The web application thus designed is more structured and pragmatic."
9+
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/laravel.svg
10+
tags:
11+
- PHP
12+
- Composer
13+
- Laravel
14+
projectType: Laravel
15+
language: PHP
16+
provider: Red Hat
17+
version: 2.0.0
18+
starterProjects:
19+
- name: php-laravel-starter
20+
git:
21+
checkoutFrom:
22+
revision: main
23+
remotes:
24+
origin: https://github.com/devfile-samples/devfile-stack-php-laravel.git
25+
components:
26+
- container:
27+
endpoints:
28+
- name: http-laravel
29+
targetPort: 8000
30+
image: quay.io/devfile/composer:2.5.8
31+
args: ["tail", "-f", "/dev/null"]
32+
memoryLimit: 1024Mi
33+
mountSources: true
34+
name: runtime
35+
commands:
36+
- exec:
37+
commandLine: composer install
38+
component: runtime
39+
group:
40+
isDefault: false
41+
kind: build
42+
workingDir: ${PROJECT_SOURCE}
43+
id: install
44+
- exec:
45+
commandLine: cp .env.example .env
46+
component: runtime
47+
group:
48+
isDefault: false
49+
kind: build
50+
workingDir: ${PROJECT_SOURCE}
51+
id: cp-env
52+
- exec:
53+
commandLine: php artisan config:clear
54+
component: runtime
55+
group:
56+
isDefault: false
57+
kind: build
58+
workingDir: ${PROJECT_SOURCE}
59+
id: clear-config
60+
- exec:
61+
commandLine: php artisan key:generate
62+
component: runtime
63+
group:
64+
isDefault: false
65+
kind: build
66+
workingDir: ${PROJECT_SOURCE}
67+
id: gen-new-app-key
68+
- exec:
69+
commandLine: composer dump-autoload
70+
component: runtime
71+
group:
72+
isDefault: false
73+
kind: build
74+
workingDir: ${PROJECT_SOURCE}
75+
id: composer-dump
76+
- composite:
77+
commands:
78+
- install
79+
- cp-env
80+
- clear-config
81+
- gen-new-app-key
82+
- composer-dump
83+
group:
84+
isDefault: true
85+
kind: build
86+
label: Provision Laravel Server
87+
parallel: false
88+
id: init-server
89+
- exec:
90+
commandLine: php artisan serve --host=0.0.0.0
91+
component: runtime
92+
group:
93+
isDefault: true
94+
kind: run
95+
workingDir: ${PROJECT_SOURCE}
96+
id: run

stacks/php-laravel/stack.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: php-laravel
2+
description: "Laravel is an open-source PHP framework, which is robust and easy to understand.
3+
It follows a model-view-controller design pattern.
4+
Laravel reuses the existing components of different frameworks which helps in creating a web application.
5+
The web application thus designed is more structured and pragmatic."
6+
displayName: Laravel
7+
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/laravel.svg
8+
versions:
9+
- version: 1.0.1
10+
default: true
11+
- version: 2.0.0

0 commit comments

Comments
 (0)