ostis-apps / dockerized-ostis Goto Github PK
View Code? Open in Web Editor NEWOfficial Docker project for OSTIS
License: MIT License
Official Docker project for OSTIS
License: MIT License
Provide the ability to specify options for sc-machine build.
Check custom kb rewrite possibility for all versions and possibility to run standalone standard version from docker without run.sh
script
Better to use one container per service and use docker-compose to orchestrate these containers
Custom port instead of 8090 is currently not working properly for 0.6.0
It's probably going to be nice to add .bat
/.ps1
files for running images on Windows, because it can be problematic to run .sh
scripts on Windows by default
Specify run instructions for Linux, Windows and MacOS in Readme file
The build fails with the following error:
#13 11.02 running install_egg_info
#13 11.02 error: 'egg_base' must be a directory name (got `lib`)
#13 11.02
#13 11.02 ----------------------------------------
#13 11.11 Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-SaMKL9/sqlalchemy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ccPPwY-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-SaMKL9/sqlalchemy/
------
executor failed running [/bin/sh -c sudo pip install --default-timeout=100 tornado sqlalchemy redis==2.9 numpy configparser]: exit code: 1
Fortunately, it was easy to fix. The error about the directory name is caused by outdated setuptools, and several other packages (such as numpy) required a bdist_wheel
instruction in setuptools, which requires wheel to be installed
. Long story short, it's a 3-line PR that I will upload in a moment.
Specify run options with descriptions in Readme file
Check options to reduce total image size. It's probably needed to review all dependencies and remove redundant
In the current state, branch 0.6.0 doesn't build successfully, because it uses ostis-apps/sc-web as the source repository for sc-web, and this repo is not maintained anymore, thus, sc-web doesn't build with later versions of tornado (no version pinning is used). It was fixed in ostis-dev/sc-web.
It is wise to change the source repo to ostis-dev/sc-web, but this repo does not build with current implementation either, because dockerized-ostis/Dockerfile relies on python2 to install sc-web dependencies, while the scripts used in ostis-dev/sc-web (0.6.0) have actually been rewritten to python3.
I've cooked up a PR resolving this issue, please see #36.
Set up automated builds in docker-hub.
Rebuild images after push
Remove problem solver folder for all branches as it's not a part of docker
The problem: after poking around with the project I've noticed that every time I use run.sh
and stop it, it leaves a container, which is probably an undesired behavior since we create a new instance every time we launch run.sh
Solutions:
--rm
flag, which should delete the container after exit. It plays well with our use case I believe, and it is also how ephemeral Docker containers are supposed to work work.docker start
, if it has any tangible advantages over the first way.For new and old interface version:
Move adjust configuration options to environment variables for docker run
command
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.