-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
major update of the docker module (adding build and run functions)
- Loading branch information
Showing
30 changed files
with
485 additions
and
49 deletions.
There are no files selected for viewing
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 @@ | ||
*.pyc | ||
*tmp/ | ||
*.ipynb_checkpoints/ | ||
program/pluton-blas-*/tmp-ck-* |
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,14 @@ | ||
======================================================================= | ||
N: Anton Lokhmotov | ||
E: [email protected] | ||
H: https://www.hipeac.net/~anton | ||
O: dividiti, UK | ||
C: | ||
W: | ||
======================================================================= | ||
N: Grigori Fursin | ||
E: [email protected] | ||
H: http://fursin.net/research | ||
O: dividiti, UK / cTuning foundation, France | ||
C: | ||
W: |
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 @@ | ||
* 2016.06.08 - major update of the docker module (adding build and run functions) |
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,15 @@ | ||
Acknowledgments: | ||
|
||
N: Anton Lokhmotov | ||
E: [email protected] | ||
H: https://www.hipeac.net/~anton | ||
O: dividiti | ||
C: first implementation | ||
W: | ||
|
||
N: Grigori Fursin | ||
E: [email protected] | ||
H: http://fursin.net | ||
O: cTuning foundation | ||
C: unification and extension (build and run) | ||
W: |
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 @@ | ||
(C)opyright 2016 cTuning foundation |
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,28 @@ | ||
Copyright (c) cTuning Foundation | ||
All rights reserved | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of Grigori Fursin and CTUNING FOUNDATION | ||
nor the names of its contributors may be used to endorse | ||
or promote products derived from this software without | ||
specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ab4db058845a3e02 |
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 @@ | ||
74b62bf7222a67bd |
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 |
---|---|---|
@@ -1 +1 @@ | ||
ubuntu-16.04 | ||
ck-ubuntu-16.04 |
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 @@ | ||
ck-ubuntu-16.04-interactive-report |
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 @@ | ||
ck-ubuntu-16.04-crowdtune-gcc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"backup_data_uid": "ab4db058845a3e02", | ||
"backup_module_uid": "88eef0cd8c43b68a", | ||
"backup_module_uoa": "docker", | ||
"control": { | ||
"author": "Grigori Fursin", | ||
"author_email": "[email protected]", | ||
"author_webpage": "http://fursin.net", | ||
"copyright": "See CK COPYRIGHT.txt for copyright details", | ||
"engine": "CK", | ||
"iso_datetime": "2016-06-09T12:49:00.164698", | ||
"license": "See CK LICENSE.txt for licensing details", | ||
"version": [ | ||
"1", | ||
"7", | ||
"2dev" | ||
] | ||
}, | ||
"data_name": "ubuntu-16.04-crowdtune-gcc" | ||
} |
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,8 @@ | ||
{ | ||
"cmd": { | ||
"default": { | ||
"build": "-t $#CK_DOCKER_ORGANIZATION#$/$#CK_DOCKER_NAME#$ $#CK_PATH#$", | ||
"run": "--rm -it $#CK_DOCKER_ORGANIZATION#$/$#CK_DOCKER_NAME#$" | ||
} | ||
} | ||
} |
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,32 @@ | ||
FROM ubuntu:16.04 | ||
MAINTAINER Grigori Fursin <[email protected]> | ||
|
||
# Install standard packages. | ||
RUN apt-get update && apt-get install -y \ | ||
python-all \ | ||
git | ||
|
||
# Install extra deps for imaging | ||
RUN apt-get install -y libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev python-pillow | ||
|
||
# Install GCC to crowdtune | ||
RUN apt-get install -y gcc | ||
|
||
# Install the core Collective Knowledge (CK) module. | ||
ENV CK_ROOT=/ck-master \ | ||
CK_REPOS=/CK \ | ||
CK_TOOLS=/CK-TOOLS \ | ||
PATH=${CK_ROOT}/bin:${PATH} | ||
|
||
RUN mkdir -p ${CK_ROOT} ${CK_REPOS} ${CK_TOOLS} | ||
RUN git clone https://github.com/ctuning/ck.git ${CK_ROOT} | ||
RUN cd ${CK_ROOT} && python setup.py install && python -c "import ck.kernel as ck" | ||
|
||
# Install other CK modules. | ||
RUN ck pull repo:ck-web | ||
RUN ck pull repo:ck-crowdtuning | ||
|
||
# Start the CK web service. | ||
# Note, that container will have it's own IP, | ||
# that's why we need `hostname -i` below | ||
CMD ck crowdsource program.optimization --gcc --user=docker --quiet |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"backup_data_uid": "74b62bf7222a67bd", | ||
"backup_module_uid": "88eef0cd8c43b68a", | ||
"backup_module_uoa": "docker", | ||
"control": { | ||
"author": "Grigori Fursin", | ||
"author_email": "[email protected]", | ||
"author_webpage": "http://fursin.net", | ||
"copyright": "See CK COPYRIGHT.txt for copyright details", | ||
"engine": "CK", | ||
"iso_datetime": "2016-06-09T12:43:40.561942", | ||
"license": "See CK LICENSE.txt for licensing details", | ||
"version": [ | ||
"1", | ||
"7", | ||
"2dev" | ||
] | ||
}, | ||
"data_name": "ubuntu-16.04-interactive-report" | ||
} |
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,15 @@ | ||
{ | ||
"cmd": { | ||
"default": { | ||
"build": "-t $#CK_DOCKER_ORGANIZATION#$/$#CK_DOCKER_NAME#$ $#CK_PATH#$", | ||
"run": "--rm -it $#CK_DOCKER_ORGANIZATION#$/$#CK_DOCKER_NAME#$", | ||
"run_extra_cmd": "--env CK_HOST=0.0.0.0 --env WFE_HOST=localhost --env CK_PORT=$#CK_PORT#$ --env WFE_PORT=$#CK_PORT#$ -p $#CK_PORT#$:$#CK_PORT#$" | ||
} | ||
}, | ||
"convert_input_to_vars": { | ||
"port": { | ||
"default": "3344", | ||
"key": "CK_PORT" | ||
} | ||
} | ||
} |
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,43 @@ | ||
FROM ubuntu:16.04 | ||
MAINTAINER Anton Lokhmotov <[email protected]> | ||
MAINTAINER Grigori Fursin <[email protected]> | ||
|
||
# Install standard packages. | ||
RUN apt-get update && apt-get install -y \ | ||
python-all \ | ||
git | ||
|
||
# Install extra deps for imaging | ||
RUN apt-get install -y libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev python-pillow | ||
|
||
# Install the core Collective Knowledge (CK) module. | ||
ENV CK_ROOT=/ck-master \ | ||
CK_REPOS=/CK \ | ||
CK_TOOLS=/CK-TOOLS \ | ||
PATH=${CK_ROOT}/bin:${PATH} | ||
|
||
RUN mkdir -p ${CK_ROOT} ${CK_REPOS} ${CK_TOOLS} | ||
RUN git clone https://github.com/ctuning/ck.git ${CK_ROOT} | ||
RUN cd ${CK_ROOT} && python setup.py install && python -c "import ck.kernel as ck" | ||
|
||
# Install other CK modules. | ||
RUN ck pull repo:ck-web | ||
RUN ck pull repo:reproduce-ck-paper | ||
RUN ck pull repo:reproduce-pamela-project | ||
|
||
# Set the CK web service defaults. | ||
ENV CK_PORT=3344 \ | ||
WFE_PORT=3344 | ||
|
||
# Expose CK port | ||
EXPOSE ${CK_PORT} | ||
|
||
# Start the CK web service. | ||
# Note, that container will have it's own IP, | ||
# that's why we need `hostname -i` below | ||
CMD export CK_LOCAL_HOST=`hostname -i` ; \ | ||
if [ "${CK_HOST}" = "" ]; then export CK_HOST=$CK_LOCAL_HOST ; fi ; \ | ||
if [ "${WFE_HOST}" = "" ]; then export WFE_HOST=$CK_LOCAL_HOST ; fi ; \ | ||
ck start web \ | ||
--host=${CK_HOST} --port=${CK_PORT} \ | ||
--wfe_host=${WFE_HOST} --wfe_port=${WFE_PORT} |
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 @@ | ||
{} |
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,20 @@ | ||
{ | ||
"backup_data_uid": "2ad0194934a99875", | ||
"backup_module_uid": "88eef0cd8c43b68a", | ||
"backup_module_uoa": "docker", | ||
"control": { | ||
"author": "Grigori Fursin", | ||
"author_email": "[email protected]", | ||
"author_webpage": "http://fursin.net", | ||
"copyright": "See CK COPYRIGHT.txt for copyright details", | ||
"engine": "CK", | ||
"iso_datetime": "2016-05-26T16:14:49.133000", | ||
"license": "See CK LICENSE.txt for licensing details", | ||
"version": [ | ||
"1", | ||
"7", | ||
"2dev" | ||
] | ||
}, | ||
"data_name": "ubuntu-16.04" | ||
} |
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,15 @@ | ||
{ | ||
"cmd": { | ||
"default": { | ||
"build": "-t $#CK_DOCKER_ORGANIZATION#$/$#CK_DOCKER_NAME#$ $#CK_PATH#$", | ||
"run": "--rm -it $#CK_DOCKER_ORGANIZATION#$/$#CK_DOCKER_NAME#$", | ||
"run_extra_cmd": "--env CK_HOST=0.0.0.0 --env WFE_HOST=localhost --env CK_PORT=$#CK_PORT#$ --env WFE_PORT=$#CK_PORT#$ -p $#CK_PORT#$:$#CK_PORT#$" | ||
} | ||
}, | ||
"convert_input_to_vars": { | ||
"port": { | ||
"default": "3344", | ||
"key": "CK_PORT" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,15 +1,19 @@ | ||
FROM ubuntu:16.04 | ||
MAINTAINER Anton Lokhmotov <[email protected]> | ||
MAINTAINER Grigori Fursin <[email protected]> | ||
|
||
# Install standard packages. | ||
RUN apt-get update && apt-get install -y \ | ||
python-all \ | ||
git | ||
|
||
# Install extra deps for imaging | ||
RUN apt-get install -y libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev python-pillow | ||
|
||
# Install the core Collective Knowledge (CK) module. | ||
ENV CK_ROOT=/CK \ | ||
CK_REPOS=/CK_REPOS \ | ||
CK_TOOLS=/CK_TOOLS \ | ||
ENV CK_ROOT=/ck-master \ | ||
CK_REPOS=/CK \ | ||
CK_TOOLS=/CK-TOOLS \ | ||
PATH=${CK_ROOT}/bin:${PATH} | ||
|
||
RUN mkdir -p ${CK_ROOT} ${CK_REPOS} ${CK_TOOLS} | ||
|
@@ -21,13 +25,17 @@ RUN ck pull repo:ck-web | |
|
||
# Set the CK web service defaults. | ||
ENV CK_PORT=3344 \ | ||
WFE_PORT=3344 \ | ||
WFE_HOST=localhost | ||
WFE_PORT=3344 | ||
|
||
# Listen on the CK port. | ||
# Expose CK port | ||
EXPOSE ${CK_PORT} | ||
|
||
# Start the CK web service. | ||
CMD ck start web \ | ||
--host=`hostname -i` --port=${CK_PORT} \ | ||
# Note, that container will have it's own IP, | ||
# that's why we need `hostname -i` below | ||
CMD export CK_LOCAL_HOST=`hostname -i` ; \ | ||
if [ "${CK_HOST}" = "" ]; then export CK_HOST=$CK_LOCAL_HOST ; fi ; \ | ||
if [ "${WFE_HOST}" = "" ]; then export WFE_HOST=$CK_LOCAL_HOST ; fi ; \ | ||
ck start web \ | ||
--host=${CK_HOST} --port=${CK_PORT} \ | ||
--wfe_host=${WFE_HOST} --wfe_port=${WFE_PORT} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
{ | ||
"backup_data_uid": "88eef0cd8c43b68a", | ||
"backup_module_uid": "032630d041b4fd8a", | ||
"backup_module_uoa": "module", | ||
"backup_data_uid": "88eef0cd8c43b68a", | ||
"backup_module_uid": "032630d041b4fd8a", | ||
"backup_module_uoa": "module", | ||
"control": { | ||
"author": "Grigori Fursin", | ||
"author_email": "[email protected]", | ||
"author_webpage": "http://fursin.net", | ||
"copyright": "See CK COPYRIGHT.txt for copyright details", | ||
"engine": "CK", | ||
"iso_datetime": "2016-05-26T16:14:35.436000", | ||
"license": "See CK LICENSE.txt for licensing details", | ||
"author": "Grigori Fursin", | ||
"author_email": "[email protected]", | ||
"author_webpage": "http://fursin.net", | ||
"copyright": "See CK COPYRIGHT.txt for copyright details", | ||
"engine": "CK", | ||
"iso_datetime": "2016-05-26T16:14:35.436000", | ||
"license": "See CK LICENSE.txt for licensing details", | ||
"version": [ | ||
"1", | ||
"7", | ||
"1", | ||
"7", | ||
"2dev" | ||
] | ||
}, | ||
}, | ||
"data_name": "docker" | ||
} |
Oops, something went wrong.