Commit graph

40 commits

Author SHA1 Message Date
Fabio Manganiello 4dd713ffd2
Refactored Platydock and Platyvenv.
The two scripts now share the same command interface, behaviour and base
class.

Also, Platydock now builds a Docker image instead of just printing a
Dockerfile, unless the `--print` option is passed.
2023-08-31 01:16:56 +02:00
Fabio Manganiello ce68250b4d
Refactor/documentation round for platydock. 2023-08-22 02:49:05 +02:00
Fabio Manganiello 700b8e1d16
Added header and footer to generated Dockerfile. 2023-08-20 14:05:22 +02:00
Fabio Manganiello 5efcae64c1
Better Dockerfile logic to retrieve sources.
If the /install folder on the container doesn't contain a copy of the
source files, then the git repository will be cloned under that folder.

The user can specify via `-r/--ref` option which tag/branch/commit they
want to install.
2023-08-20 13:31:13 +02:00
Fabio Manganiello 28ba042810
If no configuration file is passed to platydock generate a minimal Dockerfile. 2023-08-20 03:36:34 +02:00
Fabio Manganiello 199ac5f0f7
New way of managing installation scripts and dependencies.
Created `platypush/install` folder that contains:

- Dockerfiles for the supported distros
- Lists of required base dependencies for the supported distros
- Install and run scripts
- Added Debian to supported base images
2023-08-20 02:28:10 +02:00
Fabio Manganiello 71c5291190
Refactored the interface of Platydock and manifest utils. 2023-08-19 22:46:37 +02:00
Fabio Manganiello 980af16984
Rewritten platydock utility.
Platydock now will only print out a Dockerfile given a configuration
file.

No more maintaining the state of containers, storing separate workdirs
and configuration directories etc. - that introduced way too much
overhead over Docker.
2023-08-19 13:47:43 +02:00
Fabio Manganiello ec64b0ef8b
Added --device_id command line option. 2023-08-17 23:16:24 +02:00
Fabio Manganiello 15a34ebac9
Upgraded Docker base image.
Debian base image bumped from Bullseye -> Bookworm.
2023-07-23 17:25:52 +02:00
Fabio Manganiello 66981bd00b
Updated email addresses and black'd some old source files. 2023-07-22 23:02:44 +02:00
Fabio Manganiello 3fc622e296
Remove legacy references to the websocket HTTP port and backend in platydock. 2023-05-08 12:25:09 +02:00
Fabio Manganiello f9b0bc905e
Migrated websocket service.
The websocket service is no longer provided by a different service,
controlled by a different thread running on another port.

Instead, it's now exposed directly over Flask routes, using
WSGI+eventlet+simple_websocket.

Also, the SSL context options have been removed from `backend.http`, for
sake of simplicity. If you want to enable SSL, you can serve Platypush
through a reverse proxy like nginx.
2023-05-07 12:08:28 +02:00
Fabio Manganiello f478e1ff40
Added libcap-dev to build requirements for Ubuntu Docker images 2021-11-28 22:40:04 +01:00
Fabio Manganiello 3bfc5b83ef Moved to manifest files for describing plugins and backends and their dependencies 2021-09-16 17:53:40 +02:00
Fabio Manganiello db8ea33b68 Removed deprecated setup.py web_build command from platydock [see #195] 2021-07-05 20:07:55 +02:00
Fabio Manganiello b57a241f52 Changed base URL to platypush.tech 2021-02-05 23:18:18 +01:00
Fabio Manganiello 8d203723da Added -a option for platydock to attach to the instance after booting it up 2020-02-03 16:57:40 +01:00
Fabio Manganiello 96bdefdaf3 Use Debian Buster image instead of Alpine for docker images 2020-02-03 16:50:51 +01:00
Fabio Manganiello 20feedaf07 Use --no-cache-dir for pip installations in Dockerfile 2020-02-03 15:06:16 +00:00
Fabio Manganiello 55dd7b0d53 Don't generate a startup script in docker - instead add /app to PYTHONPATH 2019-12-02 09:17:04 +01:00
Fabio Manganiello 5f54eaa108 Only python setup.py web_build is needed in Docker 2019-12-02 01:18:17 +01:00
Fabio Manganiello a1f3ff3ae5 Forgotten newlines 2019-12-02 01:13:57 +01:00
Fabio Manganiello e9df6768f9 Use a startup script to launch platypush from the /app folder in docker 2019-12-02 01:12:10 +01:00
Fabio Manganiello 93a5ffc755 git clone in Dockerfile must be recursive 2019-12-02 01:03:33 +01:00
Fabio Manganiello 93bb71bef7 Fixed extra newline 2019-12-02 00:59:25 +01:00
Fabio Manganiello e751325886 libffi-dev, libjpeg-turbo-dev and zlib-dev are also required to build some of the recommended dependencies 2019-12-02 00:56:22 +01:00
Fabio Manganiello f08be1f3c1 The generated command should all be on one line 2019-12-02 00:51:56 +01:00
Fabio Manganiello 3a347496d3 Fixed git clone && cd dance in generated Dockerfile 2019-12-02 00:49:19 +01:00
Fabio Manganiello 909695e070 git clones to /app/platypush 2019-12-02 00:43:37 +01:00
Fabio Manganiello 47f7a36e6e Prevent pending continuation line in generated Dockerfile 2019-12-02 00:41:48 +01:00
Fabio Manganiello de3bb48493 mkdir -p /app in generated Dockerfile 2019-12-02 00:37:34 +01:00
Fabio Manganiello 3ac9ecbd8f Do git clone and explicit pip install -r requirements.txt in platydock to make sure that all the recommended dependencies are installed 2019-12-02 00:34:32 +01:00
Fabio Manganiello fbe4f9494c No need to run pip install pyScss in setup.py if it's not available 2019-12-02 00:24:28 +01:00
Fabio Manganiello f8d3ea5197 Refactored platydock and platyvenv 2019-12-01 22:27:54 +01:00
Fabio Manganiello dcb4a36959 Replaced os.environ['HOME'] with os.path.expanduser('~') (Windows compatibility)
Solves #74
2019-07-29 00:03:01 +02:00
Fabio Manganiello a1f640ce0a Added support for config include files to Docker images too 2018-12-20 01:04:28 +01:00
Fabio Manganiello 44d24b42d1 Force python3 on the Dockerfile CMD 2018-12-18 22:31:24 +01:00
Fabio Manganiello 949d9cd619 Fixed platydock rm command 2018-12-19 02:22:10 +01:00
Fabio Manganiello 73d7441d26 Added platydock, a helper to manage Platypush instances as Docker containers 2018-12-19 02:08:13 +01:00