Giter Club home page Giter Club logo

df-docker's People

Contributors

ahussain1 avatar alexanderko avatar davidsackett avatar davidweiner-df avatar df-arif avatar df-jablan avatar drewpearce avatar ihoro avatar jacotri77 avatar nickbuerger avatar oleglazaryev avatar philicious avatar soupdiver avatar thekevinm avatar tomonorman avatar vadimt-spg avatar vialcollet avatar volodymyrpoli avatar wjgilmore avatar yaroslavmo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

df-docker's Issues

df-base-img:php7.4 missing

Can't pull docker pull docker.io/dreamfactorysoftware/df-base-img:php7.4 therefore build is not possible.

Api Error

I'm installing DF off the dreamfactorysoftware/df-docker image.

It runs fine. I'm able to login, create roles, services, etc.

But when I try to follow the Angular SDK example I cannot complete the setup tasks.
https://github.com/dreamfactorysoftware/angular-sdk

There appears to be issues with DF's sql statements.

For example, when I go to CORS set Origin, Paths, and Headers to *, set Max Age to 0, allow all HTTP verbs, check the Enabled box, and click update I get the following.

Api Error
SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: cors_config.created_date (SQL: insert into "cors_config" ("origin", "path", "method", "enabled", "header", "max_age", "created_by_id") values (*, *, 1, 1, *, 0, 1))

Any ideas?

Composer dependency fail for PHP mongodb driver/extension

As of recently (since DF 2.1.2), when building the image, I get

  Problem 1
    - dreamfactory/df-mongodb 0.2.3 requires jenssegers/mongodb 3.0.* -> satisfiable by jenssegers/mongodb[v3.0.2, v3.0.0, v3.0.0-alpha, v3.0.0-beta, v3.0.1].
    - dreamfactory/df-mongodb 0.2.3 requires jenssegers/mongodb 3.0.* -> satisfiable by jenssegers/mongodb[v3.0.2, v3.0.0, v3.0.0-alpha, v3.0.0-beta, v3.0.1].
    - jenssegers/mongodb v3.0.0 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.2, 1.0.0, 1.0.0-alpha1, 1.0.0-beta1, 1.0.0-beta2, 1.0.1, 1.1.x-dev, v1.0.x-dev].
    - jenssegers/mongodb v3.0.0-alpha requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.2, 1.0.0, 1.0.0-alpha1, 1.0.0-beta1, 1.0.0-beta2, 1.0.1, 1.1.x-dev, v1.0.x-dev].
    - jenssegers/mongodb v3.0.0-beta requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.2, 1.0.0, 1.0.0-alpha1, 1.0.0-beta1, 1.0.0-beta2, 1.0.1, 1.1.x-dev, v1.0.x-dev].
    - jenssegers/mongodb v3.0.1 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.2, 1.0.0, 1.0.0-alpha1, 1.0.0-beta1, 1.0.0-beta2, 1.0.1, 1.1.x-dev, v1.0.x-dev].
    - jenssegers/mongodb v3.0.2 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.2, 1.0.0, 1.0.0-alpha1, 1.0.0-beta1, 1.0.0-beta2, 1.0.1, 1.1.x-dev, v1.0.x-dev].
    - jenssegers/mongodb v3.0.2 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.2, 1.0.0, 1.0.0-alpha1, 1.0.0-beta1, 1.0.0-beta2, 1.0.1, 1.1.x-dev, v1.0.x-dev].
    - mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
    - mongodb/mongodb v1.0.x-dev requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
    - mongodb/mongodb 1.1.x-dev requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
    - mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
    - mongodb/mongodb 1.0.1 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
    - mongodb/mongodb 1.0.0-beta2 requires ext-mongodb ^1.1.1 -> the requested PHP extension mongodb is missing from your system.
    - mongodb/mongodb 1.0.0-beta1 requires ext-mongodb ^1.0.0 -> the requested PHP extension mongodb is missing from your system.
    - mongodb/mongodb 1.0.0-alpha1 requires ext-mongodb ^1.0.0 -> the requested PHP extension mongodb is missing from your system.
    - mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.

