File tree Expand file tree Collapse file tree 8 files changed +31
-8
lines changed
Basic_Installation/mezzio/src Expand file tree Collapse file tree 8 files changed +31
-8
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class QueryHandler implements RequestHandlerInterface
16
16
*/
17
17
private $ renderer ;
18
18
public ?Lookup $ lookup = NULL ;
19
+ public ?Postcode $ postcode = NULL ;
19
20
public function __construct (TemplateRendererInterface $ renderer , Postcode $ postcode )
20
21
{
21
22
$ this ->renderer = $ renderer ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ class Base
12
12
const GEONAMES_SHORT = 'cities15000short.txt ' ;
13
13
const GEONAMES_FILTERED = 'cities15000filtered.txt ' ;
14
14
const DATA_PATH = __DIR__ . '/../../../data/ ' ;
15
+ public ?string $ delim = NULL ;
15
16
public static $ geo = NULL ;
16
17
public static $ count = 0 ;
17
18
public static $ geoFn = self ::GEONAMES_FILTERED ;
Original file line number Diff line number Diff line change 1
1
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
2
6
RUN \
3
7
echo "Installing basic utils ..." && \
4
8
apk add nano && \
7
11
echo "Installing nginx ..." && \
8
12
apk add nginx && \
9
13
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
13
14
RUN chmod +x /usr/sbin/*.sh
14
15
ENTRYPOINT /usr/sbin/startup.sh
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ echo ' Copying config files'
3
+ cp /tmp/* .conf /etc/nginx/http.d
2
4
echo ' Resetting permissions'
3
5
chown -R nginx /var/www
4
6
chmod -R 775 /var/www
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/sh
2
2
. ../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
6
8
echo " Assigning permissions ..."
7
9
chmod 755 $HOME_DIR
8
10
chown -R vagrant:www-data $HOME_DIR /*
9
11
find $HOME_DIR /* -type f -exec chmod 664 {} \;
10
12
find $HOME_DIR /* -type d -exec chmod 775 {} \;
11
- find $HOME_DIR /* -name * .sh -exec chmod 775 {} \;
12
13
chown -R www-data:www-data /var/www
13
14
echo " Course-specific VM setup complete ... "
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ cd $HOME_DIR
4
4
cd Zend
5
5
echo " Installing misc tools ..." && \
6
6
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
8
8
echo " Installing database ..."
9
9
apt-get install -y mysql-server
10
10
/etc/init.d/mysql start
You can’t perform that action at this time.
0 commit comments