Build docker image
docker build -t <image-name:tag> <path|.>
Remove all running containers
docker rm $(docker ps -a -q)
$root = "http://".$_SERVER['HTTP_HOST']; | |
$root .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']); | |
$config['base_url'] = "$root"; |
FROM gliderlabs/alpine:3.3 | |
COPY myawesomescript /bin/myawesomescript | |
COPY root /var/spool/cron/crontabs/root | |
RUN chmod +x /bin/myawesomescript | |
CMD crond -l 2 -f |
#!/bin/bash | |
# Original script from https://github.com/gregvw/amd_sdk/ | |
# Location from which get nonce and file name from | |
URL="http://developer.amd.com/tools-and-sdks/opencl-zone/opencl-tools-sdks/amd-accelerated-parallel-processing-app-sdk/" | |
URLDOWN="http://developer.amd.com/amd-license-agreement-appsdk/" | |
NONCE1_STRING='name="amd_developer_central_downloads_page_nonce"' | |
FILE_STRING='name="f"' |
#!/bin/bash | |
# create custom bootable iso for CentOS 7 with kickstart | |
if [ $# -lt 2 ] | |
then | |
echo "Usage1: $0 path2iso path2kickstart" | |
exit 1 | |
else | |
if [ ! -f $1 ] | |
then |