Eclipse-Phase-Unofficial / ep-character-creator

A web-based character creator application for the Eclipse Phase role-playing game.
Other
27 stars 16 forks source link

Are the Docker instructions/sources ok? #109

Closed DavSanchez closed 5 years ago

DavSanchez commented 5 years ago

Hello there!

I'm trying to make this work with Docker, building and running an image or using docker-compose, to avoid messing with system installations of php and other stuff. However, none of the instructions provided seem to work, and even the docker-compose.yml file refers to some docker directory that doesn't actually exist in the repo.

Pulling the most recent image from Docker Hub or building it from the repo seems to create a slow but working Apache server (I see the building process has errors), but I cannot access it.

I guess the only way to run this is creating the database and running the server locally? I'm on a Mac if it helps.

Thank you!

EmperorArthur commented 5 years ago

That's my bad. The latest release switched from raw PHP to Laravel, and some files were not updated appropriately.

Try these commands and please tell me the output:

docker build --tag ep-character-creator .
docker container run --rm -it -p 80:80 ep-character-creator

They should build a local docker container, and run it locally. Pressing Control+C will exit the container.

DavSanchez commented 5 years ago

Seems to work now! I wonder what was I doing wrong a few days ago, I even set the port publishing option (-p) with port 80, but I could not access the server via localhost... Thank you!

Anyway, in case it gives some additional useful information, I attach the outputs. The first one is a bit long.

Output for docker build command:

Sending build context to Docker daemon  20.28MB
Step 1/16 : FROM php:7.2-apache
7.2-apache: Pulling from library/php
27833a3ba0a5: Pull complete
2d79f6773a3c: Pull complete
f5dd9a448b82: Pull complete
95719e57e42b: Pull complete
cc75e951030f: Pull complete
78873f480bce: Pull complete
1b14116a29a2: Pull complete
ea69a25cac2e: Pull complete
2dbd1202c78e: Pull complete
22cefd01eafa: Pull complete
21da110f3a63: Pull complete
0c1e476df271: Pull complete
70a74d14ca92: Pull complete
Digest: sha256:7d8d5ced6cbfa4677492c2845443f596d7839b702b7ef2af06c7ad09205e3ca5
Status: Downloaded newer image for php:7.2-apache
 ---> ea0b3a98a03e
Step 2/16 : EXPOSE 80
 ---> Running in c601fe7df492
Removing intermediate container c601fe7df492
 ---> bb0ebf4ae62f
Step 3/16 : HEALTHCHECK --interval=5m --timeout=3s     CMD curl -f http://localhost/ || exit 1
 ---> Running in d4cc808e15bd
Removing intermediate container d4cc808e15bd
 ---> 66968f2e2d92
Step 4/16 : RUN a2enmod rewrite &&     sed -i -e "s/html/html\/public/g" /etc/apache2/sites-enabled/000-default.conf &&     sed -i -e '/DocumentRoot/a\\n<Directory \/var\/www\/html\/>\nAllowOverride All\n<\/Directory>' /etc/apache2/sites-enabled/000-default.conf
 ---> Running in 7db0e2c3e4a2
Enabling module rewrite.
To activate the new configuration, you need to run:
  service apache2 restart
Removing intermediate container 7db0e2c3e4a2
 ---> f4f6f37c1e8d
