⛔️ DEPRECATED use https://github.com/HashLoad/delphi-dev
This project requires the tools:
- Docker Machine
- Docker Compose
- Docker
Use git bash to configuration tools.
Install Docker Machine.
$ mkdir -p "$HOME/bin"
$ curl -L "https://github.com/docker/machine/releases/download/v0.14.0//docker-machine-Windows-x86_64.exe" > "$HOME/bin/docker-machine.exe"
$ chmod +x "$HOME/bin/docker-machine.exe"
Create and configure default machine.
$ docker-machine create default
$ eval $(docker-machine env default)
Install Docker Compose
$ curl -L "https://github.com/docker/compose/releases/download/1.22.0-rc1/docker-compose-Windows-x86_64.exe" > "$HOME/bin/docker-compose.exe"
$ chmod +x "$HOME/bin/docker-compose.exe"
Install Docker
$ mkdir -p "$HOME/tmp"
$ curl -L "https://download.docker.com/win/static/stable/x86_64/docker-17.09.0-ce.zip" > "$HOME/tmp/docker.zip"
$ unzip "$HOME/tmp/docker.zip" -d "$HOME/tmp/"
$ mv "$HOME/tmp/docker/docker.exe" "$HOME/bin/docker.exe"
$ rm -rf "$HOME/tmp/docker" "$HOME/tmp/docker.zip"
Use git bash to start service.
Execute simple Docker.
$ docker run --privileged -d -p 64211:64211 hunsche/delphi-dev:2.0
Create docker-compose.yml simple console.
version: '2.1'
services:
service:
image: hunsche/delphi-dev:2.0
privileged: true
ports:
- '64211:64211'
Create docker-compose.yml server.
version: '2.1'
services:
service:
image: hunsche/delphi-dev:2.0
privileged: true
ports:
- '8080:8080'
- '64211:64211'
Create docker-compose.yml with connection in database.
version: '2.1'
services:
service:
image: hunsche/delphi-dev:2.0
privileged: true
links:
- postgres:postgres
ports:
- '64211:64211'
command: waitforit -address=tcp://postgres:5432 -timeout=10 -- start
postgres:
image: postgres:10.4
ports:
- "5432:5432"
Open docker-compose.yml folder.
$ docker-compose up
- default password '1234'
Custom password.
version: '2.1'
services:
image: hunsche/delphi-dev:2.0
privileged: true
environment:
- PASERVERPASSWORD=custom-password
ports:
- '64211:64211'
command: start
Create docker-compose.yml of RAD Server with connection in database.
version: '2.1'
services:
service:
image: hunsche/delphi-dev:2.0
privileged: true
environment:
- PA_SERVER_PASSWORD=custom-password
- RAD_SERVER_DB_PATH=ip_interbase/port_interbase:C:/path_database/emsserver.ib
- RAD_SERVER_DB_USERNAME=sysdba
- RAD_SERVER_DB_PASSWORD=masterkey
- RAD_SERVER_SERVER_PORT=8080
- RAD_SERVER_CONSOLE=true
- RAD_SERVER_CONSOLE_USER=custom-user
- RAD_SERVER_CONSOLE_PASS=custom-password
- RAD_SERVER_CONSOLE_PORT=8081
links:
- postgres:postgres
ports:
- '8080:8080'
- '8081:8081'
- '64211:64211'
command: waitforit -address=tcp://ip_interbase:port_interbase -address=tcp://postgres:5432 -timeout=10 -- start
postgres:
image: postgres:10.4
ports:
- "5432:5432"
This container needs to be run in privileged mode because the GDB module needs special access to the kernel.
- PA_SERVER_PASSWORD: Password utilized to PAServer.
- RAD_SERVER_DB_INSTANCENAME: Instance name of interbase to RAD Server.
- RAD_SERVER_DB_PATH: PATH of database interbase.
- RAD_SERVER_DB_USERNAME: Username of database interbase.
- RAD_SERVER_DB_PASSWORD: Password of database interbase.
- RAD_SERVER_MASTER_SECRET: Master secret of RAD Server.
- RAD_SERVER_APP_SECRET: App secret of RAD Server.
- RAD_SERVER_APPLICATION_ID: Application ID of RAD Server.
- RAD_SERVER_SERVER_PORT: RAD Server Port.
- RAD_SERVER_CONSOLE: Set true to enable RAD Server Console.
- RAD_SERVER_CONSOLE_USER: User of RAD Server Console.
- RAD_SERVER_CONSOLE_PASS: Password of RAD Server Console.
- RAD_SERVER_CONSOLE_PORT: RAD Server Console Port.
- RAD_SERVER_RESOURCES_FILES: Resource files of RAD Server Console, default value "/etc/ems/objrepos".
- DB_DRIVER: driver database using to migrations.
- DB_HOST: Host database using to migrations.
- DB_PORT: Port database using to migrations.
- DB_DATABASE: Name database using to migrations.
- DB_USER: User database using to migrations.
- DB_PASSWORD: Password database using to migrations.
- DB_MIGRATE_ENABLE: Enabled migrate to database.
- DB_MIGRATE_PATH: Migrations locale path to migrations in database.