Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Dump container content

[root@kts-controller-01 kff]# docker ps
CONTAINER ID        IMAGE                    COMMAND                  CREATED             STATUS              PORTS               NAMES
dbcf2479bf6e        kffm:2018-06-22-125853   "/bin/sh -c ./star..."   5 minutes ago       Up 3 minutes                            kffm
[root@kts-controller-01 kff]# ls
[root@kts-controller-01 kff]# docker cp dbcf2479bf6e:/ .


#!/bin/bash

JAR=$1
path=`pwd`
unzip -d $JAR.tmp $JAR
pushd $JAR.tmp
for f in `find . -name '*.class'`; do
    out=`echo $f | cut -d. -f-2`
    java -jar $path/cfr_0_130.jar $f > $out.java
done
popd


Reference

http://www.benf.org/other/cfr/


  • No labels