Compare commits
4 Commits
1690ebdc91
...
90020de352
Author | SHA1 | Date |
---|---|---|
Adam Goldsmith | 90020de352 | |
Adam Goldsmith | d490859356 | |
Adam Goldsmith | 45d287be7b | |
Adam Goldsmith | 8dbf4d95ce |
|
@ -1,9 +1,9 @@
|
|||
FROM php:fpm as php-fpm
|
||||
FROM php:7-fpm as php-fpm
|
||||
RUN apt update && \
|
||||
apt install -y zip unzip git && \
|
||||
docker-php-ext-install mysqli pdo pdo_mysql
|
||||
|
||||
RUN git clone https://github.com/Kamalisk/arkhamdb /srv
|
||||
RUN git clone https://github.com/ad1217/arkhamdb /srv
|
||||
RUN chown -R www-data: /srv
|
||||
COPY parameters.yml /srv/app/config/parameters.yml
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
## Usage
|
||||
|
||||
1. Install [docker](https://www.docker.com/) and `docker compose`
|
||||
2. Probably edit `parameters.yml`, but the defaults are fine for local testing
|
||||
3. Optionally edit `setup.sh` to change where [arkhamdb-json-data](https://github.com/ad1217/arkhamdb-json-data) is pulled from
|
||||
4. Run `setup.sh`
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker-compose exec -T -w /srv/ arkhamdb php bin/console app:import:std ./arkhamdb-json-data/
|
||||
docker compose exec -T -w /srv/ arkhamdb php bin/console app:import:std ./arkhamdb-json-data/
|
||||
|
|
6
setup.sh
6
setup.sh
|
@ -3,10 +3,10 @@ set -e
|
|||
|
||||
git clone https://github.com/ad1217/arkhamdb-json-data
|
||||
|
||||
docker-compose up -d
|
||||
docker compose up -d
|
||||
|
||||
echo "waiting for a bit to allow database to start..."
|
||||
sleep 5
|
||||
|
||||
docker-compose exec -T -w /srv/ arkhamdb php bin/console doctrine:schema:create
|
||||
docker-compose exec -T -w /srv/ arkhamdb php bin/console app:import:std ./arkhamdb-json-data/
|
||||
docker compose exec -T -w /srv/ arkhamdb php bin/console doctrine:schema:create
|
||||
docker compose exec -T -w /srv/ arkhamdb php bin/console app:import:std ./arkhamdb-json-data/
|
||||
|
|
Loading…
Reference in New Issue