Giter Site home page Giter Site logo

sardonyx-sard / docker-wslg-gui-template Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 3.99 MB

This is Docker + WSLg + devcontainer.json + Python GUI template.

Home Page: https://zenn.dev/sardonyx/articles/9726126c4a67ffb66509

License: The Unlicense

Makefile 35.05% Dockerfile 19.02% Shell 18.18% Python 27.76%
dokcer wslg devcontainer python template gui

docker-wslg-gui-template's Introduction

Docker + WSLg GUI-Template

English | 日本語

About

wsl-ubuntu

This is Docker + WSLg + devcontainer.json + Python template.

The sample is in python, but other images are also possible.

Table of Contents

Prerequisites

Required

  • Windows 11 (for WSLg)

  • WSLg

    (Required to display Docker GUI on windows)

  • git

  • Docker Desktop for Windows (Build any environment with virtual containers)

Optional

Quick Start

Warning: Be sure to run it in the WSL directory. Otherwise, the wslg directory will not be mounted correctly and the GUI will not be displayed.


If you are using an editor other than VS code

Step 1: Run the following command.

git clone https://github.com/SARDONYX-sard/docker-wslg-gui-template.git
cd docker-wslg-gui-template

Step2: Enter the following command and then enter the container created.

make compose

VS code User

Step 1: Run the following command.

git clone https://github.com/SARDONYX-sard/docker-wslg-gui-template.git
cd docker-wslg-gui-template
code .

Step 2: Click on the WSL: <Linux name> icon in the lower left corner.

wsl-ubuntu

Step 3: Select the item Reopen in Container from the palette that appears in the center.

wsl-ubuntu

Make usage

Command Description
make compose-conf Set .env.wsl & Show docker-compose.yml config
make compose-up Create container by docker-compose.yml
make start Run python file(default: src/main.py)
make install-dev Install dependencies (For dev)
make install Install dependencies (For prod)
make lint Lint with pysen
make lint-fix Lint fix with pysen
make test Test with pytest
make ci Remove .venv dir & Install dependencies
make clean Remove cache files

If you are using windows, you can install the make command here.

(Click the Setup button at the top.)

Directory structure

docker-wslg-gui-template
├── .devcontainer
|  └── devcontainer.json
├── .editorconfig
├── .github
|  ├── dependabot.yml
|  └── workflows
|     └── ci.yml
├── docker
|  ├── .env.wslg
|  ├── Dockerfile
|  └── docker-compose.yml
├── docs
|  ├── i18n
|  |  └── jp
|  └── images
|     └── gui-sample.png
├── scripts
|  └── set-wslg.sh
├── src
|  ├── main.py
|  └── utils
|     ├── __init__.py
|     └── operator.py
├── tests
|  ├── __init__.py
|  └── test_operator.py
├── .gitignore
├── LICENSE
├── Makefile
├── poetry.lock
├── pyproject.toml
└── README.md

License

Unlicense

docker-wslg-gui-template's People

Contributors

dependabot[bot] avatar sardonyx-sard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docker-wslg-gui-template's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.