diff --git a/workspaces/php-workspace/mkdocs/mkdocs.yml b/workspaces/php-workspace/mkdocs/mkdocs.yml index f03a9a3..7a6aa30 100644 --- a/workspaces/php-workspace/mkdocs/mkdocs.yml +++ b/workspaces/php-workspace/mkdocs/mkdocs.yml @@ -27,7 +27,8 @@ theme: favicon: 'assets/php-circle.svg' logo: 'assets/php-circle-white.svg' custom_dir: overrides - font: Fira Sans + font: + text: Fira Sans icon: repo: fontawesome/brands/github features: diff --git a/workspaces/python-automate-workspace/Dockerfile b/workspaces/python-automate-workspace/Dockerfile index 28e22d2..7d8ae99 100644 --- a/workspaces/python-automate-workspace/Dockerfile +++ b/workspaces/python-automate-workspace/Dockerfile @@ -1,16 +1,20 @@ ARG docker_registry=docker.io/alnoda -ARG image_tag=2.2 +ARG image_tag=3.0 FROM ${docker_registry}/ide-workspace:${image_tag} USER root +COPY ./mkdocs/mkdocs.yml /home/docs/mkdocs.yml +COPY ./mkdocs/python-circle.svg /home/docs/docs/assets/ +COPY ./mkdocs/python-circle-white.svg /home/docs/docs/assets/ +COPY ./mkdocs/extra.css /home/docs/docs/stylesheets/ +COPY ./mkdocs/about.md /home/docs/docs/about.md + COPY python-requirements.txt /home/abc/installed-python-packages COPY ./examples/ /home/examples/ COPY .pylintrc /home/abc/ -COPY ./mkdocs/mkdocs.yml /home/docs/mkdocs.yml - RUN pip install -r /home/abc/installed-python-packages/python-requirements.txt \ && echo "------------------------------------------------------ graphviz" \ && apt-get update \ diff --git a/workspaces/python-automate-workspace/README.md b/workspaces/python-automate-workspace/README.md index 6862227..11256ec 100644 --- a/workspaces/python-automate-workspace/README.md +++ b/workspaces/python-automate-workspace/README.md @@ -1,11 +1,11 @@

- Alnoda logo + Python logo

-# Python workspace +# Python-automate workspace -Docker image for Python development environment. Includes Python, python tooling together with browser-based IDE, file browser, -static server, job scheduler. +Containerized development and execution environment for the projects where Python is used to automate various tasks. +Includes Python, python tooling, browser-based IDE, file browser, git manager, visual job scheduler, static server.

