From 045bac977ff3217af3590f4fe1702dbb1ca99528 Mon Sep 17 00:00:00 2001 From: Craig Osterhout <103533812+craig-osterhout@users.noreply.github.com> Date: Tue, 1 Aug 2023 11:53:53 -0700 Subject: [PATCH] get-started: move app repo (#17771) * update get started app repo Signed-off-by: Craig Osterhout --- get-started/02_our_app.md | 32 ++++++++++++++++++------------- get-started/06_bind_mounts.md | 18 ++++++++--------- get-started/07_multi_container.md | 2 +- get-started/08_using_compose.md | 2 +- 4 files changed, 30 insertions(+), 24 deletions(-) diff --git a/get-started/02_our_app.md b/get-started/02_our_app.md index 656ea2acc9..ea49479ef2 100644 --- a/get-started/02_our_app.md +++ b/get-started/02_our_app.md @@ -24,22 +24,28 @@ To complete this guide, you'll need the following: Before you can run the application, you need to get the application source code onto your machine. -1. Clone the [getting-started repository](https://github.com/docker/getting-started/tree/master){:target="_blank" rel="noopener" class="_"} using the following command: +1. Clone the [getting-started-app repository](https://github.com/docker/getting-started-app/tree/main){:target="_blank" rel="noopener" class="_"} using the following command: ```console - $ git clone https://github.com/docker/getting-started.git + $ git clone https://github.com/docker/getting-started-app.git ``` -2. View the contents of the cloned repository. Inside the `getting-started/app` directory you should see `package.json` and two subdirectories (`src` and `spec`). +2. View the contents of the cloned repository. You should see the following files and sub-directories. - ![Screenshot of Visual Studio Code opened with the app loaded](images/ide-screenshot.png){: style="width:650px;margin-top:20px;"} - {: .text-center } + ``` + ├── getting-started-app/ + │ ├── package.json + │ ├── README.md + │ ├── spec/ + │ ├── src/ + │ └── yarn.lock +``` ## Build the app's container image To build the [container image](../get-started/overview.md/#docker-objects){:target="_blank" rel="noopener" class="_"}, you'll need to use a `Dockerfile`. A Dockerfile is simply a text-based file with no file extension that contains a script of instructions. Docker uses this script to build a container image. -1. In the `app` directory, the same location as the `package.json` file, create a file named `Dockerfile`. You can use the following commands below to create a Dockerfile based on your operating system. +1. In the `getting-started-app` directory, the same location as the `package.json` file, create a file named `Dockerfile`. You can use the following commands to create a Dockerfile based on your operating system.