[go: up one dir, main page]

{ const container = $el; // The div with overflow const item = document.getElementById('sidebar-current-page') if (item) { const containerTop = container.scrollTop; const containerBottom = containerTop + container.clientHeight; const itemTop = item.offsetTop - container.offsetTop; const itemBottom = itemTop + item.offsetHeight; // Scroll only if the item is out of view if (itemBottom > containerBottom - 200) { container.scrollTop = itemTop - (container.clientHeight / 2 - item.offsetHeight / 2); } } })" class="bg-background-toc dark:bg-background-toc fixed top-0 z-40 hidden h-screen w-full flex-none overflow-x-hidden overflow-y-auto md:sticky md:top-16 md:z-auto md:block md:h-[calc(100vh-64px)] md:w-[320px]" :class="{ 'hidden': ! $store.showSidebar }">
Contact support
Learn how to containerize JavaScript applications with the Deno runtime using Docker.
JavaScript
10 minutes
« Back to all guides

Deno language-specific guide

The Deno getting started guide teaches you how to create a containerized Deno application using Docker. In this guide, you'll learn how to:

Acknowledgment

Docker would like to thank Pradumna Saraf for his contribution to this guide.

What will you learn?

  • Containerize and run a Deno application using Docker
  • Set up a local environment to develop a Deno application using containers
  • Use Docker Compose to run the application.
  • Configure a CI/CD pipeline for a containerized Deno application using GitHub Actions
  • Deploy your containerized application locally to Kubernetes to test and debug your deployment

Prerequisites

  • Basic understanding of JavaScript is assumed.
  • You must have familiarity with Docker concepts like containers, images, and Dockerfiles. If you are new to Docker, you can start with the Docker basics guide.

After completing the Deno getting started modules, you should be able to containerize your own Deno application based on the examples and instructions provided in this guide.

Start by containerizing an existing Deno application.

Modules

  1. Containerize your app

    Learn how to containerize a Deno application.

  2. Develop your app

    Learn how to develop your Deno application locally.

  3. Configure CI/CD

    Learn how to configure CI/CD using GitHub Actions for your Deno application.

  4. Test your deployment

    Learn how to develop locally using Kubernetes