sqlite workspace

This commit is contained in:
bluxmit 2022-07-20 22:55:07 +00:00
parent edd3ed3d51
commit ac893af5ca
12 changed files with 128 additions and 20 deletions

View file

@ -1,7 +1,7 @@
ARG docker_registry=docker.io/alnoda
ARG image_tag=3.0
FROM ${docker_registry}/theia-workspace:${image_tag}
FROM ${docker_registry}/ide-workspace:${image_tag}
USER root
COPY supervisord-sqlite.conf /etc/supervisord/
@ -9,19 +9,19 @@ COPY supervisord-sqlite.conf /etc/supervisord/
# Customize mkdocs
COPY ./mkdocs/mkdocs.yml /home/docs/mkdocs.yml
COPY ./mkdocs/README.md /home/docs/docs/README.md
COPY ./mkdocs/img/* /home/docs/docs/assets/
COPY ./mkdocs/img/* /home/docs/docs/assets/home/
COPY ./mkdocs/helpers.py /home/docs/macros
COPY ./mkdocs/sqlite-circle.svg /home/docs/docs/assets/
COPY ./mkdocs/sqlite-circle-white.svg /home/docs/docs/assets/
COPY ./mkdocs/extra.css /home/docs/docs/stylesheets/
COPY ./mkdocs/about.md /home/docs/docs/about.md
# apt-get install -y sqlite3 \
COPY ./mkdocs/admin.md /home/docs/docs/pages/admin.md
COPY ./mkdocs/admin /home/docs/docs/pages/admin
RUN echo "------------------------------------------------------ sqlite3" \
&& cd /tmp && wget https://sqlite.org/2021/sqlite-autoconf-3350400.tar.gz \
&& tar zxvf /tmp/sqlite-autoconf-3350400.tar.gz \
&& cd /tmp/sqlite-autoconf-3350400 \
&& cd /opt && wget https://sqlite.org/2021/sqlite-autoconf-3350400.tar.gz \
&& tar zxvf /opt/sqlite-autoconf-3350400.tar.gz \
&& cd /opt/sqlite-autoconf-3350400 \
&& ./configure --prefix=/usr \
--disable-static \
--enable-fts5 \
@ -34,10 +34,9 @@ RUN echo "------------------------------------------------------ sqlite3" \
-DSQLITE_ENABLE_FTS3_TOKENIZER=1" \
&& make \
&& make install \
&& rm /tmp/sqlite-autoconf-3350400.tar.gz \
&& rm -rf /tmp/sqlite-autoconf-3350400 \
&& rm /opt/sqlite-autoconf-3350400.tar.gz \
&& echo "------------------------------------------------------ cli" \
&& pip install litecli==1.7.0 \
&& pip install litecli==1.9.0 \
&& echo "------------------------------------------------------ rclone" \
&& curl https://rclone.org/install.sh | bash \
&& echo "------------------------------------------------------ pspg" \

View file

@ -117,6 +117,7 @@
"image": "assets/home/Ungit.jpg",
"description": "Manage Git repositories and work flow using beautiful UI"
}
]
%}

View file

@ -0,0 +1 @@
Containerized workspace that helps to develop SQLite databases.

View file

@ -0,0 +1,110 @@
<style>
/* These styles apply only to this page! */
.md-content__button {
display: none;
}
.md-sidebar--secondary{
display: none !important;
}
.md-typeset h1 {
line-height: 0;
margin: 0;
margin-left: -9999px;
}
.quickstart-wrapper {
min-width: 300px;
display: flex;
flex-wrap: wrap;
justify-content: center;
padding-left: -50px;
column-gap: 50px;
row-gap: 50px;
}
.quickstart-wrapper > div {
flex: 300px;
max-width: 300px;
}
.tool-img{
box-shadow: rgba(0, 0, 0, 0.24) 0px 5px 5px;
border-radius: 5px;
min-width: 300px;
max-width: 300px;
max-height: 170px;
min-height: 170px;
}
.tool-caption{
font-family: Roboto, Helvetica, sans-serif;
text-align: center;
margin-top: 10px;
font-size: 1.2rem;
font-weight: bold;
/* font-size: 1.25em;
font-weight: 400; */
letter-spacing: -.02em;
line-height: 1.5;
}
.tool-description{
font-family: Helvetica, sans-serif;
text-align: center;
margin-top: 10px;
font-size: 0.7rem;
font-style: oblique;
/* font-weight: bold; */
}
</style>
{%
set tools = [
{
"env": "CRONICLE_URL",
"name": "Cronicle",
"image": "Cronicle.jpg",
"description": "Schedule jobs, manage schedules, observe and monitor executions (user/pass - admin/admin)"
},
{
"env": "STATICFS_URL",
"name": "Static File Server",
"image": "Static-server.png",
"description": "Serve any static websites like a breeze"
},
{
"env": "MC_URL",
"name": "M.Commander",
"image": "MC.jpg",
"description": "Feature rich visual file manager with internal text viewer and editor"
},
{
"env": "HTOP_URL",
"name": "Process monitor",
"image": "Htop.jpg",
"description": "Monitor running process and resource utilization"
}
]
%}
<div class="quickstart-wrapper">
{% for tool in tools %}
{% set tool_url = get_tool_url(tool.env) %}
<div>
{% if tool.subpath is defined %}
<a href="{{ tool_url }}/{{ tool.subpath }}" target="_blank" rel="noopener noreferrer">
{% else %}
<a href="{{ tool_url }}" target="_blank" rel="noopener noreferrer">
{% endif %}
<img src="{{ tool.image }}" class="tool-img"/>
</a>
<a href="{{ tool_url }}">
<div class="tool-caption">{{ tool.name }}</div>
</a>
<div class="tool-description">{{ tool.description }}</div>
</div>
{% endfor %}
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

