Skip to content

Commit 36fa389

Browse files
author
unknown
committed
2024-09-24: Updated Orchesteration labs
1 parent 1559d70 commit 36fa389

File tree

8 files changed

+31
-8
lines changed

8 files changed

+31
-8
lines changed

Basic_Installation/mezzio/src/App/src/Handler/QueryHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class QueryHandler implements RequestHandlerInterface
1616
*/
1717
private $renderer;
1818
public ?Lookup $lookup = NULL;
19+
public ?Postcode $postcode = NULL;
1920
public function __construct(TemplateRendererInterface $renderer, Postcode $postcode)
2021
{
2122
$this->renderer = $renderer;

Basic_Installation/mezzio/src/Demo/Geonames/Base.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Base
1212
const GEONAMES_SHORT = 'cities15000short.txt';
1313
const GEONAMES_FILTERED = 'cities15000filtered.txt';
1414
const DATA_PATH = __DIR__ . '/../../../data/';
15+
public ?string $delim = NULL;
1516
public static $geo = NULL;
1617
public static $count = 0;
1718
public static $geoFn = self::GEONAMES_FILTERED;
Binary file not shown.
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
FROM alpine:latest
2+
COPY nginx.startup.sh /usr/sbin/startup.sh
3+
COPY nginx.default.conf /tmp/default.conf
4+
COPY nginx.zendphp1.conf /tmp/nginx.zendphp1.conf
5+
COPY nginx.zendphp2.conf /tmp/nginx.zendphp2.conf
26
RUN \
37
echo "Installing basic utils ..." && \
48
apk add nano && \
@@ -7,8 +11,5 @@ RUN \
711
echo "Installing nginx ..." && \
812
apk add nginx && \
913
chown -R nginx /var/www
10-
COPY nginx.startup.sh /usr/sbin/startup.sh
11-
COPY nginx.zendphp1.conf /etc/nginx/http.d/zendphp1.conf
12-
COPY nginx.zendphp2.conf /etc/nginx/http.d/zendphp2.conf
1314
RUN chmod +x /usr/sbin/*.sh
1415
ENTRYPOINT /usr/sbin/startup.sh
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
server {
2+
listen 80 default_server;
3+
listen [::]:80 default_server;
4+
root /var/www/mezzio/public;
5+
6+
location / {
7+
try_files $uri index.php @mezzio;
8+
fastcgi_pass 10.10.70.30:9000;
9+
fastcgi_index index.php;
10+
include fastcgi.conf;
11+
}
12+
13+
location @mezzio {
14+
rewrite /(.*)$ /index.php?/$1 last;
15+
}
16+
17+
}

Orchestration_Labs/docker/nginx.startup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2+
echo 'Copying config files'
3+
cp /tmp/*.conf /etc/nginx/http.d
24
echo 'Resetting permissions'
35
chown -R nginx /var/www
46
chmod -R 775 /var/www

VM/install_extra.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/usr/bin/sh
22
. ../Docker/secrets.sh
3-
echo "Installing Podman ..."
4-
apt-get install -y podman
5-
apt-get install -y podman-compose
3+
echo "Installing misc tools ..." && \
4+
apt-get update -y
5+
apt-get install -y podman podman-compose
6+
ln -s /usr/bin/podman /usr/bin/docker
7+
ln -s /usr/bin/podman-compose /usr/bin/docker-compose
68
echo "Assigning permissions ..."
79
chmod 755 $HOME_DIR
810
chown -R vagrant:www-data $HOME_DIR/*
911
find $HOME_DIR/* -type f -exec chmod 664 {} \;
1012
find $HOME_DIR/* -type d -exec chmod 775 {} \;
11-
find $HOME_DIR/* -name *.sh -exec chmod 775 {} \;
1213
chown -R www-data:www-data /var/www
1314
echo "Course-specific VM setup complete ... "

VM/install_vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cd $HOME_DIR
44
cd Zend
55
echo "Installing misc tools ..." && \
66
apt-get update -y
7-
apt-get install -y git net-tools docker docker-compose geany curl unzip
7+
apt-get install -y git net-tools git geany curl unzip
88
echo "Installing database ..."
99
apt-get install -y mysql-server
1010
/etc/init.d/mysql start

0 commit comments

Comments
 (0)