php workspace

This commit is contained in:
bluxmit 2022-07-17 11:01:25 +00:00
parent 7a098886c1
commit 5e30848c4d
15 changed files with 64 additions and 25 deletions

View file

@ -33,7 +33,7 @@
min-height: 170px;
}
.tool-caption{
font-family: Roboto, Helvetica, sans-serif;
font-family: inherit;
text-align: center;
margin-top: 10px;
font-size: 1.2rem;
@ -45,7 +45,7 @@
line-height: 1.5;
}
.tool-description{
font-family: Helvetica, sans-serif;
font-family: inherit;
text-align: center;
margin-top: 10px;
font-size: 0.7rem;

View file

@ -55,6 +55,8 @@ RUN apt-get -y update \
&& mkdir -p /var/log/static-file-server && chown -R abc /var/log/static-file-server \
&& mkdir -p /var/log/mkdocs && chown -R abc /var/log/mkdocs \
&& chown -R abc /home/abc/utils \
&& chown -R abc /home/abc/installed-python-packages
&& chown -R abc /home/abc/installed-python-packages \
&& find /home -type d | xargs -I{} chown -R abc {} \
&& find /home -type f | xargs -I{} chown abc {}
USER abc

View file

@ -33,7 +33,7 @@
min-height: 170px;
}
.tool-caption{
font-family: Roboto, Helvetica, sans-serif;
font-family: inherit;
text-align: center;
margin-top: 10px;
font-size: 1.2rem;
@ -45,7 +45,7 @@
line-height: 1.5;
}
.tool-description{
font-family: Helvetica, sans-serif;
font-family: inherit;
text-align: center;
margin-top: 10px;
font-size: 0.7rem;

View file

@ -33,7 +33,7 @@
min-height: 170px;
}
.tool-caption{
font-family: Roboto, Helvetica, sans-serif;
font-family: inherit;
text-align: center;
margin-top: 10px;
font-size: 1.2rem;
@ -45,7 +45,7 @@
line-height: 1.5;
}
.tool-description{
font-family: Helvetica, sans-serif;
font-family: inherit;
text-align: center;
margin-top: 10px;
font-size: 0.7rem;

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 507 KiB

After

Width:  |  Height:  |  Size: 514 KiB

View file

@ -33,7 +33,7 @@
min-height: 170px;
}
.tool-caption{
font-family: Roboto, Helvetica, sans-serif;
font-family: inherit;
text-align: center;
margin-top: 10px;
font-size: 1.2rem;
@ -45,7 +45,7 @@
line-height: 1.5;
}
.tool-description{
font-family: Helvetica, sans-serif;
font-family: inherit;
text-align: center;
margin-top: 10px;
font-size: 0.7rem;

View file

@ -1,10 +1,16 @@
ARG docker_registry=docker.io/alnoda
ARG image_tag=3.0
FROM ${docker_registry}/codeserver-workspace:${image_tag}
FROM ${docker_registry}/theia-workspace:${image_tag}
USER root
COPY ./mkdocs/mkdocs.yml /home/docs/mkdocs.yml
COPY ./mkdocs/php-circle.svg /home/docs/docs/assets/
COPY ./mkdocs/php-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 settings.json /home/abc/.theia/settings.json
RUN echo "------------------------------------------------------ PHP " \
&& add-apt-repository -y ppa:ondrej/php \
@ -16,7 +22,10 @@ RUN echo "------------------------------------------------------ PHP " \
&& cd /tmp && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php \
&& php -r "unlink('composer-setup.php');" \
&& mv ./composer.phar /usr/bin/composer
&& mv ./composer.phar /usr/bin/composer \
&& echo "------------------------------------------------------ user" \
&& find /home -type d | xargs -I{} chown -R abc {} \
&& find /home -type f | xargs -I{} chown abc {}
USER abc

View file

@ -0,0 +1,2 @@
Containerized isolated development environment for PHP coding.
Includes PHP, Composer, code editor, terminal, filebrowser and git manager.

View file

@ -1,17 +1,19 @@
[data-md-color-scheme="codeserver"] {
--md-primary-fg-color: #271647;
--md-primary-fg-color--light: #271647;
--md-primary-fg-color--dark: #271647;
--md-accent-fg-color: #44DA88;
[data-md-color-scheme="php"] {
--md-primary-fg-color: #4F5B93;
--md-primary-fg-color--light: #4F5B93;
--md-primary-fg-color--dark: #4F5B93;
--md-accent-fg-color: #793862;
--md-default-bg-color: #E6E6EA;
}
[data-md-color-scheme="codeserver-dark"] {
--md-primary-fg-color: #2b3ac4;
--md-primary-fg-color--light: #2b3ac4;
--md-primary-fg-color--dark: #2b3ac4;
--md-accent-fg-color: #44DA88;
[data-md-color-scheme="php-dark"] {
--md-primary-fg-color: #8892BF;
--md-primary-fg-color--light: #8892BF;
--md-primary-fg-color--dark: #8892BF;
--md-accent-fg-color: #793862;
--md-default-bg-color: #2E303E;
--md-default-bg-color: #292d40;
--md-default-fg-color--light: #E9EBFC;
--md-typeset-color: #E9EBFC;
--md-typeset-a-color: #E9EBFC;

View file

@ -25,8 +25,9 @@ edit_uri: ""
theme:
name: 'material'
favicon: 'assets/php-circle.svg'
logo: 'assets/php-circle.svg'
logo: 'assets/php-circle-white.svg'
custom_dir: overrides
font: Fira Sans
icon:
repo: fontawesome/brands/github
features:

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<svg viewBox="0 0 900 900" xmlns="http://www.w3.org/2000/svg">
<g id="g10" transform="matrix(3, 0, 0, -3, 0.000095, 900)" style="">
<g id="g12" transform="scale(0.1)">
<path d="M 1500 3000 C 671.57 3000 0 2328.43 0 1500 C 0 671.57 671.57 0 1500 0 C 2328.43 0 3000 671.57 3000 1500 C 3000 2328.43 2328.43 3000 1500 3000 Z M 2454.59 545.41 C 2199.61 290.422 1860.6 150 1500 150 C 1139.4 150 800.387 290.422 545.406 545.41 C 290.426 800.391 150 1139.4 150 1500 C 150 1860.6 290.426 2199.61 545.406 2454.59 C 800.387 2709.57 1139.4 2850 1500 2850 C 1860.6 2850 2199.61 2709.57 2454.59 2454.59 C 2709.57 2199.61 2850 1860.6 2850 1500 C 2850 1139.4 2709.57 800.391 2454.59 545.41" style="fill-opacity: 1; fill-rule: nonzero; stroke: none; fill: rgb(255, 255, 255);" id="path14"/>
</g>
</g>
<path d="M 218.78 495.732 C 240.464 495.732 256.653 490.86 266.912 481.292 C 277.063 471.809 284.048 455.411 287.722 432.488 C 291.142 411.088 289.833 396.125 283.866 388.079 C 277.754 379.858 264.511 375.638 244.502 375.638 L 209.795 375.638 L 190.585 495.732 L 218.78 495.732 Z M 105.382 643.663 C 103.767 643.66 102.241 642.78 101.235 641.271 C 100.199 639.751 99.785 637.757 100.106 635.834 L 151.039 317.615 C 151.526 314.557 153.749 312.336 156.351 312.308 L 266.113 312.308 C 300.601 312.308 326.286 323.704 342.439 346.105 C 358.664 368.679 363.685 400.17 357.319 439.839 C 354.912 455.44 350.455 470.487 344.113 484.422 C 337.927 497.864 329.743 510.303 319.81 521.394 C 308.456 534.524 294.797 544.465 279.828 550.494 C 265.458 556.192 246.976 559.063 224.893 559.063 L 180.472 559.063 L 167.776 638.4 C 167.292 641.441 165.088 643.657 162.5 643.706 L 105.382 643.706 L 105.382 643.663 Z M 492.655 559.063 C 491.051 559.06 489.537 558.179 488.544 556.67 C 487.533 555.152 487.121 553.186 487.417 551.277 L 509.645 410.48 C 511.755 397.083 511.246 387.47 508.19 383.425 C 506.335 380.945 500.695 376.77 484.034 376.77 L 443.723 376.77 L 415.747 553.799 C 415.292 556.843 413.093 559.07 410.507 559.107 L 354.664 559.107 C 353.058 559.104 351.543 558.222 350.553 556.713 C 349.541 555.197 349.129 553.229 349.424 551.32 L 399.703 233.101 C 400.156 230.057 402.355 227.83 404.941 227.795 L 460.859 227.795 C 462.459 227.795 463.951 228.665 464.97 230.187 C 465.988 231.709 466.388 233.667 466.097 235.625 L 453.983 312.438 L 497.349 312.438 C 530.382 312.438 552.756 319.616 565.816 334.317 C 579.096 349.367 583.243 373.376 578.151 405.738 L 554.757 553.844 C 554.304 556.886 552.104 559.114 549.519 559.15 L 492.655 559.15 L 492.655 559.063 Z M 680.999 495.732 C 703.519 495.732 720.326 490.86 730.986 481.292 C 741.5 471.809 748.775 455.411 752.596 432.488 C 756.161 411.088 754.779 396.125 748.558 388.079 C 742.191 379.858 728.44 375.638 707.666 375.638 L 671.685 375.638 L 651.712 495.732 L 680.999 495.732 Z M 563.271 643.663 C 561.604 643.665 560.02 642.789 558.941 641.271 C 557.883 639.764 557.454 637.764 557.776 635.834 L 610.675 317.615 C 611.212 314.506 613.512 312.284 616.168 312.308 L 730.148 312.308 C 765.984 312.308 792.651 323.704 809.386 346.105 C 826.231 368.679 831.433 400.17 824.849 439.839 C 822.156 455.977 817.572 470.982 811.133 484.379 C 804.729 497.819 796.216 510.26 785.92 521.351 C 773.552 534.879 759.581 544.665 744.411 550.45 C 729.458 556.149 710.285 559.019 687.366 559.019 L 641.198 559.019 L 628.028 638.314 C 627.491 641.423 625.191 643.644 622.535 643.62 L 563.271 643.62 L 563.271 643.663 Z" style="fill: rgb(255, 255, 255);"/>
</svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<svg viewBox="0 0 900 900" xmlns="http://www.w3.org/2000/svg">
<g id="g10" transform="matrix(3, 0, 0, -3, 0.000095, 900)" style="">
<g id="g12" transform="scale(0.1)">
<path d="M 1500 3000 C 671.57 3000 0 2328.43 0 1500 C 0 671.57 671.57 0 1500 0 C 2328.43 0 3000 671.57 3000 1500 C 3000 2328.43 2328.43 3000 1500 3000 Z M 2454.59 545.41 C 2199.61 290.422 1860.6 150 1500 150 C 1139.4 150 800.387 290.422 545.406 545.41 C 290.426 800.391 150 1139.4 150 1500 C 150 1860.6 290.426 2199.61 545.406 2454.59 C 800.387 2709.57 1139.4 2850 1500 2850 C 1860.6 2850 2199.61 2709.57 2454.59 2454.59 C 2709.57 2199.61 2850 1860.6 2850 1500 C 2850 1139.4 2709.57 800.391 2454.59 545.41" style="fill-opacity: 1; fill-rule: nonzero; stroke: none;" id="path14"/>
</g>
</g>
<path d="M 218.78 495.732 C 240.464 495.732 256.653 490.86 266.912 481.292 C 277.063 471.809 284.048 455.411 287.722 432.488 C 291.142 411.088 289.833 396.125 283.866 388.079 C 277.754 379.858 264.511 375.638 244.502 375.638 L 209.795 375.638 L 190.585 495.732 L 218.78 495.732 Z M 105.382 643.663 C 103.767 643.66 102.241 642.78 101.235 641.271 C 100.199 639.751 99.785 637.757 100.106 635.834 L 151.039 317.615 C 151.526 314.557 153.749 312.336 156.351 312.308 L 266.113 312.308 C 300.601 312.308 326.286 323.704 342.439 346.105 C 358.664 368.679 363.685 400.17 357.319 439.839 C 354.912 455.44 350.455 470.487 344.113 484.422 C 337.927 497.864 329.743 510.303 319.81 521.394 C 308.456 534.524 294.797 544.465 279.828 550.494 C 265.458 556.192 246.976 559.063 224.893 559.063 L 180.472 559.063 L 167.776 638.4 C 167.292 641.441 165.088 643.657 162.5 643.706 L 105.382 643.706 L 105.382 643.663 Z M 492.655 559.063 C 491.051 559.06 489.537 558.179 488.544 556.67 C 487.533 555.152 487.121 553.186 487.417 551.277 L 509.645 410.48 C 511.755 397.083 511.246 387.47 508.19 383.425 C 506.335 380.945 500.695 376.77 484.034 376.77 L 443.723 376.77 L 415.747 553.799 C 415.292 556.843 413.093 559.07 410.507 559.107 L 354.664 559.107 C 353.058 559.104 351.543 558.222 350.553 556.713 C 349.541 555.197 349.129 553.229 349.424 551.32 L 399.703 233.101 C 400.156 230.057 402.355 227.83 404.941 227.795 L 460.859 227.795 C 462.459 227.795 463.951 228.665 464.97 230.187 C 465.988 231.709 466.388 233.667 466.097 235.625 L 453.983 312.438 L 497.349 312.438 C 530.382 312.438 552.756 319.616 565.816 334.317 C 579.096 349.367 583.243 373.376 578.151 405.738 L 554.757 553.844 C 554.304 556.886 552.104 559.114 549.519 559.15 L 492.655 559.15 L 492.655 559.063 Z M 680.999 495.732 C 703.519 495.732 720.326 490.86 730.986 481.292 C 741.5 471.809 748.775 455.411 752.596 432.488 C 756.161 411.088 754.779 396.125 748.558 388.079 C 742.191 379.858 728.44 375.638 707.666 375.638 L 671.685 375.638 L 651.712 495.732 L 680.999 495.732 Z M 563.271 643.663 C 561.604 643.665 560.02 642.789 558.941 641.271 C 557.883 639.764 557.454 637.764 557.776 635.834 L 610.675 317.615 C 611.212 314.506 613.512 312.284 616.168 312.308 L 730.148 312.308 C 765.984 312.308 792.651 323.704 809.386 346.105 C 826.231 368.679 831.433 400.17 824.849 439.839 C 822.156 455.977 817.572 470.982 811.133 484.379 C 804.729 497.819 796.216 510.26 785.92 521.351 C 773.552 534.879 759.581 544.665 744.411 550.45 C 729.458 556.149 710.285 559.019 687.366 559.019 L 641.198 559.019 L 628.028 638.314 C 627.491 641.423 625.191 643.644 622.535 643.62 L 563.271 643.62 L 563.271 643.663 Z" style=""/>
</svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

View file

@ -0,0 +1,5 @@
{
"terminal.integrated.shell.linux": "/bin/zsh",
"workbench.colorTheme": "Atomize",
"git-graph.maxDepthOfRepoSearch": 3
}

View file

@ -33,7 +33,7 @@
min-height: 170px;
}
.tool-caption{
font-family: Roboto, Helvetica, sans-serif;
font-family: inherit;
text-align: center;
margin-top: 10px;
font-size: 1.2rem;
@ -45,7 +45,7 @@
line-height: 1.5;
}
.tool-description{
font-family: Helvetica, sans-serif;
font-family: inherit;
text-align: center;
margin-top: 10px;
font-size: 0.7rem;