tREADME.md - docker2sh - Convert Dockerfiles into shell scripts
 (HTM) git clone https://git.parazyd.org/docker2sh
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       tREADME.md (1778B)
       ---
            1 # Docker 2 Shell
            2 
            3 This is a simple script to convert a
            4 [Dockerfile](https://docs.docker.com/engine/reference/builder/) to a
            5 shell script that can be executed to replicate the same commands on
            6 any machine or chroot.
            7 
            8 [![software by Dyne.org](https://files.dyne.org/software_by_dyne.png)](http://www.dyne.org)
            9 
           10 Its primary use is coupled with the [Devuan
           11 SDK](https://git.devuan.org/sdk) where we use Docker to prototype and
           12 then this script to "toast" the prototype inside a Devuan blend.
           13 
           14 Another use is inside the
           15 [Toaster.DO](https://github.com/DECODEproject/toaster.do) project.
           16 
           17 It can also export the Dockerfile to a JSON formatted AST.
           18 
           19 ```
           20 usage: docker2sh.py [-h] [-j] [-s] [--keeptabs] Dockerfile
           21 
           22 positional arguments:
           23   Dockerfile
           24 
           25 optional arguments:
           26   -h, --help   show this help message and exit
           27   -j, --json   output the data as a JSON structure
           28   -s, --shell  output the data as a shell script (default)
           29   --keeptabs   do not replace \t (tabs) in the strings
           30 ```
           31 
           32 # Licensing
           33 
           34 Docker2sh is Copyright (C) 2018 - 2019 by the Dyne.org Foundation
           35 
           36 Designed, written and maintained by Ivan J. and Denis Roio
           37 
           38 This source code is free software; you can redistribute it and/or
           39 modify it under the terms of the GNU Public License as published by
           40 the Free Software Foundation; either version 3 of the License, or
           41 (at your option) any later version.
           42 
           43 This source code is distributed in the hope that it will be useful,
           44 but WITHOUT ANY WARRANTY; without even the implied warranty of
           45 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  Please refer
           46 to the GNU Public License for more details.
           47 
           48 You should have received a copy of the GNU Public License along with
           49 this source code; if not, write to: Free Software Foundation, Inc.,
           50 675 Mass Ave, Cambridge, MA 02139, USA.
           51