Fixed markdown

This commit is contained in:
Deon George 2018-12-06 11:28:48 +00:00
parent faa08e5518
commit 3da01d5897

View File

@ -1,10 +1,10 @@
Installing vBBS # Installing vBBS
* TL;DR - use docker :) ## TL;DR - use docker :)
Figure out where you will install this - can be anywhere, call this *$APP_DIR* Figure out where you will install this - can be anywhere, call this *$APP_DIR*
** Setup a MYSQL/MARIADB database ### Setup a MYSQL/MARIADB database
For docker, you can use the mariadb:latest image: For docker, you can use the mariadb:latest image:
```docker ```docker
@ -20,7 +20,7 @@ CONTAINER ID IMAGE COMMAND
fc2f32aaaa55 mariadb:10.3 "docker-entrypoint.s…" 4 seconds ago Up 3 seconds 3306/tcp vbbs_db fc2f32aaaa55 mariadb:10.3 "docker-entrypoint.s…" 4 seconds ago Up 3 seconds 3306/tcp vbbs_db
``` ```
** Clone the git repository ### Clone the git repository
```bash ```bash
mkdir -p ${APP_DIR}/composer mkdir -p ${APP_DIR}/composer
@ -48,11 +48,12 @@ DB_USERNAME=user
DB_PASSWORD=password DB_PASSWORD=password
``` ```
** Setup PHP ### Setup PHP
You're PHP will need SOCKETS and PCNTL and you'll need COMPOSER as well installed. You're PHP will need SOCKETS and PCNTL and you'll need COMPOSER as well installed.
If you are using docker, you can use my PHP image, which has all three. If you are using docker, you can use my PHP image, which has all three.
### Pre Setup
You need to run composer, and migrate to test connectivity to the database and seed it - you can do that in a single step You need to run composer, and migrate to test connectivity to the database and seed it - you can do that in a single step
```docker ```docker
@ -62,6 +63,7 @@ docker run --rm -u www-data -itd --link=vbbs_db --name=vbbs \
--entrypoint=/bin/bash registry.leenooks.net/leenooks/php:7.2-fpm-plus -c "composer install; php artisan migrate --seed" --entrypoint=/bin/bash registry.leenooks.net/leenooks/php:7.2-fpm-plus -c "composer install; php artisan migrate --seed"
``` ```
### Start
Now, run the app, you need to map it from the host port (can be anything), into the container onto APP_PORT that you specified above. Now, run the app, you need to map it from the host port (can be anything), into the container onto APP_PORT that you specified above.
For example, if you use 6502 for both: For example, if you use 6502 for both:
@ -81,6 +83,7 @@ If it started OK, you should see it running (use `docker ps`):
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9916ee39d9b7 registry.leenooks.net/leenooks/php:7.2-fpm-plus "/bin/bash -c 'php a…" 13 minutes ago Up 13 minutes 22/tcp, 9000/tcp, 0.0.0.0:6502->6502/tcp vbbs 9916ee39d9b7 registry.leenooks.net/leenooks/php:7.2-fpm-plus "/bin/bash -c 'php a…" 13 minutes ago Up 13 minutes 22/tcp, 9000/tcp, 0.0.0.0:6502->6502/tcp vbbs
``` ```
* Voila!
### Voila!
Use your videotex terminal and connect to your host on the APP_PORT that you used (eg: 6502) Use your videotex terminal and connect to your host on the APP_PORT that you used (eg: 6502)