You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Adam Zielonka f597dda13b Update readme 2 years ago
bin Move compile section in entrypoint to new file 2 years ago
scripts Move website generating to new script 2 years ago
.gitlab-ci.yml Update CI 3 years ago
Dockerfile Move website generating to new script 2 years ago
LICENSE Move docker container to new repo 3 years ago
README.md Update readme 2 years ago
index.html Remove not needed files and simplify Dockerfile 3 years ago

README.md

dos-pascal-docker

Docker to compile pascal file in dos and build website to run created exe file. I used in two my old projects: Deska and Saper.

How to use

You have several options to use this docker. In this example in main project directory exist folder src and inside this folder exist file called DESKA.PAS.

docker cli

$ docker run --rm -it -w="/project" -v $(pwd):/project \
  registry.gitlab.com/adam-zielonka-pro/dos-pascal-docker:latest src/DESKA.PAS

You can add --watch to auto-compile after file changes.

docker-compose.yml

version: '3.7'
services:

  app:
    image: registry.gitlab.com/adam-zielonka-pro/dos-pascal-docker
    working_dir: /project
    volumes:
      - ./:/project
    command: ['src/DESKA.PAS']

.gitlab-ci.yml

pages:
  image: 
    name: registry.gitlab.com/adam-zielonka-pro/dos-pascal-docker
    entrypoint: [""]
  script:
    - docker-entrypoint.sh src/DESKA.PAS
    - mv build public
  artifacts:
    expire_in: 1 week
    paths:
    - public
  only:
    - master

Notice

To build this docker I used:

License

MIT