HUB
Sign inSign up

map7/aubit4gl

By map7

•Updated about 3 years ago

Open Source 4gl compiler

Image
1

423

map7/aubit4gl repository overview

⁠Aubit4GL Docker

Open Source 4gl compiler

Ref: https://www.aubit.com⁠ Credit: Mike Aubury (Aubit4GL maintainer)

⁠Test

docker run -t -i map7/aubit4gl /bin/bash
cd tools/test
4glpc hello.4gl -o hello
fcompile form
./hello

⁠Quick Start

  1. Install git & docker
    sudo apt install git docker.io
  1. Create docker-compose.yml with the following;
     version: "3.3"
     services:
       aubit4gl:
         container_name: aubit4gl
         image: map7/aubit4gl:latest
         network_mode: host
         environment:
           - AUBITDIR=/opt/aubit4gl
           - LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/aubit4gl/lib:$LIB:$PROD
           - PATH=$PATH:/opt/aubit4gl/bin
           - A4GL_UI=TUI
           - A4GL_SQLTYPE=pg8
           - A4GL_DBDATE="DMY4"
           - A4GL_LEXTYPE=C
           - A4GL_SQLUID=postgres
           - A4GL_SQLPWD=bucala
           - TTY=$SSH_TTY
           - PGDATABASE=pais_legacy
           - PGPORT=5432
           - PGHOST=127.0.0.1
           - PGUSER=postgres
           - PGPASSWORD=<Enter your password>                  # Change
         stdin_open: true 
         tty: true  
         volumes:
           - /var/run/postgresql:/var/run/postgresql
           - /path/to/4gl/code:/path/to/4gl/code               # Change to your 4GL source directory
           - /path/to/production/code:/path/to/production/code # Change to your compiled area
  1. Build
    sudo docker-compose up -d --build
  1. Enter container
    sudo docker-compose exec aubit4gl bash
  1. Compile my test
   cd /home/map7/code/pais_legacy/tests/with_db
   4glpc with_db.4gl -o with_db
   ./with_db
   exit
  1. Stop docker container
    docker-compose stop

Tag summary

Content type

Image

Digest

sha256:1f71b40d4…

Size

504 MB

Last updated

about 3 years ago

docker pull map7/aubit4gl