<?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: Kalan Dominick</title>
    <description>The latest articles on DEV Community by Kalan Dominick (@domkalan).</description>
    <link>https://dev.to/domkalan</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1212651%2Fb0ad0148-edfa-4e31-85e5-56f1508f8c63.jpeg</url>
      <title>DEV Community: Kalan Dominick</title>
      <link>https://dev.to/domkalan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/domkalan"/>
    <language>en</language>
    <item>
      <title>VSCode Tunnels from inside Docker</title>
      <dc:creator>Kalan Dominick</dc:creator>
      <pubDate>Sat, 18 Nov 2023 03:00:04 +0000</pubDate>
      <link>https://dev.to/domkalan/vscode-tunnels-from-inside-docker-1aoa</link>
      <guid>https://dev.to/domkalan/vscode-tunnels-from-inside-docker-1aoa</guid>
      <description>&lt;p&gt;When it comes to my system, everything gets put into docker containers for easy to destroy environments when they are no longer needed. I have always hated bloating up my main workstation with packages and dependencies for projects that are only going to last me a few weeks. That is why I set out to find a way to run vscode in a lightweight style from docker.&lt;/p&gt;

&lt;p&gt;I stumbled upon an &lt;a href="https://github.com/alexanderdna/container-tunnel"&gt;existing project (https://github.com/alexanderdna/container-tunnel)&lt;/a&gt; which had what I needed, but achieved this using the tunnels feature, VSCode's new way of remote development. You can access your tunnel from the VSCode editor or event &lt;a href="https://vscode.dev"&gt;vscode.dev&lt;/a&gt; website.&lt;/p&gt;

&lt;p&gt;I forked this project and was able to clean it up a bit and published it publicly under &lt;a href="https://github.com/domkalan/vscode-tunnel"&gt;domkalan/vscode-tunnel&lt;/a&gt; on GitHub. The Docker image is based on Debian Bookworm which is the latest Debian version as of publishing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Try it yourself
&lt;/h3&gt;

&lt;p&gt;For more information, view the project’s GitHub page with detailed setup instructions. Or, get started by running this on your server with Docker installed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;--name&lt;/span&gt; vscode-tunnel &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="nt"&gt;-v&lt;/span&gt; /opt/vscode/projects:/home/workspace 
&lt;span class="nt"&gt;--network&lt;/span&gt; host &lt;span class="nt"&gt;--restart&lt;/span&gt; always &lt;span class="nt"&gt;--workdir&lt;/span&gt; /home/workspace &lt;span class="se"&gt;\&lt;/span&gt;
domkalan/vscode-tunnel:latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once the container is running, you will need to register the tunnel to your GitHub account. View the logs from tunnel to view the steps on how to register.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker logs vscode-tunnel
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see something like this in your terminal.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*

[2023-11-07 23:53:58] info Using Github for authentication, run `code tunnel user login --provider &amp;lt;provider&amp;gt;` option to change this.
To grant access to the server, please log into https://github.com/login/device and use code XXXX-0000
[2023-11-07 23:56:56] info Creating tunnel with the name: vscode-tunnel

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>docker</category>
      <category>vscode</category>
      <category>linux</category>
      <category>remote</category>
    </item>
    <item>
      <title>Hello World</title>
      <dc:creator>Kalan Dominick</dc:creator>
      <pubDate>Sat, 18 Nov 2023 02:53:25 +0000</pubDate>
      <link>https://dev.to/domkalan/hello-world-11d8</link>
      <guid>https://dev.to/domkalan/hello-world-11d8</guid>
      <description>&lt;p&gt;Just made an account, lets see what this place is about.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;hello world&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
