Skip to content

Commit

Permalink
added CK Ubuntu 18.04 Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
gfursin committed Jun 14, 2018
1 parent 7330373 commit 7ccd5d9
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* 2018.06.14 - added ck-ubuntu 18.04

* 2018.05.30 - added save and import commands for ACM Digital Library, etc (to support ReQuEST workflows)

* 2017.11.10 - added ubuntu 17.04
Expand Down
1 change: 1 addition & 0 deletions docker/.cm/alias-a-ck-ubuntu-18.04
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9dd97f6d00c460cd
1 change: 1 addition & 0 deletions docker/.cm/alias-u-9dd97f6d00c460cd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ck-ubuntu-18.04
1 change: 1 addition & 0 deletions docker/ck-ubuntu-18.04/.cm/desc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
21 changes: 21 additions & 0 deletions docker/ck-ubuntu-18.04/.cm/info.json
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"
}
16 changes: 16 additions & 0 deletions docker/ck-ubuntu-18.04/.cm/meta.json
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"
}
}
}
43 changes: 43 additions & 0 deletions docker/ck-ubuntu-18.04/Dockerfile
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

0 comments on commit 7ccd5d9

Please sign in to comment.