This repository has been archived by the owner on Jul 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from markllama/master
Moved bash to bash-full - meaning to create a two-stage bash test
- Loading branch information
Showing
8 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"acKind": "ImageManifest", | ||
"acVersion": "0.5.1", | ||
"name": "fedora-rocketfiles/python", | ||
"labels": [ | ||
{ | ||
"name": "version", | ||
"value": "0.1.1" | ||
}, | ||
{ | ||
"name": "arch", | ||
"value": "amd64" | ||
}, | ||
{ | ||
"name": "os", | ||
"value": "linux" | ||
} | ||
], | ||
"app": { | ||
"exec": [ | ||
"/usr/bin/python", | ||
"/run.py" | ||
], | ||
"user": "0", | ||
"group": "0" | ||
}, | ||
"annotations": [ | ||
{ | ||
"name": "authors", | ||
"value": "Mark Lamourine <markllama@gmail.com>" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/sh | ||
# | ||
# Make a Rocket image tree for mongodb | ||
# | ||
SOURCE="" | ||
DEST=image/rootfs | ||
BINFILES="/usr/bin/python" | ||
PYLIBDIR=/usr/lib64/python2.7 | ||
PYLIBEXECDIR=${PYLIBDIR}/lib-dynload | ||
PYMODULES="site os posixpath stat genericpath warnings linecache types | ||
UserDict _abcoll abc _weakrefset copy_reg traceback sysconfig | ||
re sre_compile sre_parse sre_constants | ||
_sysconfigdata | ||
" | ||
|
||
mkdir -p ${DEST} | ||
mkdir -p ${DEST}/lib64 | ||
mkdir -p ${DEST}/usr/bin | ||
mkdir -p ${DEST}${PYLIBDIR} | ||
mkdir -p ${DEST}${PYLIBEXECDIR} | ||
# /usr/lib64/python2.7/plat-linux2 | ||
|
||
|
||
for BINFILE in ${BINFILES} | ||
do | ||
echo -n "${BINFILE} " && rpm -qf --qf "%{NAME}\n" ${BINFILE} | ||
cp ${BINFILE} ${DEST}${BINFILE} | ||
chmod a+x ${DEST}${BINFILE} | ||
SHAREDOBJS=$(ldd ${BINFILE} | awk '{print $1}' | grep -e ^/) | ||
for SOFILE in ${SHAREDOBJS} | ||
do | ||
echo -n "${SOFILE} " && rpm -qf --qf "%{NAME}\n" ${SOFILE} | ||
cp ${SOFILE} ${DEST}${SOFILE} | ||
done | ||
SHAREDOBJS=$(ldd ${BINFILE} | awk '{print $3}' | grep -e ^/lib) | ||
for SOFILE in ${SHAREDOBJS} | ||
do | ||
echo -n "${SOFILE} " && rpm -qf ${SOFILE} | ||
cp ${SOFILE} ${DEST}${SOFILE} | ||
done | ||
done | ||
|
||
for MODULE in ${PYMODULES} | ||
do | ||
PYCFILE=${PYLIBDIR}/${MODULE}.pyc | ||
echo -n "${PYCFILE} " && rpm -qf --qf "%{NAME}\n" ${PYCFILE} | ||
cp ${PYLIBDIR}/${MODULE}.pyc ${DEST}/${PYLIBDIR}/${MODULE}.pyc | ||
done | ||
|
||
#cp ${CONFIGFILE} ${DEST}${CONFIGFILE} | ||
cp run.py ${DEST}/run.py | ||
chmod a+x ${DEST}/run.py | ||
|
||
cp manifest image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/python | ||
|
||
if __name__ == "__main__": | ||
print "Hello" |