Now the reason for this is that Ubuntu14's php5-mongo has version 1.4.5, which is the legacy driver (https://pecl.php.net/package/mongo) but we need the new driver (https://pecl.php.net/package/mongodb) which isnt available in Ubuntu repos.

I think this regression bug got introduced with the latest changes to https://github.com/dreamfactorysoftware/df-mongodb (changing the mongodb driver)

I'm working on a fix right now. Unfortunately we got to install php-mongodb extension via PECL now and pull in several system packages for building the extension from source.

Missing data in DF when image is rebuilt -> due to changed APP_KEY

The following ONLY happens when re-building the image and using a new container (and therefore having a NEW APP_KEY in .env file)

  • crippled (nearly empty) welcome page.
  • "Services/Data/Schema" are not found although being present in the external DB and also "API Docs" lists them.

[BUG] dreamfactorysoftware/df-base-img:ubuntu-22 does not exist

The update to version 5.0 references a new base image dreamfactorysoftware/df-base-img:ubuntu-22 that has not yet been created, hence docker build is giving errors:

manifest for dreamfactorysoftware/df-base-img:ubuntu-22 not found: manifest unknown: manifest unknown

Dreamfactory with big tables doesn't work

I'm using df-docker to create a rest service / api for a mysql database. This works fine but i have big problems with one table within this database. This table contains 1.7 million rows. I don't get any result from the rest service querying this table. It's also not possible to view this table within "Data" view in backend. Viewing schema in backend is possible without problems. Are 1.7 million rows too much for dreamfactory or is this a bug?

Map server to different port

Hi,

On my server, internal port 127.0.0.1:80 is mapped to another service so I can't use it. I looked at the .env file and couldn't figure out how to connect to a different port - is there a way to do this?

Redirect dreamfactory.log to docker logging driver

@df-arif I wanted to send the dreamfactory.log to a central logging server.
However you cannot ln it to stdout which is working fine for the
RUN ln -sf /dev/stderr /var/log/apache2/error.log

If you try this with the dramfactory.log you get this error