Step 5/16 : RUN apt update && apt install -y sqlite3 unzip gnupg
 ---> Running in cb1e12f74e37

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:2 http://security-cdn.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian buster InRelease [163 kB]
Get:4 http://security-cdn.debian.org/debian-security buster/updates InRelease [39.1 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [46.8 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:8 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [487 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [11.1 kB]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Get:11 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7908 kB]
Get:12 http://security-cdn.debian.org/debian-security buster/updates/main amd64 Packages [1132 B]
Get:13 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [7082 kB]
Fetched 16.0 MB in 3s (4101 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
10 packages can be upgraded. Run 'apt list --upgradable' to see them.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  dirmngr gnupg-agent gnupg-l10n libassuan0 libksba8 libnpth0 libreadline7
  pinentry-curses readline-common
Suggested packages:
  dbus-user-session libpam-systemd pinentry-gnome3 tor parcimonie xloadimage
  scdaemon pinentry-doc readline-doc sqlite3-doc zip
The following NEW packages will be installed:
  dirmngr gnupg gnupg-agent gnupg-l10n libassuan0 libksba8 libnpth0
  libreadline7 pinentry-curses readline-common sqlite3 unzip
0 upgraded, 12 newly installed, 0 to remove and 10 not upgraded.
Need to get 4555 kB of archives.
After this operation, 13.0 MB of additional disk space will be used.
Get:1 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libassuan0 amd64 2.4.3-2 [42.5 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 pinentry-curses amd64 1.0.0-2 [50.5 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libnpth0 amd64 1.3-1 [14.6 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 readline-common all 7.0-3 [70.4 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libreadline7 amd64 7.0-3 [151 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gnupg-agent amd64 2.1.18-8~deb9u4 [554 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libksba8 amd64 1.3.5-2 [99.7 kB]
Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gnupg amd64 2.1.18-8~deb9u4 [1128 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 dirmngr amd64 2.1.18-8~deb9u4 [597 kB]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 sqlite3 amd64 3.16.2-5+deb9u1 [784 kB]
Get:11 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 unzip amd64 6.0-21+deb9u1 [170 kB]
Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gnupg-l10n all 2.1.18-8~deb9u4 [893 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 4555 kB in 1s (3758 kB/s)
Selecting previously unselected package libassuan0:amd64.
(Reading database ... 13114 files and directories currently installed.)
Preparing to unpack .../00-libassuan0_2.4.3-2_amd64.deb ...
Unpacking libassuan0:amd64 (2.4.3-2) ...
Selecting previously unselected package pinentry-curses.
Preparing to unpack .../01-pinentry-curses_1.0.0-2_amd64.deb ...
Unpacking pinentry-curses (1.0.0-2) ...
Selecting previously unselected package libnpth0:amd64.
Preparing to unpack .../02-libnpth0_1.3-1_amd64.deb ...
Unpacking libnpth0:amd64 (1.3-1) ...
Selecting previously unselected package readline-common.
Preparing to unpack .../03-readline-common_7.0-3_all.deb ...
Unpacking readline-common (7.0-3) ...
Selecting previously unselected package libreadline7:amd64.
Preparing to unpack .../04-libreadline7_7.0-3_amd64.deb ...
Unpacking libreadline7:amd64 (7.0-3) ...
Selecting previously unselected package gnupg-agent.
Preparing to unpack .../05-gnupg-agent_2.1.18-8~deb9u4_amd64.deb ...
Unpacking gnupg-agent (2.1.18-8~deb9u4) ...
Selecting previously unselected package libksba8:amd64.
Preparing to unpack .../06-libksba8_1.3.5-2_amd64.deb ...
Unpacking libksba8:amd64 (1.3.5-2) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../07-gnupg_2.1.18-8~deb9u4_amd64.deb ...
Unpacking gnupg (2.1.18-8~deb9u4) ...
Selecting previously unselected package dirmngr.
Preparing to unpack .../08-dirmngr_2.1.18-8~deb9u4_amd64.deb ...
Unpacking dirmngr (2.1.18-8~deb9u4) ...
Selecting previously unselected package sqlite3.
Preparing to unpack .../09-sqlite3_3.16.2-5+deb9u1_amd64.deb ...
Unpacking sqlite3 (3.16.2-5+deb9u1) ...
Selecting previously unselected package unzip.
Preparing to unpack .../10-unzip_6.0-21+deb9u1_amd64.deb ...
Unpacking unzip (6.0-21+deb9u1) ...
Selecting previously unselected package gnupg-l10n.
Preparing to unpack .../11-gnupg-l10n_2.1.18-8~deb9u4_all.deb ...
Unpacking gnupg-l10n (2.1.18-8~deb9u4) ...
Setting up libnpth0:amd64 (1.3-1) ...
Setting up readline-common (7.0-3) ...
Processing triggers for mime-support (3.60) ...
Setting up libreadline7:amd64 (7.0-3) ...
Setting up unzip (6.0-21+deb9u1) ...
Setting up libksba8:amd64 (1.3.5-2) ...
Setting up sqlite3 (3.16.2-5+deb9u1) ...
Setting up gnupg-l10n (2.1.18-8~deb9u4) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up libassuan0:amd64 (2.4.3-2) ...
Setting up pinentry-curses (1.0.0-2) ...
Setting up gnupg-agent (2.1.18-8~deb9u4) ...
Setting up dirmngr (2.1.18-8~deb9u4) ...
Setting up gnupg (2.1.18-8~deb9u4) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Removing intermediate container cb1e12f74e37
 ---> 83838257ea66
Step 6/16 : RUN curl --silent https://raw.githubusercontent.com/composer/getcomposer.org/d3e09029468023aa4e9dcd165e9b6f43df0a9999/web/installer | php -- --install-dir=/usr/bin/ --filename=composer --quiet
 ---> Running in 6fc66d233a02
Removing intermediate container 6fc66d233a02
 ---> 3bff342ddf4a
Step 7/16 : RUN curl -sL https://raw.githubusercontent.com/nodesource/distributions/0a7ddca803e0f8a4908bbd8142ba863aca2e1274/deb/setup_10.x | bash - &&     apt install -y nodejs
 ---> Running in 234fe84845d2

## Installing the NodeSource Node.js 10.x repo...

## Populating apt-get cache...

+ apt-get update
Hit:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://security-cdn.debian.org/debian-security buster/updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian buster InRelease
Hit:6 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease
Hit:7 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists...

## Installing packages required for setup: apt-transport-https lsb-release...

+ apt-get install -y apt-transport-https lsb-release > /dev/null 2>&1

## Confirming "stretch" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_10.x/dists/stretch/Release'

## Adding the NodeSource signing key to your keyring...

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK

## Creating apt sources list file for the NodeSource Node.js 10.x repo...

+ echo 'deb https://deb.nodesource.com/node_10.x stretch main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_10.x stretch main' >> /etc/apt/sources.list.d/nodesource.list

## Running `apt-get update` for you...

+ apt-get update
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:2 http://security-cdn.debian.org/debian-security stretch/updates InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:5 http://security-cdn.debian.org/debian-security buster/updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian buster InRelease
Hit:6 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease
Hit:7 http://cdn-fastly.deb.debian.org/debian stretch Release
Get:9 https://deb.nodesource.com/node_10.x stretch InRelease [4585 B]
Get:10 https://deb.nodesource.com/node_10.x stretch/main amd64 Packages [767 B]
Fetched 5352 B in 2s (1980 B/s)
Reading package lists...

## Run `sudo apt-get install -y nodejs` to install Node.js 10.x and npm
## You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
     echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python
  python-minimal python2.7 python2.7-minimal
Suggested packages:
  python-doc python-tk python2.7-doc binfmt-support
The following NEW packages will be installed:
  libpython-stdlib libpython2.7-minimal libpython2.7-stdlib nodejs python
  python-minimal python2.7 python2.7-minimal
0 upgraded, 8 newly installed, 0 to remove and 10 not upgraded.
Need to get 19.2 MB of archives.
After this operation, 88.7 MB of additional disk space will be used.
Get:1 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython2.7-minimal amd64 2.7.13-2+deb9u3 [389 kB]
Get:8 https://deb.nodesource.com/node_10.x stretch/main amd64 nodejs amd64 10.15.3-1nodesource1 [15.0 MB]
Get:2 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python2.7-minimal amd64 2.7.13-2+deb9u3 [1382 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python-minimal amd64 2.7.13-2 [40.5 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython2.7-stdlib amd64 2.7.13-2+deb9u3 [1897 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python2.7 amd64 2.7.13-2+deb9u3 [285 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython-stdlib amd64 2.7.13-2 [20.0 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python amd64 2.7.13-2 [154 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 19.2 MB in 2s (7113 kB/s)
Selecting previously unselected package libpython2.7-minimal:amd64.
(Reading database ... 14327 files and directories currently installed.)
Preparing to unpack .../0-libpython2.7-minimal_2.7.13-2+deb9u3_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.13-2+deb9u3) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../1-python2.7-minimal_2.7.13-2+deb9u3_amd64.deb ...
Unpacking python2.7-minimal (2.7.13-2+deb9u3) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../2-python-minimal_2.7.13-2_amd64.deb ...
Unpacking python-minimal (2.7.13-2) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../3-libpython2.7-stdlib_2.7.13-2+deb9u3_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.13-2+deb9u3) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../4-python2.7_2.7.13-2+deb9u3_amd64.deb ...
Unpacking python2.7 (2.7.13-2+deb9u3) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../5-libpython-stdlib_2.7.13-2_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.13-2) ...
Setting up libpython2.7-minimal:amd64 (2.7.13-2+deb9u3) ...
Setting up python2.7-minimal (2.7.13-2+deb9u3) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python-minimal (2.7.13-2) ...
Selecting previously unselected package python.
(Reading database ... 15073 files and directories currently installed.)
Preparing to unpack .../python_2.7.13-2_amd64.deb ...
Unpacking python (2.7.13-2) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../nodejs_10.15.3-1nodesource1_amd64.deb ...
Unpacking nodejs (10.15.3-1nodesource1) ...
Processing triggers for mime-support (3.60) ...
Setting up nodejs (10.15.3-1nodesource1) ...
Setting up libpython2.7-stdlib:amd64 (2.7.13-2+deb9u3) ...
Setting up python2.7 (2.7.13-2+deb9u3) ...
Setting up libpython-stdlib:amd64 (2.7.13-2) ...
Setting up python (2.7.13-2) ...
Removing intermediate container 234fe84845d2
 ---> 34fa988357fe
Step 8/16 : RUN echo '\ndate.timezone = "UTC"' >> /usr/local/etc/php/php.ini
 ---> Running in 4840ac0ad778
Removing intermediate container 4840ac0ad778
 ---> 2d1fc78a28e7
Step 9/16 : USER www-data:www-data
 ---> Running in 076c8e06edac
Removing intermediate container 076c8e06edac
 ---> 579b2d73b341
Step 10/16 : COPY --chown=www-data:www-data . /var/www/html/
 ---> 100bc315d71a
Step 11/16 : ENV DB_DATABASE /var/www/html/database/database.sqlite
 ---> Running in b42e1645a81a
Removing intermediate container b42e1645a81a
 ---> 4b905d0da055
Step 12/16 : RUN rm $DB_DATABASE; touch $DB_DATABASE &&     sed --in-place 's/\\n/ /g' /var/www/html/database/database.sql &&     sqlite3 --init /var/www/html/database/database.sql $DB_DATABASE
 ---> Running in b8f7beb3a889
rm: cannot remove '/var/www/html/database/database.sqlite': No such file or directory
Removing intermediate container b8f7beb3a889
 ---> 8470702151de
Step 13/16 : RUN export COMPOSER_HOME=/tmp && composer install --no-interaction --no-dev --optimize-autoloader
 ---> Running in 04b52e878ec1
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 42 installs, 0 updates, 0 removals
  - Installing doctrine/event-manager (v1.0.0): Downloading (100%)
  - Installing doctrine/cache (v1.8.0): Downloading (100%)
  - Installing doctrine/dbal (v2.8.0): Downloading (100%)
  - Installing doctrine/inflector (v1.3.0): Downloading (100%)
  - Installing doctrine/lexer (v1.0.1): Downloading (100%)
  - Installing dragonmantank/cron-expression (v2.2.0): Downloading (100%)
  - Installing erusev/parsedown (1.7.1): Downloading (100%)
  - Installing vlucas/phpdotenv (v2.5.1): Downloading (100%)
  - Installing symfony/css-selector (v4.1.7): Downloading (100%)
  - Installing tijsverkoyen/css-to-inline-styles (2.2.1): Downloading (100%)
  - Installing symfony/polyfill-php72 (v1.10.0): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.10.0): Downloading (100%)
  - Installing symfony/var-dumper (v4.1.7): Downloading (100%)
  - Installing symfony/routing (v4.1.7): Downloading (100%)
  - Installing symfony/process (v4.1.7): Downloading (100%)
  - Installing symfony/polyfill-ctype (v1.10.0): Downloading (100%)
  - Installing symfony/http-foundation (v4.1.7): Downloading (100%)
  - Installing symfony/event-dispatcher (v4.1.7): Downloading (100%)
  - Installing psr/log (1.0.2):Downloading (100%)  - Installing symfony/debug (v4.1.7): Downloading (100%)
  - Installing symfony/http-kernel (v4.1.7): Downloading (100%)
  - Installing symfony/finder (v4.1.7): Downloading (100%)
  - Installing symfony/console (v4.1.7): Downloading (100%)
  - Installing egulias/email-validator (2.1.6): Downloading (100%)
  - Installing swiftmailer/swiftmailer (v6.1.3): Downloading (100%)
  - Installing paragonie/random_compat (v9.99.99): Downloading (100%)
  - Installing ramsey/uuid (3.8.0): Downloading (100%)
  - Installing psr/simple-cache (1.0.1): Downloading (100%)
  - Installing psr/container (1.0.0): Downloading (100%)
  - Installing symfony/translation (v4.1.7): Downloading (100%)
  - Installing nesbot/carbon (1.25.0): Downloading (100%)
  - Installing monolog/monolog (1.23.0): Downloading (100%)
  - Installing league/flysystem (1.0.48): Downloading (100%)
  - Installing laravel/framework (v5.6.39): Downloading (100%)
  - Installing fideloper/proxy (4.0.0): Downloading (100%)
  - Installing jakub-onderka/php-console-color (v0.2): Downloading (100%)
  - Installing nikic/php-parser (v2.1.1): Downloading (100%)
  - Installing jakub-onderka/php-console-highlighter (v0.3.2): Downloading (100%)
  - Installing dnoegel/php-xdg-base-dir (0.1): Downloading (100%)
  - Installing psy/psysh (v0.9.9): Downloading (100%)
  - Installing laravel/tinker (v1.0.8): Downloading (100%)
  - Installing setasign/fpdf (1.8.1): Downloading (100%)
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Package manifest generated successfully.
Removing intermediate container 04b52e878ec1
 ---> 58a7447661fe
Step 14/16 : RUN export HOME=/tmp && npm install && npm run prod
 ---> Running in ddf82f5106c6

> webpack-cli@3.3.2 postinstall /var/www/html/node_modules/webpack-cli
> node ./bin/opencollective.js

                            Thanks for using Webpack!
                 Please consider donating to our Open Collective
                        to help us maintain this package.

                 Donate: https://opencollective.com/webpack/donate

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN postcss-import-url@3.0.4 requires a peer of postcss@>=6 <7 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 960 packages from 479 contributors and audited 16952 packages in 67.375s
found 0 vulnerabilities

> @ prod /var/www/html
> npm run production

> @ production /var/www/html
> cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

    Additional dependencies must be installed. This will only take a moment.

    Running: npm install vue-template-compiler --save-dev --production=false

npm WARN postcss-import-url@3.0.4 requires a peer of postcss@>=6 <7 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

    Okay, done. The following packages have been installed and saved to your package.json dependencies list:

    - vue-template-compiler

 WARNING  Compiled with 1 warnings8:47:20 PM

 warning  in ./resources/assets/sass/vendor.scss

Module Warning (from ./node_modules/postcss-loader/src/index.js):
Warning

(546:3) Can't read file '/var/www/html/public/~vegas/src/overlays/08.png', ignoring

 @ ./resources/assets/sass/vendor.scss 2:14-270

                                                                   Asset       Size  Chunks             Chunk Names
                                                            /css/app.css   43.3 KiB       0  [emitted]  /js/app
                                                         /css/vendor.css   75.3 KiB       0  [emitted]  /js/app
                                                              /js/app.js   45.7 KiB       0  [emitted]  /js/app
                                                           /js/legacy.js   24.2 KiB          [emitted]
                                                         /js/manifest.js   1.42 KiB       1  [emitted]  /js/manifest
                                                           /js/vendor.js    106 KiB       2  [emitted]  /js/vendor
images/vendor/vegas/src/overlays/08.png?1f1ced38bcfdd6dda513edaa4d578ba0  106 bytes          [emitted]

WARNING in ./resources/assets/sass/vendor.scss (./node_modules/css-loader??ref--6-2!./node_modules/postcss-loader/src??postcss1!./node_modules/resolve-url-loader??ref--6-4!./node_modules/sass-loader/lib/loader.js??ref--6-5!./resources/assets/sass/vendor.scss)
Module Warning (from ./node_modules/postcss-loader/src/index.js):
Warning

(546:3) Can't read file '/var/www/html/public/~vegas/src/overlays/08.png', ignoring
 @ ./resources/assets/sass/vendor.scss 2:14-270
Removing intermediate container ddf82f5106c6
 ---> 6d4d5fd2159b
Step 15/16 : RUN mv standalone.env .env
 ---> Running in 00f5ff8d9201
Removing intermediate container 00f5ff8d9201
 ---> e178ddc260d0
Step 16/16 : USER root
 ---> Running in a163ea49c463
Removing intermediate container a163ea49c463
 ---> 48ef4e901d00
Successfully built 48ef4e901d00
Successfully tagged ep-character-creator:latest

The image is created similarly as when I last tried.

Output for docker run command

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
[Sun May 05 20:56:27.565639 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.2.18 configured -- resuming normal operations
[Sun May 05 20:56:27.565758 2019] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

I guess we can close the issue. Thank you again! Now can play around and make some test characters.

EmperorArthur commented 5 years ago

Glad to help. I'll leave the issue open until I confirm that the docker-compose files works. The website at epcc.cd-net.net is now back up and running, so you can also try things out there.

Regarding the slowness. The application reads the entire database into the current session at session start. Yes, it really does that for every single person who visits the site. It's legacy code, but is currently pretty intertwined with how the app functions. Long term, I'm moving the code over to Laravel, so anyone familiar with that framework can understand what's going on.

EmperorArthur commented 5 years ago

Resolved by re-writing the instructions in the Readme, and removing the docker-compose file altogether.