Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dyne/docker2sh
Convert a Dockerfile to a shell script
https://github.com/dyne/docker2sh
conversion docker dockerfile shell shell-script
Last synced: about 1 month ago
JSON representation
Convert a Dockerfile to a shell script
- Host: GitHub
- URL: https://github.com/dyne/docker2sh
- Owner: dyne
- License: gpl-3.0
- Created: 2019-11-20T12:56:01.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T22:28:46.000Z (about 5 years ago)
- Last Synced: 2024-05-01T09:46:57.541Z (8 months ago)
- Topics: conversion, docker, dockerfile, shell, shell-script
- Language: Python
- Size: 25.4 KB
- Stars: 14
- Watchers: 9
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Docker 2 Shell
This is a simple script to convert a
[Dockerfile](https://docs.docker.com/engine/reference/builder/) to a
shell script that can be executed to replicate the same commands on
any machine or chroot.[![software by Dyne.org](https://files.dyne.org/software_by_dyne.png)](http://www.dyne.org)
Its primary use is coupled with the [Devuan
SDK](https://git.devuan.org/sdk) where we use Docker to prototype and
then this script to "toast" the prototype inside a Devuan blend.Another use is inside the
[Toaster.DO](https://github.com/DECODEproject/toaster.do) project.It can also export the Dockerfile to a JSON formatted AST.
```
usage: docker2sh.py [-h] [-j] [-s] [--keeptabs] Dockerfilepositional arguments:
Dockerfileoptional arguments:
-h, --help show this help message and exit
-j, --json output the data as a JSON structure
-s, --shell output the data as a shell script (default)
--keeptabs do not replace \t (tabs) in the strings
```# Licensing
Docker2sh is Copyright (C) 2018 - 2019 by the Dyne.org Foundation
Designed, written and maintained by Ivan J. and Denis Roio
This source code is free software; you can redistribute it and/or
modify it under the terms of the GNU Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.This source code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please refer
to the GNU Public License for more details.You should have received a copy of the GNU Public License along with
this source code; if not, write to: Free Software Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139, USA.