Sign inSign up

efcasado/ocaml

By efcasado

Updated about 9 years ago

Alpine-based OCaml development environment.

Image
1

498

efcasado/ocaml repository overview

OCaml Dockerfile

Travis Docker Stars Docker Pulls license

Dockerized, Alpine-based OCaml development environment.

Versions
OCaml VersionOPAM VersionBase Image
4.05.01.2.2alpine:3.6
4.04.21.2.2alpine:3.6
4.04.11.2.2alpine:3.6
Aliases

When using this dev environment, I strongly recommend you to use the aliases included in the .bashrc file featured in this repository. These aliases will let you work with OCaml, seamlessly, despite it running inside a Docker container.

source ./dotfiles/.bashrc
AliasDescription
ocamlThe OCaml interactive toplevel
ocamlcThe OCaml bytecode compiler
ocamlcpThe OCaml profiling compilers
ocamldebugThe OCaml profiling compilers
ocamldepDependency generator for Ocaml
ocamldocThe OCaml documentation generator
ocamllexThe OCaml lex generator
ocamlmktopBuilding custom top-level systems
ocamloptThe OCaml native-code compiler
ocamlrunThe OCaml bytecode interpreter
ocamlprofThe OCaml profiler
ocamlyaccThe OCaml parser generator
opamThe OCaml source-level replay debugger
utopAn improved toplevel for Ocaml
How do I know it works?

Assuming you've defined the aliases I mentioned in the section above, you just need to execute the following command to run a simple Hello, world! example. If everything went well, you should now see the Hello, world! message printed in your terminal.

ocaml \< examples/hello.ml

        OCaml version 4.05.0

#     Hello, world!
- : unit = ()
#
Author(s)
  • Enrique Fernandez <efcasado(at)gmail.com>
License

The MIT License (MIT)

Copyright (c) 2016 - 2017, Enrique Fernandez

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Tag summary

Content type

Image

Digest

Size

260.9 MB

Last updated

about 9 years ago

docker pull efcasado/ocaml:4.05.0