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

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
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
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews