From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by c5ff346549e7 (Postfix) with ESMTPS id EA4361E6 for ; Thu, 29 Mar 2018 16:32:15 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.48,376,1517871600"; d="scan'208,217";a="320599266" Received: from sympa.inria.fr ([193.51.193.213]) by mail2-relais-roc.national.inria.fr with ESMTP; 29 Mar 2018 18:32:13 +0200 Received: by sympa.inria.fr (Postfix, from userid 20132) id A3FD28240C; Thu, 29 Mar 2018 18:32:13 +0200 (CEST) Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id D8D748239C for ; Thu, 29 Mar 2018 18:32:02 +0200 (CEST) Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=hrafaelsen@gmail.com; spf=Pass smtp.mailfrom=hrafaelsen@gmail.com; spf=None smtp.helo=postmaster@mail-oi0-f44.google.com IronPort-PHdr: =?us-ascii?q?9a23=3Abu904BOQLp+6quDzlpYl6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0LfzzrarrMEGX3/hxlliBBdydt6ofzbKO+4nbGkU4qa6bt34DdJEeHzQksu?= =?us-ascii?q?4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1?= =?us-ascii?q?Ov71GonPhMiryuy+4ZLebxlGiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPde?= =?us-ascii?q?RWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbY?= =?us-ascii?q?UwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhS?= =?us-ascii?q?kHOTA383zZhNJsg69Auh2tuwZyzpTIbI2JNvdzeL7Wc9MARWpGW8ZcTy5PDZm6?= =?us-ascii?q?b4sUEuEPJOJYoJfgrFUStxS+CxOjC/3ryj9TmHD227Ax3uMhEQHcxgMgEcgBv2?= =?us-ascii?q?rQrNXuKqgSV/u4zKbNzTrZbvNW3S3x55TPchAkuPyBW697f8nJyUQ3CQ/JklGd?= =?us-ascii?q?pZbmMj6VzOgBrXWX4ul6We+ghGMqrRx6rCK1ycc2kIbJg5oYylDa+iV9x4Y4Pd?= =?us-ascii?q?i4R1R6Yd6gCZdQsCCaO5dvTsMsTGxltzw2yrIBuZ68cygKzIooywTDZPyAdoiE?= =?us-ascii?q?+hPjVOCPLjdknH9pZq6zihKo/UWjyuDwTNe43EtJoyZfndTBuWgB1xnJ5ciGTv?= =?us-ascii?q?t98F2h2TGK1w3L6uFEO1o7laTBJJE/xr4wjYQcsULYEy/5nUX5lq6WdkE+9ue0?= =?us-ascii?q?7OTnZ63qpoWAOI9slgH+LqMul9SjDusiNwgOW3GX+eC91L344U30W65Kj/0zkq?= =?us-ascii?q?nBqp/WP8UbpqijAw9UyIkv8Ri/Dy31mOgfyHIOKVYAfBOck6DoPUvPKbb2F6SR?= =?us-ascii?q?mVOpxRdiweuOGbnsSq/EIHHOlKzse/4p61RVxgM+yctS4bpbD7gAJLT4XUqn54?= =?us-ascii?q?+QNQMwLwHhm7WvM956zI5LATveUJ/cC7vbtBqz3sxqJuCNYIEPvzOkcqoq4vfv?= =?us-ascii?q?iTkynlpPJPD1j6tSU2ixG7FdG2vceWDl245THmIDvw54R+vv2gXbDGxjIk2qVq?= =?us-ascii?q?d53QkVTYKrCYCZG9Koib2FmSC6RthYOjwABVeLHnPlMY6DXqVUZQ=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0DFAACRFL1ahizaVdFdhBcBgSsoCoNSg?= =?us-ascii?q?R2TZYJpGodEhimEZIF6C4kZBxkHAQQwGAECAQEBAQEBAQEBEgEBAQgLCwgoL4I?= =?us-ascii?q?4IoJ1HQEbEgwDEgkHNwIkAREBBQGFKQEDFZ4kgxw8iwWBfwUBF4JvBYNGChkmD?= =?us-ascii?q?VVXgiICBhKHTIFUP4EMglAGiB2CVAKXMwiBNIx4jDKPaw8DHoEEHF6BLDMaI08?= =?us-ascii?q?xghKCIA4Jjhg9MI53AQE?= X-IPAS-Result: =?us-ascii?q?A0DFAACRFL1ahizaVdFdhBcBgSsoCoNSgR2TZYJpGodEhim?= =?us-ascii?q?EZIF6C4kZBxkHAQQwGAECAQEBAQEBAQEBEgEBAQgLCwgoL4I4IoJ1HQEbEgwDE?= =?us-ascii?q?gkHNwIkAREBBQGFKQEDFZ4kgxw8iwWBfwUBF4JvBYNGChkmDVVXgiICBhKHTIF?= =?us-ascii?q?UP4EMglAGiB2CVAKXMwiBNIx4jDKPaw8DHoEEHF6BLDMaI08xghKCIA4Jjhg9M?= =?us-ascii?q?I53AQE?= X-IronPort-AV: E=Sophos;i="5.48,376,1517871600"; d="scan'208,217";a="260314087" Received: from mail-oi0-f44.google.com ([209.85.218.44]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 29 Mar 2018 18:32:01 +0200 Received: by mail-oi0-f44.google.com with SMTP id 71-v6so5665626oie.12 for ; Thu, 29 Mar 2018 09:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=LflGSzVVTXJKiHtoZG+C2XswwBFLY052jipavZDzF9M=; b=eONQlmNd2knSI6NBYnU6qsdhXlk3h1exnbjy7taX2aXNwA4MG5Ggf7dulUowiM69QW oNDl5sRCZo/suIk5Y/2/oOWy3aRZfPTf67G/GKIS68VxLcB2mlbZQLzW3V3lyWLRKLki 50tZVLx7hAsQNQvZjtoGxAxzjBEAS1wteUuoejIFt2OOKeIEUmsmeMGbxOrUDGId5ZVb juo18OOuOeDoFAs7pIQZV1eRZOCsF9GCOC6I1pW4AGsqXCh8J3QbkF9Kay6fqAqYXLpv J/gPq63w8wfiVMYuS8syacJV41grWIIJDhng7OKa01GFNXzuIshy+1HBKroU61niib/T RMzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LflGSzVVTXJKiHtoZG+C2XswwBFLY052jipavZDzF9M=; b=l7rrjZ2GFvhHR1hL2XdFhLM+X+VU2iJa30YgHZKZiQjXMKgCsI0whT8262OQJpPhT6 59tOiFV/9kVJG66XU2XeIFMtPi/CWfj9iB2GLakzI0fvNPiRAhWPNpzl3bTL9KvCsC5u wG0dMwZBdmTh00Wq+w3donwE5FRBxzLHDsRmblPDHoCplAJNkpM//DDx5+rflNijGwd/ V9jOHz810pSMWjj+31gGY6ondNcvA6k4PPpP+60/etGuhhKGZnF6jNZViRaCanL411zS 3ec9WgFgZw1kcT5wk9MZtwWpmx7reIyKnSLkqI8tP9Iut0KtOulOeEoDrAw49eoALtGA dHwg== X-Gm-Message-State: AElRT7GUaaaIgqUNDe95YZw6GTSBCg4mPqXWvGvU/M7uBd575SP3SdgZ LI9xWc4gNMhwXQbfOU1LqvJv5Aby35HKrKg4UNm4kQ== X-Google-Smtp-Source: AIpwx49rAooe838LqTHlphEYFGYu77Rz5C6cJdQjYwVgolys1zH/r7v5EO7rAqP/zpcQN0M+Xmpt21hh4+Dbmcsg0Ok= X-Received: by 10.202.212.72 with SMTP id l69mr4559176oig.223.1522341119678; Thu, 29 Mar 2018 09:31:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.203.2 with HTTP; Thu, 29 Mar 2018 09:31:39 -0700 (PDT) From: Hans Ole Rafaelsen Date: Thu, 29 Mar 2018 18:31:39 +0200 Message-ID: To: caml-list@inria.fr Content-Type: multipart/alternative; boundary="001a113d4226aa5bf705688fa95c" Subject: [Caml-list] Create a deployable application unit from OPAM? Reply-To: Hans Ole Rafaelsen X-Loop: caml-list@inria.fr X-Sequence: 16756 Errors-to: caml-list-owner@inria.fr Precedence: list Precedence: bulk Sender: caml-list-request@inria.fr X-no-archive: yes List-Id: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --001a113d4226aa5bf705688fa95c Content-Type: text/plain; charset="UTF-8" Hi, I have small application written using Ocsigen. Ocaml and the rest of the development environment is installed using OPAM. Now I want to install this application on a few other nodes, without having to bring bring along the whole development process for deployment on each node. What I want to end up with, is a single unit, e.g a tar-file, a docker container or similar, that can be copied and deployed to the target nodes. This unit should only contain the binaries needed to run the application. I have tried to ask on the Ocsigen mailing-list how do do this for Ocsigen applications, but without success. But I guess the problem is more related to how to deploy applications built using OPAM. I did not find any way to do this with OPAM, but I might have missed something. I have tried to copy all the binary files (.so, .cmxa .cmxs, etc) from the OPAM directory and setting the environment variables to point the this new location, but without much success. When starting ocsigenserver it was not able to solve all symbols. Looking more into the problem, it looks like binaries such as ocsigenserver has hard coded the location of the OPAM development environment. Might be possible to override this using environment variables, but I'm not sure how. So I gave up on this track. Is there a way to generate such a deployable unit from OPAM development environment? Do anyone have some tips / best practice on how to deploy applications built using OPAM? (I'm developing and want to deploy on Ubuntu 16.04.) Regards, Hans Ole Rafaelsen -- Caml-list mailing list. Subscription management and archives: https://sympa.inria.fr/sympa/arc/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs --001a113d4226aa5bf705688fa95c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I have smal= l application written using Ocsigen. Ocaml and the rest of the development = environment is installed using OPAM.

Now I want to install thi= s application on a few other nodes, without having to bring bring along the= whole development process for deployment on each node. What I want to end = up with, is a single unit, e.g a tar-file, a docker container or similar, t= hat can be copied and deployed to the target nodes. This unit should only c= ontain the binaries needed to run the application.

I have trie= d to ask on the Ocsigen mailing-list how do do this for Ocsigen application= s, but without success. But I guess the problem is more related to how to d= eploy applications built using OPAM. I did not find any way to do this with= OPAM, but I might have missed something. I have tried to copy all the bina= ry files (.so, .cmxa .cmxs, etc) from the OPAM directory and setting the en= vironment variables to point the this new location, but without much succes= s. When starting ocsigenserver it was not able to solve all symbols. Lookin= g more into the problem, it looks like binaries such as ocsigenserver has h= ard coded the location of the OPAM development environment. Might be possib= le to override this using environment variables, but I'm not sure how. = So I gave up on this track.


Is there a way to generate suc= h a deployable unit from OPAM development environment?

Do anyo= ne have some tips / best practice on how to deploy applications built using= OPAM?

(I'm developing and want to deploy on Ubuntu 16.04.= )

Regards,

Hans Ole Rafa= elsen
--001a113d4226aa5bf705688fa95c--