500 : {"error":{"context":null,"message":"The stream or file "/opt/dreamfactory/storage/logs/dreamfactory.log" could not be opened: failed to open stream: No such file or directory","code":500,"trace":["0 /opt/dreamfactory/vendor/dreamfactory/df-core/src/LogHandlers/DfLoggingTrait.php
....

..which can happen as the ln trick doesnt work for all sorts of applications depending on how they operate on the given file.

So what DOES work however, is having near end of docker-entrypoint.sh just before the exec ..

# we cannot ln the log to stdout like with apache logs, so we continuously tail it
tail --pid $$ -F /opt/dreamfactory/storage/logs/dreamfactory.log &

If you like, I could PR this. Probably if-wrapped with some env var like LOG_TO_STDOUT

PS:
I'm wondering about log format 'single', 'daily', 'syslog', and 'errorlog' ?
If I should guess, I'd say they map to https://github.com/Seldaek/monolog/blob/master/doc/02-handlers-formatters-processors.md

So I assume

  • "daily" -> RotatingFileHandler
  • "syslog" -> SyslogHandler
  • "errorlog" ->ErrorLogHandler
  • "single" -> StreamHandler ???

legacy image dreamfactorysoftware/df-docker

mohan08p@ubuntu:~/repo$ sudo docker pull dreamfactorysoftware/df-docker
sudo: unable to resolve host ubuntu
[sudo] password for mohan08p:
Using default tag: latest
Pulling repository docker.io/dreamfactorysoftware/df-docker
069f1d124a22: Download complete
cb6fb082434e: Download complete
d4b2ba78e3b4: Download complete
014de2f17f20: Download complete
5152aad252c2: Download complete
8d91f9f40f93: Download complete
d9d86d6174b2: Download complete
32fe981093cb: Download complete
cfdb8c7a9ddc: Download complete
f6f15085abfb: Download complete
bdd482e1e61e: Download complete
f21b3c86bc7c: Download complete
ab99a81a6477: Download complete
e4f2cac2b7d1: Download complete
036d7ae2ad03: Download complete
964702b1b399: Download complete
9f8ffa046d91: Download complete
d4266daff439: Download complete
425ca4279b8d: Download complete
978654fc3a0c: Download complete
da988aa3605e: Download complete
Status: Downloaded newer image for dreamfactorysoftware/df-docker:latest
docker.io/dreamfactorysoftware/df-docker: this image was pulled from a legacy registry. Important: This registry version will not be supported in future versions of docker.

Kindly need an updated version for the df-docker image which might not be supported in near future as dokcer1.10-dev is soon in production.

How to gracefully stop and start docker container

I have dreamfactory container set by docker-compose.
Everything worked correctly until I had to restart my local machine. Afterwards, dreamfactory container got status "Exited", while redis and mysql container are up and works fine.
How to properly start and stop dreamfactory container?
Also, if I remove containers, and run the new ones, everything works, but Data and Schema in web portal are empty.
Could you please also tell me where these files are kept.
I suppose then it is inside container?

Thank you for your help.

Firebird

Could you also include firebird driver in the docker.

Dreamfactory docker-compose build fails on arm64

I am following the instructions from Docker hub but build fails in Ubuntu 22 installed on Rasp Pi or Orange Pi with the messages as follows;
mysql uses an image, skipping
example_data uses an image, skipping
redis uses an image, skipping
Building web
[+] Building 1.0s (7/12)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.29kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/dreamfactorysoftware/df-base-img:ubuntu-22 0.8s
=> [1/8] FROM docker.io/dreamfactorysoftware/df-base-img:ubuntu-22@sha256:47e8c4fc5bc9fb6a6855702a04ffad53bca75d0c0aa958104ca7b9839486a7aa 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 79B 0.0s
=> CACHED [2/8] COPY dreamfactory.conf /etc/nginx/sites-available/dreamfactory.conf 0.0s
=> ERROR [3/8] RUN git clone --branch master https://github.com/dreamfactorysoftware/dreamfactory.git /opt/dreamfactory 0.2s

[3/8] RUN git clone --branch master https://github.com/dreamfactorysoftware/dreamfactory.git /opt/dreamfactory:
#0 0.212 exec /bin/sh: exec format error


Dockerfile:9

7 | # Get DreamFactory
8 | ARG BRANCH=master
9 | >>> RUN git clone --branch $BRANCH https://github.com/dreamfactorysoftware/dreamfactory.git /opt/dreamfactory
10 |
11 | WORKDIR /opt/dreamfactory

ERROR: failed to solve: process "/bin/sh -c git clone --branch $BRANCH https://github.com/dreamfactorysoftware/dreamfactory.git /opt/dreamfactory" did not complete successfully: exit code: 1
ERROR: Service 'web' failed to build : Build failed

Any suggestions?

Got error cachePath when installing on kubernetes

Hi Devs,

I got errors like below when I starting the image from docker and installing on kubernetes. Is there any advice or maybe there is someone that ever got same error like me.

Image: https://hub.docker.com/r/dreamfactorysoftware/dreamfactory/tags

I use environment like below:
SERVERNAME:
DB_DRIVER: pgsql
DB_HOST: host-db
DB_USERNAME: dreamfactory
DB_PASSWORD: password
DB_DATABASE: dreamfactory
CACHE_DRIVER: redis
CACHE_HOST: host-redis
CACHE_DATABASE: '0'
CACHE_PORT: '6379'
APP_KEY: api_key

Error:

#5 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(770): Illumina...PHP message: PHP Fatal error:  Uncaught InvalidArgumentException: Please provide a valid cache path. in /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/View/Compilers/Compiler.php:36
Stack trace:
#0 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php(92): Illuminate\View\Compilers\Compiler->__construct()
#1 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Container/Container.php(799): Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}()
#2 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Container/Container.php(681): Illuminate\Container\Container->build()
#3 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(785): Illuminate\Container\Container->resolve()
#4 /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Container/Container.php(629): Illuminate\Foundation\Application->resolve()
#5 /opt/dreamfactory/vendor/laravel/framework/src/Illumin`

Thanks

On the Dreamfactory setup <form action=‘upstream server name/setup’>

I'm installing from the following Docker Hub repo:
https://hub.docker.com/r/dreamfactorysoftware/df-docker/

This container is sitting behind an nginx reverse proxy.

I get the /setup screen fine, but instead of the just using /setup and posting back to itself or the correct mydomain.com/setup it is using the upstream server name with /setup.

In other words...in the example below the /setup form action is trying to post back to "http://dreamfactory/setup" instead of http://api.mydomain.com/setup

Any thoughts?

upstream dreamfactory {
      server ec2-xx-xx-xx-xx.compute-1.amazonaws.com:3001;
}

server {
      listen 80;
      server_name "api.mydomain.com";

      location / {
        proxy_pass http://dreamfactory;
      }
}

Dreamfactory 3 : config error with postgress

I am able to run mysql but when connected to postgres it shows following error

postgresql11 | 2019-08-12 07:05:43.435 GMT [88] ERROR: relation "cors_config" does not exist at character 15
postgresql11 | 2019-08-12 07:05:43.435 GMT [88] STATEMENT: select * from "cors_config" where "enabled" = $1
postgresql11 | 2019-08-12 07:05:43.455 GMT [88] ERROR: relation "user" does not exist at character 29
postgresql11 | 2019-08-12 07:05:43.455 GMT [88] STATEMENT: select exists(select * from "user" where "is_active" = $1 and "is_sys_admin" = $2) as "exists"

Web container won't restart

I'm installing DeamFactory with docker using method 2 at
https://hub.docker.com/r/dreamfactorysoftware/df-docker/

The initial set up works fine and I can access the app without any issues.

However if I stop or restart the docker container dfdocker_web_1 it won't start up again.

$ docker-compose up -d
...
...
Creating dfdocker_mysql_1
Creating dfdocker_redis_1
Creating dfdocker_web_1

$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                NAMES
43ebadcf5b8b        dfdocker_web        "/docker-entrypoint.s"   11 minutes ago      Up 11 minutes       0.0.0.0:80->80/tcp   dfdocker_web_1
0ddb2affc505        mysql               "docker-entrypoint.sh"   11 minutes ago      Up 11 minutes       3306/tcp             dfdocker_mysql_1
7465cd23959a        redis               "docker-entrypoint.sh"   11 minutes ago      Up 11 minutes       6379/tcp             dfdocker_redis_1

$ docker stop dfdocker_web_1 
dfdocker_web_1

$ docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                       PORTS               NAMES
43ebadcf5b8b        dfdocker_web        "/docker-entrypoint.s"   11 minutes ago      Exited (137) 5 seconds ago                       dfdocker_web_1
0ddb2affc505        mysql               "docker-entrypoint.sh"   11 minutes ago      Up 11 minutes                3306/tcp            dfdocker_mysql_1
7465cd23959a        redis               "docker-entrypoint.sh"   11 minutes ago      Up 11 minutes                6379/tcp            dfdocker_redis_1

$ docker start dfdocker_web_1 
dfdocker_web_1

$ docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                     PORTS               NAMES
43ebadcf5b8b        dfdocker_web        "/docker-entrypoint.s"   12 minutes ago      Exited (1) 2 seconds ago                       dfdocker_web_1
0ddb2affc505        mysql               "docker-entrypoint.sh"   12 minutes ago      Up 12 minutes              3306/tcp            dfdocker_mysql_1
7465cd23959a        redis               "docker-entrypoint.sh"   12 minutes ago      Up 12 minutes              6379/tcp            dfdocker_redis_1


$ docker logs dfdocker_web_1 
Setting CACHE_DRIVER=redis, REDIS_HOST, and REDIS_DATABASE
Setting REDIS_PORT
Setting DB_HOST, DB_USERNAME, DB_PASSWORD, and DB_DATABASE
Generating APP_KEY
Application key [base64:LdzhKBCETIRCZqqmvAXrEyfIlixCtuzi80+SEWa0Keg=] set successfully.
[Thu Nov 10 09:00:16.153943 2016] [mpm_prefork:notice] [pid 70] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Thu Nov 10 09:00:16.153982 2016] [core:notice] [pid 70] AH00094: Command line: '/usr/sbin/apache2 -e info -D FOREGROUND'
Migration driver used: mysql
rm: cannot remove '/etc/ssmtp/ssmtp.conf': No such file or directory

df-docker_web exits immediately

I don't actually know enough about docker to find any better debug info.
The Redis & mysql containers seem fine.
Also, I was a bit confused on step five. Could you clarify If I'm supposed to edit etc/hosts on one of the containers, or locally? Will it work if I do system32/driver/etc/hosts on windows?

Allow APP_LOG_LEVEL env var

Set APP_LOG_LEVEL into .env from the environment.

The typical use case for this is changing the value to debug for troubleshooting.

ubuntu:latest no longer supports php5 (as of 16.06)

docker-compose build fails at apt-get install php5 (and other php5 packages) with the following error:

Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate

This ask ubuntu post has instructions that involve adding a separate PPA (ondrej/php) which, when I tried, had some cert issues.

I was able to resolve the issue simply by changing the Dockerfile to start with FROM ubuntu:trusty. Since Trusty is the latest LTS which supports php5, I thought it would be a good place to go. The other option would be to change all the php dependencies to php 7, which may not be possible for a variety of reasons.

I would be happy to open a PR regarding this, but thought it was minor enough that an issue would be good to start with.

Thoughts?

Improve Dockerfile

Together with @vadimt-spg discussed how to tune current version of Dockerfile.
See our thoughts below.

As first step we can split current image into two. One is dreamfactory-base and will contain all the dependencies. This adds two benefits:

  • potentially faster build time for end customers;
  • fault tolerant since the dependencies are installed once on build time by DockerHub. This prevents customers from facing version update issues like we saw recently with V8. Meaning that end customers won't install the dependencies. Instead they will simply pull the base image;
  • @vadimt-spg should also research how to squash the layers to make the image more efficient.

Another improvement could be to reuse installation script for Ubuntu (after it's ready) instead of manually installing the dependencies in Dockerfile. This brings much more consistency since we will have a single point of failure. Also any change in dependencies will happen in single file instead of modifying both Install Script and Dockerfile.

Help with docker-compose and existing sqlite database

I'm trying a very simple implementation:

  1. I've left the dreamfactory db and redis settings as default.
  2. Using the default sql settings for web: environment: works (removing user and hostname)
  3. I've added a volume to which links to a folder where I have this database stored.
  4. I can manually add Services for a) files to make this folder accessible, and b) import my databases this way.

But I can't figure out how to use this as the primary web: environment: database.

Could anyone help me out with the following settings (or send some links to example local sqlite implementations)?
for an SQLITE db /opt/dreamfactory/storage/df-localDBs/localsqlite.db with a table name TABLE1, what would the following settings need to be?

web:
environment:
SERVERNAME: dreamfactory.local
# HTTPS_HEADER: "on"
# APP_KEY: VALUE
DB_DRIVER: mysql
DB_HOST: mysql
# DB_USERNAME: df_admin
# DB_PASSWORD: df_admin
DB_DATABASE: dreamfactory

volumes:
  - df-storage:/opt/dreamfactory/storage
  - PATH/TO/localDBs:/opt/dreamfactory/storage/df-localDBs

docker-entrypoint.sh Execution

"exec /docker-entrypoint.sh: no such file or directory" message on start of the "df-docker-web-1" image. 3 out of the 4 images startup but the frontend image exits with the above message. I can verify that the shell file is in the root of the container image.

No supported encrypter found. The cipher and / or key length are invalid.

I've built several times following the docker-compose method, but always get these two errors. Any thoughts?

RuntimeException in compiled.php line 7027:
No supported encrypter found. The cipher and / or key length are invalid.

in compiled.php line 7027
at EncryptionServiceProvider->Illuminate\Encryption{closure}(object(Application), array()) in compiled.php line 1289
at Container->build(object(Closure), array()) in compiled.php line 1242
at Container->make('encrypter', array()) in compiled.php line 1780
at Application->make('Illuminate\Contracts\Encryption\Encrypter') in compiled.php line 1334
at Container->resolveClass(object(ReflectionParameter)) in compiled.php line 1318
at Container->getDependencies(array(object(ReflectionParameter)), array()) in compiled.php line 1304
at Container->build('Illuminate\Cookie\Middleware\EncryptCookies', array()) in compiled.php line 1242
at Container->make('Illuminate\Cookie\Middleware\EncryptCookies', array()) in compiled.php line 1780
at Application->make('Illuminate\Cookie\Middleware\EncryptCookies') in compiled.php line 9585
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in compiled.php line 2982
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9585
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9575
at Pipeline->then(object(Closure)) in compiled.php line 2254
at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2237
at Kernel->handle(object(Request)) in index.php line 53

RuntimeException in compiled.php line 7027:
No supported encrypter found. The cipher and / or key length are invalid.

in compiled.php line 7027
at EncryptionServiceProvider->Illuminate\Encryption{closure}(object(Application), array()) in compiled.php line 1289
at Container->build(object(Closure), array()) in compiled.php line 1242
at Container->make('encrypter', array()) in compiled.php line 1780
at Application->make('Illuminate\Contracts\Encryption\Encrypter') in compiled.php line 1334
at Container->resolveClass(object(ReflectionParameter)) in compiled.php line 1318
at Container->getDependencies(array(object(ReflectionParameter)), array()) in compiled.php line 1304
at Container->build('Illuminate\Cookie\Middleware\EncryptCookies', array()) in compiled.php line 1242
at Container->make('Illuminate\Cookie\Middleware\EncryptCookies', array()) in compiled.php line 1780
at Application->make('Illuminate\Cookie\Middleware\EncryptCookies') in compiled.php line 2261
at Kernel->terminate(object(Request), object(Response)) in index.php line 57

Perhaps Missing php dependencies for dreamfactory version 2.12.0 ?

Trying to build container for dreamfactory version 2.12.0 with the provided Dockerfile results in the following error. (Note that the build worked fine for DF version 2.10.0)

Loading composer repositories with package information
Installing dependencies from lock file
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for php-amqplib/php-amqplib v2.7.2 -> satisfiable by php-amqplib/php-amqplib[v2.7.2].
- php-amqplib/php-amqplib v2.7.2 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
Problem 2
- Installation request for yajra/laravel-oci8 v5.5.8 -> satisfiable by yajra/laravel-oci8[v5.5.8].
- yajra/laravel-oci8 v5.5.8 requires ext-oci8 >=2.0.0 -> the requested PHP extension oci8 is missing from your system.
Problem 3
- php-amqplib/php-amqplib v2.7.2 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
- dreamfactory/df-amqp 0.1.0 requires php-amqplib/php-amqplib 2.7.* -> satisfiable by php-amqplib/php-amqplib[v2.7.2].
- Installation request for dreamfactory/df-amqp 0.1.0 -> satisfiable by dreamfactory/df-amqp[0.1.0].

Had to install install php7.1-bcmath and php oci8 extension for the container build process to work. Changes in dockerfile below:

RUN apt-get install -y php7.1-bcmath
RUN apt-get update -qq
RUN apt-get install -y unzip libaio1
RUN mkdir -p /opt/oracle
RUN wget https://github.com/bumpx/oracle-instantclient/raw/master/instantclient-basic-linux.x64-12.1.0.2.0.zip
RUN wget https://github.com/bumpx/oracle-instantclient/raw/master/instantclient-sdk-linux.x64-12.1.0.2.0.zip
RUN unzip -o ./instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle
RUN unzip -o ./instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle
RUN ln -s /opt/oracle/instantclient/sqlplus /usr/bin/sqlplus
RUN ln -s /opt/oracle/instantclient_12_1 /opt/oracle/instantclient
RUN ln -s /opt/oracle/instantclient/libclntsh.so.12.1 /opt/oracle/instantclient/libclntsh.so
RUN ln -s /opt/oracle/instantclient/libocci.so.12.1 /opt/oracle/instantclient/libocci.so
RUN pecl channel-update pecl.php.net
RUN echo 'instantclient,/opt/oracle/instantclient' | pecl install oci8
RUN echo "extension = oci8.so" >> /etc/php/7.1/fpm/php.ini
RUN echo "extension = oci8.so" >> /etc/php/7.1/cli/php.ini

Docker build fails on df:setup

docker build fails on this line:

RUN php artisan df:setup --no-app-key --db_connection=sqlite --df_install=Docker

Displays:
The "--db_connection" option does not exist.

Config Method-2, Step 4 returns exec error

I have built on an Ubuntu server a docker, http://prntscr.com/9bc9ux
I tried Configuration method 1 and I couldn't have it working.
Then I tried Method 2 and on Step 4 it gives me the following.
The docker-compose.yml & .env files are unchanged!
http://prntscr.com/9bcb84


mysql uses an image, skipping
Building web
Step 1 : FROM debian:jessie
---> 23cb15b0fcec
Step 2 : MAINTAINER Felix [email protected]
---> Using cache
---> 99ac6ca55cbd
Step 3 : ENV DEBIAN_FRONTEND noninteractive
---> Using cache
---> d22cf1f3dd78
Step 4 : RUN apt-get update && apt-get install -y git-core curl apache2 php5 php5-common php5-cli php5-curl php5-json php5-mcrypt php5-mysql php5-pgsql php5-sqlite && rm -rf /var/lib/apt/lists/*
---> Running in c364beafbfb2
exec format error

ERROR: Service 'web' failed to build: [8] System error: exec format error

Any clues?

Services tab not working: "Services There was an error loading data for the Services tab. Please try refreshing your browser and logging in again"

Hi after a fresh DreamFactory Bitnami Docker intallation I run this command:

 docker exec -i -t dreamfactory php artisan config:clear

and then my all my DreamFactory Service is unacessible:

I receive a red icon on the left corner which says: "Services There was an error loading data for the Services tab. Please try refreshing your browser and logging in again"

I have made more than one fresh installation and I have the same results. Could you help me to understand which is the problem ? The above command sould only clear the cache configuration of dreamfactory !!

DF Container immediately dies on restart

I went with "Configuration Method 3 (Build your own)" as I had to hook up DF to an external MySQL.
So all I changed was https://github.com/dreamfactorysoftware/df-docker/blob/master/Dockerfile#L39 and appended --db_host=blabla.eu-central-1.rds.amazonaws.com --db_password=foobar
Then run the container with docker run -d -p 80:80 dreamfactory/v2, worked like a charm.
I configured users, services, app etc..
Now I stopped the container and wanted to start it again to verify everything is persisted (should be as everything is stored in the external DB), however to my surprise, the container exits immediately.

As a second test I created a new container based on the image. It again started, however was messed up. The welcome page was empty and the services were not listed although present in the DB. Also "API Docs" does see the services.
But a restart of that container didnt work either.
due to a second bug -> #13

(There also a support case open Case #: 413)

Whoops, looks like something went wrong.

Hello, I made the installation following the documentation, but I do not manage to launch the application.

Here is my docker-compose.yml :

dreamfactory:
environment:
SERVERNAME: dreamfactory.local
build: .
volumes:
- ./.env:/opt/dreamfactory/.env
links:
- db:db
ports:
- "80:80"
db:
image: webhippie/mariadb:latest
ports:
- "3306:3306"
volumes:
- /opt/docker/mariadb/log:/var/log/mysql
- /opt/docker/mariadb/data:/var/lib/mysql
environment:
MARIADB_ROOT_PASSWORD: bonjour

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.