<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Fabian Jevon</title>
    <description>The latest articles on DEV Community by Fabian Jevon (@tryxns).</description>
    <link>https://dev.to/tryxns</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1183629%2F8a22ea3e-8afe-422c-82c6-72443e21f1e6.png</url>
      <title>DEV Community: Fabian Jevon</title>
      <link>https://dev.to/tryxns</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tryxns"/>
    <language>en</language>
    <item>
      <title>How to generate devcontainer.json automatically without using devcontainer.ai</title>
      <dc:creator>Fabian Jevon</dc:creator>
      <pubDate>Fri, 10 Jan 2025 06:08:07 +0000</pubDate>
      <link>https://dev.to/tryxns/how-to-generate-devcontainerjson-automatically-without-using-devcontainerai-2fd9</link>
      <guid>https://dev.to/tryxns/how-to-generate-devcontainerjson-automatically-without-using-devcontainerai-2fd9</guid>
      <description>&lt;p&gt;I want to share my troubleshooting experience when creating a sample project for &lt;a href="https://www.daytona.io/" rel="noopener noreferrer"&gt;https://www.daytona.io/&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem Background
&lt;/h2&gt;

&lt;p&gt;I need a valid &lt;code&gt;devcontainer.json&lt;/code&gt; to run daytona properly but I don't have experience in writing devcontainer configuration &amp;amp; (in that moment) &lt;a href="https://devcontainer.ai/" rel="noopener noreferrer"&gt;https://devcontainer.ai/&lt;/a&gt; can't generate one for me.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution
&lt;/h2&gt;

&lt;p&gt;I found the alternative way to generate it using VSCode IDE.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install VSCode Plugin named &lt;em&gt;&lt;code&gt;Dev Containers&lt;/code&gt;&lt;/em&gt;
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjwuvqdmnmneuaj300jdn.png" alt="Image description" width="800" height="484"&gt;
&lt;/li&gt;
&lt;li&gt;Open Command Palette (default shortcut: Ctrl+shift+P)&lt;/li&gt;
&lt;li&gt;Search for Dev Containers: &lt;code&gt;Add Dev Container Configuration Files&lt;/code&gt; then select it
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkmch3abmjur0409ljf0b.png" alt="Image description" width="605" height="156"&gt;
&lt;/li&gt;
&lt;li&gt;Choose &lt;code&gt;Add configuration to workspace&lt;/code&gt;
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp2lxkfnyulxvkbw51z2v.png" alt="Image description" width="604" height="132"&gt;
&lt;/li&gt;
&lt;li&gt;Choose the configuration template. In my case, because I'm building a project using Laravel, I choose PHP for the configuration template then choose the default for the PHP version.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjt7zmnlm5w6v24eym9hs.png" alt="Image description" width="597" height="427"&gt;
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk1xxw761ro0xwrpl3vxk.png" alt="Image description" width="603" height="199"&gt;
&lt;/li&gt;
&lt;li&gt;Choose the additional features to install. In my case, I need Node.js (via NPM) installed to support my Laravel project then keep defaults
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1pzhhtxx3wkulalysw28.png" alt="Image description" width="600" height="424"&gt;
&lt;/li&gt;
&lt;li&gt;Choose optional File / directories. In my case, I don't need additional file / directories
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbh5xmc6zwa6q90ftozfs.png" alt="Image description" width="601" height="96"&gt;
&lt;/li&gt;
&lt;li&gt;And.. Voila! A fresh &lt;code&gt;devcontainer.json&lt;/code&gt; has been generated for you.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnxpeki6mcaz35ylrr1mr.png" alt="Image description" width="800" height="389"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I found this method is very beginner friendly to those who don't have experience in writing devcontainer configuration because the generated config file has several informative comments in it so it can help us learn&lt;/p&gt;

</description>
      <category>daytona</category>
      <category>laravel</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
