|
1 | 1 | <!-- markdownlint-disable MD033 --> |
2 | | -# Dockerfile for CIs and Development |
| 2 | +# Dockerfile for GitHub and VSCode Users To Develop |
3 | 3 |
|
4 | | -## For CIs |
| 4 | +This directory is for [GitHub Codespaces](https://github.com/features/codespaces) and/or [VS Code + Docker](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) users for development. |
5 | 5 |
|
6 | | -The [CI](https://en.wikipedia.org/wiki/Continuous_integration) will run the [Dockerfile](Dockerfile) to build the image and then run the tests in a container. |
| 6 | +It includes most of the necessary packages and tools for developing Golang app. Aiming to provide the same environment to develop the app. |
7 | 7 |
|
8 | | -- Current CI |
9 | | - - [GitHub Actions](https://docs.github.com/en/free-pro-team@latest/actions): [../.github/workflows/](https://github.com/KEINOS/Hello-Cobra/tree/main/.github/workflows) |
| 8 | +## Developing Online |
10 | 9 |
|
11 | | -## For DEVs |
| 10 | +If GitHub detects this directory (`.devcontainer`) in the repo, then you will be able to develop online via [GitHub Codespaces](https://github.com/features/codespaces). |
12 | 11 |
|
13 | | -This directory is for [GitHub Codespaces](https://github.com/features/codespaces) and [VS Code + Docker](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) users to develop the cloned/forked repo. |
| 12 | +## VS Code + Docker User |
14 | 13 |
|
15 | | -### VS Code + Docker User |
| 14 | +The container contains VS Code Server as well. If you already have installed the "[Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)" extension, then press "<kbd>F1</kbd>" and select "`Remote-Containers: Open in Container`". |
16 | 15 |
|
17 | | -If you already have installed the "[Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)" extension, press "<kbd>F1</kbd>" and select "`Remote-Containers: Open in Container`". After a while, you'll get most of the environment needed to develop and debug. |
| 16 | +After a while, you'll get most of the environment needed to develop and debug. |
18 | 17 |
|
19 | | -- File Description |
20 | | - - [cobra.yaml](cobra.yaml): Default `cobra` command Settings. |
21 | | - - [devcontainer.json](devcontainer.json): VSCode Extensions to be installed. |
22 | | - - [Dockerfile](Dockerfile): Alpine based Golang development container. |
23 | | - - [postCreateCommand.sh](postCreateCommand.sh): Initialization script that runs after the container and the VSCode server is up and before connection from VSCode. |
24 | | - - [settings.vscode.json](settings.vscode.json): Additional VSCode Settings. |
25 | | - - [welcome.sh](welcome.sh): Bash script to display the welcome message in the terminal when first login. It will display the basic info and TIPs to use. |
| 18 | +## File Description |
| 19 | + |
| 20 | +- [cobra.yaml](cobra.yaml): Default `cobra` command Settings. Used for `$ cobra add ..` |
| 21 | +- [devcontainer.env](devcontainer.env): ENV variables to be loaded once when the container's created. |
| 22 | +- [devcontainer.json](devcontainer.json): VSCode Extensions to be installed and env settings. |
| 23 | +- [Dockerfile](Dockerfile): Debian 10 (buster) based Golang development container. |
| 24 | +- [postCreateCommand.sh](postCreateCommand.sh): Initialization script that runs after the container and the VSCode server is up. |
| 25 | +- [README.md](README.md): This file. ;-) |
| 26 | +- [welcome.sh](welcome.sh): Bash script to display the basic info and TIPs to use in the first shell login. |
0 commit comments