You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks, nice idea. Where this image will be pushed? I don't know much about sharing docker images
Regarding the build tool - at the moment the whole process is in Travis CI: python and js tests, js build, whole package build
I'll take a look at Travis-ci configuration if possible. Since it's an open
source project, travis ci should work.
Also since it's an open source project, our docker image should be hosted
on docker hub. I want you to make an account on docker hub, create
organization and invite me. My docker username is shinebayar. Then our
docker image will be available as under that organization's repository.
On 01:32, Fri, Jan 25, 2019 Iaroslav Shepilov ***@***.*** wrote:
Hi, thanks, nice idea. Where this image will be pushed? I don't know much
about sharing docker images
Regarding the build tool - at the moment the whole process is in Travis
CI: python and js tests, js build, whole package build
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC8sZgXWOpt7nOp-lisucQthQGgcA2m5ks5vGe46gaJpZM4aRW5o>
.
Hi @shinebayar-g after some struggling I created an organization on docker hub and added you to a team. I believe I also have to create a repository and grant you permissions to it, right?
Hi, I just checked docker repository. Looks like I don't have permission to create repo. Please create repository and add me. I'll test permissions to push, tag and delete.
Added. Also I added automatic builds there: so whenever a commit to master happens, it will build :dev image based on Dockerfile. So there is no need to update any CI tool, just add a Dockerfile
Hey @bugy
I created a new issue for one of my docker problems. Linked it here, please let me know if you need me to create the issue here.
Link to issue:
Hi @tristanlatr, thanks for reporting! The thing is, that it's not a required dependency: people can use Script server without auth at all, or with google oauth. And to make the image small, I ignored all optional dependencies
However, I'm thinking about making a "fat" image, in addition to a minimal one. With all the optional dependencies + some linux utilities out of the box. But that's not coming in the nearest week.
I too was semi-expecting the ldap3 package to be included, since it seemed supported out of the box...and semi-expecting it to be missing since missing packages are a classic Python problem.
I don't think required components for features an app ships with - even if not enabled by default - should be left out of an image. Sure, you can install it in the container (assuming Firewall rules don't make that a hassle) or create a custom image. And it's perfectly normal to expect to install requirements when running script-server 'bare metal'. But with images it's something else imo. Might be a matter of taste, what images should come with - especially where Python is involved and its modular nature. But from experience, unless otherwise noted in the image name or tag, I expect images to be complete for all supported features. If not, then the image is more of a thin or slim image, rather than a full featured image.
My two cents on whether to optimize image sizes or not :)
How many more packages/bytes would need to be included in a full featured image?
Hi @SaberStrat it makes sense :) Either current image can be called slim or there could be another image like all-deps, not a big difference as for me.
I moved it to a separate ticket #637, because I forgot about this already.
Unless you're running the Script server container, you should be able to
just install them at the shell.
Since pip no longer has built-in search functionality, it would have to
either run as admin, which scriptserver probably isn't, or it would run as
the user scriptserver runs as. And in order to develop the script you're
running in the first place, you'd have had to already installed the modules
before you configured scriptserver to run the script through the GUI.
If you really want to pip install things from the GUI, you can probably
write a script in and of itself that wraps pip. Or just configure
scriptserver to run pip with your preferred arguments.
On Tue, Sep 12, 2023, 11:18 AM Rob Hulley ***@***.***> wrote:
would it be possible to add maybe something to the admin page where we can
pip install stuff?
otherwise is the only way to run python scripts that require external
modules to create a bespoke image?
—
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3HBI3UIVUOXZG6GXQCFLQLX2B4NVANCNFSM4GSFNZUA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
Yeah I'm running it in docker. If running pip from a script works I can work with that for some reason I just thought it wouldn't.
In the meantime I've got a dockefile working with compose to pip install my requirements file during creation but I don't really want to recreate the container every time a script needs a module.
You'd probably have to try execing into your container to see if you can
install pip and run it from the CLI, but if you can, writing a wrapper
script is probably the easiest, if not just invoking pip directly.
A wrapper could be smart enough to go parse the includes in your scripts
configured under scriptserver (parse the runners directory to find tany
invoked python scripts, then grep out includes in those scripts). Then you
could just use a single no-parameters script to "go pip-install any
includes from any python script I'm running in the container".
On Tue, Sep 12, 2023, 5:12 PM Rob Hulley ***@***.***> wrote:
Yeah I'm running it in docker. If running pip from a script works I can
work with that for some reason I just thought it wouldn't.
In the meantime I've got a dockefile working with compose to pip install
my requirements file during creation but I don't really want to recreate
the container every time a script needs a module.
—
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3HBI3XEYYQBM6ZACI44FP3X2DF4XANCNFSM4GSFNZUA>
.
You are receiving this because you commented.Message ID:
***@***.***>
Activity
bugy commentedon Jan 24, 2019
Hi, thanks, nice idea. Where this image will be pushed? I don't know much about sharing docker images
Regarding the build tool - at the moment the whole process is in Travis CI: python and js tests, js build, whole package build
shinebayar-g commentedon Jan 24, 2019
bugy commentedon Jan 24, 2019
Hi @shinebayar-g after some struggling I created an organization on docker hub and added you to a team. I believe I also have to create a repository and grant you permissions to it, right?
shinebayar-g commentedon Jan 25, 2019
Hi, I just checked docker repository. Looks like I don't have permission to create repo. Please create repository and add me. I'll test permissions to push, tag and delete.
bugy commentedon Jan 25, 2019
Added. Also I added automatic builds there: so whenever a commit to master happens, it will build :dev image based on Dockerfile. So there is no need to update any CI tool, just add a Dockerfile
shinebayar-g commentedon Jan 25, 2019
Great.
#171 added docker build to CI
#171 fixed yml syntax issue
#171 fixed cleanup issue for docker build
bugy commentedon Feb 7, 2019
Now images are pushed. Still to be done:
#171 added automatic release versioning
22 remaining items
shr207-iMerit commentedon Nov 4, 2021
Hey @bugy
I created a new issue for one of my docker problems. Linked it here, please let me know if you need me to create the issue here.
Link to issue:
hiteshkumarthakur commentedon Jan 10, 2023
I had write a medium article for the installation & usage.
https://medium.com/@hitesh.thakur/script-server-gui-for-scripts-how-to-install-use-it-via-docker-51774d35f6a9
bugy commentedon Jan 10, 2023
oh nice, thank ou @hiteshkumarthakur !
SaberStrat commentedon Mar 13, 2023
I too was semi-expecting the ldap3 package to be included, since it seemed supported out of the box...and semi-expecting it to be missing since missing packages are a classic Python problem.
I don't think required components for features an app ships with - even if not enabled by default - should be left out of an image. Sure, you can install it in the container (assuming Firewall rules don't make that a hassle) or create a custom image. And it's perfectly normal to expect to install requirements when running script-server 'bare metal'. But with images it's something else imo. Might be a matter of taste, what images should come with - especially where Python is involved and its modular nature. But from experience, unless otherwise noted in the image name or tag, I expect images to be complete for all supported features. If not, then the image is more of a
thinorslimimage, rather than a full featured image.My two cents on whether to optimize image sizes or not :)
How many more packages/bytes would need to be included in a full featured image?
bugy commentedon Mar 13, 2023
Hi @SaberStrat it makes sense :) Either current image can be called
slimor there could be another image likeall-deps, not a big difference as for me.I moved it to a separate ticket #637, because I forgot about this already.
hulleyrob commentedon Sep 12, 2023
would it be possible to add maybe something to the admin page where we can pip install stuff?
otherwise is the only way to run python scripts that require external modules to create a bespoke image?
MNeill73 commentedon Sep 12, 2023
hulleyrob commentedon Sep 12, 2023
Yeah I'm running it in docker. If running pip from a script works I can work with that for some reason I just thought it wouldn't.
In the meantime I've got a dockefile working with compose to pip install my requirements file during creation but I don't really want to recreate the container every time a script needs a module.
MNeill73 commentedon Sep 12, 2023
hulleyrob commentedon Sep 12, 2023
Yeah shelling in and doing it works fine that was the first thing I tried just seemed like I was missing something obvious and easier.
gtuxyco commentedon Oct 23, 2023
Are there plans to make images for ARM?
I was trying to use in a raspberry pi, but after a while I noticed the docker image is amd64
dreness commentedon Nov 11, 2023
There is an arm64 image currently published under a 'dev' tag, which is built from master - so perhaps not yet 'stable'.
https://hub.docker.com/r/bugy/script-server/tags
peterpepo commentedon Nov 30, 2023
I would like to run following script.
Do I have to run directly on host, or can I spin up docker image?
jdownloader_enable.sh
sudo systemctl daemon-reload sudo systemctl start jdownloader.service sudo systemctl enable jdownloader.serviceciscoivan commentedon Feb 29, 2024
I'm having some issues with deployment
[root@localhost conf.json]# docker logs bcaeada23707
2024-02-29 03:28:08,088 [root.INFO] Starting Script Server, v1.18.0
2024-02-29 03:28:08,090 [migrations.INFO] Applying migration add_execution_info_to_log_files
2024-02-29 03:28:08,090 [migrations.INFO] Applying migration introduce_access_config
Traceback (most recent call last):
File "/app/launcher.py", line 11, in
main.main()
File "/app/src/main.py", line 86, in main
migrations.migrate.migrate(TEMP_FOLDER, CONFIG_FOLDER, SERVER_CONF_PATH, LOG_FOLDER)
File "/app/src/migrations/migrate.py", line 388, in migrate
migration_descriptor.callable(context)
File "/app/src/migrations/migrate.py", line 210, in __introduce_access_config
content = file_utils.read_file(file_path)
File "/app/src/utils/file_utils.py", line 63, in read_file
with open(path, mode, newline=newline) as f:
IsADirectoryError: [Errno 21] Is a directory: '/app/conf/conf.json'
[root@localhost conf.json]#