Public | Automated Build

Last pushed: 3 months ago
Short Description
Docker container for OCaml package build
Full Description

ocaml-docker

Environments

  • User in container - develop
  • Workking directory - /home/develop/project
  • OCaml compiler 4.05.0
  • OPAM 1.2.2

Basis usage

  1. Create build script

    Create a script for build.

     #!/usr/bin/env bash
    
     eval `opam config env`
    
     opam install -y cohttp
    
  2. Execute build script on docker container

    Specify the -v option, mount the directory on the host side, and execute the script.

     docker run -v `pwd`:/home/develop/project holyshared/ocaml:latest ./[build script]
    
Docker Pull Command
Owner
holyshared
Source Repository

Comments (0)