View file

@ -1,4 +1,4 @@
[data-md-color-scheme="sqite"] {
[data-md-color-scheme="sqlite"] {
--md-primary-fg-color: #044A64;
--md-accent-fg-color: #0482C9;
@ -6,7 +6,7 @@
--md-default-bg-color: #F5F7F7;
}
[data-md-color-scheme="sqite-dark"] {
[data-md-color-scheme="sqlite-dark"] {
--md-primary-fg-color: #0482C9;
--md-accent-fg-color: #19758F;

View file

@ -8,9 +8,13 @@ import os
port_increments = {
"DOCS_URL": 0,
"FILEBROWSER_URL": 1,
"STATICFS_URL": 2,
"CRONICLE_URL": 3,
"UNGIT_URL": 4,
"IDE_URL": 5,
"TERMINAL_URL": 6,
"MC_URL": 7,
"HTOP_URL": 8,
"DBDESIGNER_URL": 9,
"PORT_8038": 18,
"PORT_8039": 19,

View file

@ -5,6 +5,7 @@
nav:
- Home: README.md
- My apps: pages/my-apps.md
- Admin: pages/admin.md
- About: about.md
- Docs: https://docs.alnoda.org/sqlite-workspace/

View file

@ -14,14 +14,6 @@ stdout_logfile = /var/log/dbdesigner/dbdesigner-stdout.log
logfile_maxbytes = 1024
[program:nocodb]
directory=/home/nocodb
command=/bin/sh -c "cd /home/nocodb && . env/bin/activate && npm start" # port is defined by PORT env var
stderr_logfile = /var/log/nocodb/nocodb-stderr.log
stdout_logfile = /var/log/nocodb/nocodb-stdout.log
logfile_maxbytes = 1024
[program:sqlite-web-nocodb]
directory=/home/project/
command=/bin/sh -c "sqlite_web /home/nocodb/noco.db --host 0.0.0.0 --port 8031 --no-browser -e /home/sqlite-extensions/fileio.so -e /home/sqlite-extensions/fuzzy.so -e /home/sqlite-extensions/ipaddr.so -e /home/sqlite-extensions/re.so -e /home/sqlite-extensions/spellfix.so -e /home/sqlite-extensions/stats.so -e /home/sqlite-extensions/text.so -e /home/sqlite-extensions/unicode.so -e /home/sqlite-extensions/uuid.so "