lpvm

lpvm

I’m trying to setup edeliver and distillery to automate the deployment of my prototype to a VPS jail (running FreeBSD). That jail is configured to receive ssh in a different port than 22. This part is working fine as .ssh/config is setup.

The first thing I don’t understand is in .deliver/config.
In my local development box, the app is being built in ~/prog/elixir/orif/trunk.
As per the edeliver instructions,

  • BUILD_HOST : the host where to build the release
  • BUILD_USER : the local user at build host
  • BUILD_AT : the directory on build host where to build the release. must exist.

What is shown in a guide is that BUILD and PRODUCTION have same configs.

should BUILD_HOST have the name of my Linux box?
should BUILD_USER have the username I’m working with at my box?
should BUILD_AT be inside that ~/prog/elixir/orif/trunk directory or outside, for example in ~/prog/elixir/orif/build?

As for the ssh deployment. I’ve not been able to configure edeliver to mimic what I do at the command line, i.e., to ssh -i some_identity_file -p 22000 elixir@my_host. It always asks for my local user at the VPS at the standard 22 ssh port. How to do it?

Showing Posts 1 to 2

aseigo

aseigo

The values of the BUILD_* vars reflect where you want to build. If you are building on your local machine, then indeed they can just be your local system and user. Where I work we have a couple of different production targets (OS / versions), and for each of those production environments we have a (or more) build and test server that mirrors those setups. This way, no matter what OS the developer is working on, they can build for the correct production target.

So we point the BUILD_* to the remote host, the build user (which all the devs have ssh access to on the build systems) and we put BUILD_AT somewhere under /tmp. Builds then happen remotely on the right build system. Similarly for staging/testing.

To get the port for ssh (we actually have one system that has a similar config to yours: the deploy goes over an ssh server listening on port 2200) we currently configure this in the developer’s local ~/.ssh/config:

Host sshalias
    HostName actual.domain.com
    Port 2200

And then the deploy host in the edeliver config is noted as sshalias (matching whatever value is in the ~/.ssh/config). I am not entirely happy with that solution, and I wish edeliver had a more straight-forward way of defining alternative ssh ports .. but so far we have not found it.

aseigo

aseigo

Your post motivated me to glance at the edeliver code in question and, for the curious, it seems that there are two functions in the shell script libexec/core: __sync_remote and __remote that initiate the ssh connections. They do not have a way to take a param for the ssh port, but were that to be added would allow setting the ssh port directly in the edeliver config if the usage of those two functions (only two scripts in libexec use them) were updated to pass on the relevant port #. So … not a tiny job, but not a big one either.

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
Aludel - LLM Evaluation Workbench Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews