jeramyRR

jeramyRR

Docker Dev Environment (VSCode)

Hi all,

I created a small repo that has the basic docker config files needed to have an Elixir docker development environment in VSCode. I was hoping I could get a few eyes on it to test it out to make sure it’s not just a “it works on my machine” thing.

Basically it’s just the config files. The user will need to start a new Elixir or Phoenix Project, copy the files into their new project, and then open the project up in VS Code. VS Code will then automatically create the docker environment for them.

Here is a link to the repo.
https://github.com/jeramyRR/elixir-vscode-docker-env

Comments and criticisms welcome!

First Post!

Sanjibukai

Sanjibukai

Thanks for sharing..

Just to mention that, you could also provide a top level .env file and put the following:

COMPOSE_PROJECT_NAME=whatever

Now you can decouple your project directory structure from what’s docker-compose is using by default..

Also, Since you’re using it within VSCode when you first spin up the devcontainer (open in container) you can perform mix ecto.setup manually (the first time or as many times as needed after some migrations for example). So I’m not sure if it’s necessary to have it in the command section of your compose file.

Also if you have some equivalent for production, don’t hesitate to share them too :wink:

Where Next?

Popular in Discussions Top

sergio
There’s a new TIOBE index report that came out that shows Elixir is still not in the top 50 used languages. It also goes on to call Elix...
New
chulkilee
Here are the list of HTTP client libraries/wrappers, and some thoughts on HTTP client in general. I’d like to hear from others how they w...
New
AstonJ
If so I (and hopefully others!) might have some tips for you :slight_smile: But first, please say which area you’re finding most challen...
New
PragTob
Hello everyone, I know we had quite some threads (read through lots of them) about background job processing but it remains a hotly deba...
New
thojanssens1
It would be nice to be able to define a redirect from one route to another from the router.ex file. E.g.: redirect "/", UserController, ...
New
opsb
We’re considering our architecture from a viewpoint of scaling our traffic heavily over the next 6 months. Our current deployment is runn...
New
mmmrrr
Just saw that dhh announced https://hotwire.dev/ Is it just me or is this essentially live view? :smiley: Although I like the “iFrame-e...
New

Other popular topics Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 49266 226
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New

We're in Beta

About us Mission Statement