Collage @@ -13,14 +13,15 @@ static server, job scheduler. ## Why this images -1. If you need isolated dev environment where you can code and install packages and apps without affecting the base operating system. -2. If you need self-hosted remote development environment. -3. If you need to be just one command away from coding in Python. +1. You need an environment where you can write and schedule Python code to automate all kinds of tasks and operation. +2. If you need isolated dev environment where you can code and install packages and apps without affecting the base operating system. +3. If you need self-hosted remote development and execution environment. +3. If you need to be just one command away from coding in Python and optimize manual work. ## Start ``` -docker run --name space-1 -d -p 8020-8040:8020-8040 alnoda/python-workspace +docker run --name space-1 -d -p 8020-8040:8020-8040 alnoda/python-automate-workspace ``` and open [localhost:8020](http://localhost:8020) in browser. @@ -63,11 +64,12 @@ Image is built from **Ubuntu 20.4** with the additional CLI apps - Node/nodeenv - curl, wget, telnet, jq - **Git:** git, git-flow, lazygit -- **File browsers:** mc, xplr +- **File browsers:** mc - **Text editors:** nano, vim, mcedit - **System monitors:** ncdu, htop, glances, vizex - **Process Control:** supervisord - **Job scheduler:** cron +- **Terminal multiplexer:** tmux ## Docs diff --git a/workspaces/python-automate-workspace/img/python-circle.svg b/workspaces/python-automate-workspace/img/python-circle.svg new file mode 100644 index 0000000..80cd528 --- /dev/null +++ b/workspaces/python-automate-workspace/img/python-circle.svg @@ -0,0 +1,10 @@ + + + + + + + + Python icon + + \ No newline at end of file diff --git a/workspaces/python-automate-workspace/mkdocs/about.md b/workspaces/python-automate-workspace/mkdocs/about.md new file mode 100644 index 0000000..26e034b --- /dev/null +++ b/workspaces/python-automate-workspace/mkdocs/about.md @@ -0,0 +1,2 @@ +Containerized development and execution environment for the projects where Python is used to automate various tasks. +Includes Python, python tooling, browser-based IDE, file browser, git manager, visual job scheduler, static server. \ No newline at end of file diff --git a/workspaces/python-automate-workspace/mkdocs/extra.css b/workspaces/python-automate-workspace/mkdocs/extra.css new file mode 100644 index 0000000..32b88ac --- /dev/null +++ b/workspaces/python-automate-workspace/mkdocs/extra.css @@ -0,0 +1,21 @@ +[data-md-color-scheme="python"] { + --md-primary-fg-color: #1E415E; + --md-primary-fg-color--light: #1E415E; + --md-primary-fg-color--dark: #1E415E; + --md-accent-fg-color: #ffda21; + + --md-default-bg-color: #F0F5FA; +} + +[data-md-color-scheme="python-dark"] { + --md-primary-fg-color: #316999; + --md-primary-fg-color--light: #316999; + --md-primary-fg-color--dark: #316999; + --md-accent-fg-color: #ffda21; + + --md-default-bg-color: #1E2933; + --md-default-fg-color--light: #4495db; + --md-typeset-color: #4495db; + --md-typeset-a-color: #4495db; +} + diff --git a/workspaces/python-automate-workspace/mkdocs/mkdocs.yml b/workspaces/python-automate-workspace/mkdocs/mkdocs.yml index fee9eaf..226b7c0 100644 --- a/workspaces/python-automate-workspace/mkdocs/mkdocs.yml +++ b/workspaces/python-automate-workspace/mkdocs/mkdocs.yml @@ -5,14 +5,15 @@ nav: - Home: README.md - My apps: pages/my-apps.md - - Docs: https://docs.alnoda.org/python-workspace/ + - About: about.md + - Docs: https://docs.alnoda.org/python-automate-workspace/ # =========================================================== # CONFIGURATION # =========================================================== -site_name: Python workspace +site_name: Python-automate workspace repo_url: https://github.com/bluxmit/alnoda-workspaces site_url: https://docs.alnoda.org edit_uri: "" @@ -23,26 +24,25 @@ edit_uri: "" theme: name: 'material' - favicon: 'assets/favicon.ico' - logo: 'assets/Alnoda-logo.svg' + favicon: 'assets/python-circle.svg' + logo: 'assets/python-circle-white.svg' custom_dir: overrides + font: + text: Source Sans Pro icon: - repo: fontawesome/brands/git-alt + repo: fontawesome/brands/github features: - navigation.instant palette: - - scheme: slate + - scheme: python toggle: - icon: material/toggle-switch + icon: material/brightness-7 name: Switch to dark mode - primary: light-blue - accent: deep orange - - scheme: default + - scheme: python-dark toggle: - icon: material/toggle-switch-off-outline - name: Switch to light mode - primary: indigo - accent: deep orange + icon: material/brightness-4 + name: Switch to light mode + extra: # Link to open when your logo is clicked @@ -50,21 +50,13 @@ extra: host_url: http://docs.alnoda.org plugins: - - search # Enable Macros and jinja2 templates - macros: module_name: macros/helpers +extra_css: + - stylesheets/extra.css extra_javascript: - javascripts/config.js - https://polyfill.io/v3/polyfill.min.js?features=es6 - - - - - - - - - diff --git a/workspaces/python-automate-workspace/mkdocs/python-circle-white.svg b/workspaces/python-automate-workspace/mkdocs/python-circle-white.svg new file mode 100644 index 0000000..5a2b611 --- /dev/null +++ b/workspaces/python-automate-workspace/mkdocs/python-circle-white.svg @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/workspaces/python-automate-workspace/mkdocs/python-circle.svg b/workspaces/python-automate-workspace/mkdocs/python-circle.svg new file mode 100644 index 0000000..80cd528 --- /dev/null +++ b/workspaces/python-automate-workspace/mkdocs/python-circle.svg @@ -0,0 +1,10 @@ + + + + + + + + Python icon + + \ No newline at end of file diff --git a/workspaces/python-workspace/Dockerfile b/workspaces/python-workspace/Dockerfile index fafee6b..b932197 100644 --- a/workspaces/python-workspace/Dockerfile +++ b/workspaces/python-workspace/Dockerfile @@ -15,8 +15,8 @@ COPY settings.json /home/abc/.theia/settings.json COPY python-requirements.txt /home/abc/installed-python-packages RUN echo "------------------------------------------------------ Packages, Pipx " \ - \ pip install -r /home/abc/installed-python-packages/python-requirements.txt \ - \ python3 -m pip install --user pipx \ + && pip install -r /home/abc/installed-python-packages/python-requirements.txt \ + && python3 -m pip install --user pipx \ && echo "------------------------------------------------------ user" \ && find /home -type d | xargs -I{} chown -R abc {} \ && find /home -type f | xargs -I{} chown abc {} diff --git a/workspaces/python-workspace/mkdocs/mkdocs.yml b/workspaces/python-workspace/mkdocs/mkdocs.yml index db7ac4a..7b131f7 100644 --- a/workspaces/python-workspace/mkdocs/mkdocs.yml +++ b/workspaces/python-workspace/mkdocs/mkdocs.yml @@ -27,7 +27,8 @@ theme: favicon: 'assets/python-circle.svg' logo: 'assets/python-circle-white.svg' custom_dir: overrides - font: Fira Sans + font: + text: Source Sans Pro icon: repo: fontawesome/brands/github features: