-
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.
- Loading branch information
Showing
7 changed files
with
85 additions
and
0 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
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 @@ | ||
9dd97f6d00c460cd |
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-18.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 @@ | ||
{} |
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,21 @@ | ||
{ | ||
"backup_data_uid": "9dd97f6d00c460cd", | ||
"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": "2018-06-14T17:33:52.897051", | ||
"license": "See CK LICENSE.txt for licensing details", | ||
"version": [ | ||
"1", | ||
"9", | ||
"4", | ||
"1" | ||
] | ||
}, | ||
"data_name": "ck-ubuntu-18.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,16 @@ | ||
{ | ||
"cmd": { | ||
"default": { | ||
"build": "-t $#CK_DOCKER_ORGANIZATION#$/$#CK_DOCKER_NAME#$ $#CK_PATH#$", | ||
"push": "$#CK_DOCKER_ORGANIZATION#$/$#CK_DOCKER_NAME#$", | ||
"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:18.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 bzip2 sudo wget zip | ||
|
||
# Install extra deps for imaging | ||
RUN apt-get install -y libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev python-pillow build-essential | ||
|
||
# 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 | ||
|
||
# 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} | ||
|
||
CMD bash |