Skip to content

Commit

Permalink
Testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasscheman committed Jun 21, 2024
1 parent a3a9f77 commit 74313cd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openshift/openshift.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN chmod -R a+rw /var/www/storage
RUN php artisan key:generate

# entrypoint
COPY ./docker/backend-entrypoint.sh /entrypoint.sh
COPY ./openshift/openshift-entrypoint.sh /entrypoint.sh
RUN chmod ugo+x /entrypoint.sh

RUN php artisan optimize
Expand Down
5 changes: 4 additions & 1 deletion openshift/sample/7_nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
labels:
app: fsw-nginx
app.kubernetes.io/part-of: fsw-sample-app
spec:
replicas: 1
selector:
Expand All @@ -14,6 +17,6 @@ spec:
spec:
containers:
- name: nginx
image: ghcr.io/utrechtuniversity/openshift-nginx:latest
image: ghcr.io/utrechtuniversity/nginx:latest
ports:
- containerPort: 8080
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ spec:
pathType: Prefix
backend:
service:
name: sample-app
name: nginx
port:
number: 80
2 changes: 1 addition & 1 deletion openshift/vhost.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ server {

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass backend:9000;
fastcgi_pass sample-app:80;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Expand Down

0 comments on commit 74313cd

Please sign in to comment.