SlideShare a Scribd company logo
1. Docker CKAN
SOIL CKAN
ISIT
1. CKAN
2. Docker CKAN
3. CKAN
4. CKAN
CKAN
š
š
š https://ckan.org/
š BODIK ODCS
š http://odcs.bodik.jp/
CKAN
JavaScript
Python
Web (Pylons, Flask)
SQLAlchemy (ORM)
PostgreSQL
(RDBMS)
Solr ( ) Redis (KVS)
RQ (Job Queue)
DataPusher
DataStore
DataPusher
JQuery Bootstrap
Web
API
Docker
VMware
Wikipedia https://ja.wikipedia.org/wiki/Docker
Docker Docker
https://knowledge.sakura.ad.jp/13265/
OS OS
Hypervisor Docker Engine
OS
/
/ /
OS
/
Docker Compose
š Docker
š YAML
https://docs.docker.com/compose/overview/
A
B
C
A
B
C
docker-compose.yml
docker-compose up
version: '3’
services:
web:
build: .
ports:
- “5000:5000”
volumes:
- logvolume01:/var/log
links:
- redis
redis:
image: redis
volumes:
logvolume01: {}
docker-compose.yml
Docker Compose CKAN
š CKAN
š
š
CKAN
Web
PostgreSQL Solr Redis DataPusher
Dockerfile docker-
compose.yml
docker-compose up
CKAN
1. Docker, Docker Compose, git
2. .env
š CKAN_SITE_URL
3. Docker Compose
$ git clone https://github.com/ISITBODIK/docker-bodik.git
$ cd docker-bodik
$ cp env.example .env
$ docker-compose –f docker-compose.dev.yml up
CKAN_SITE_URL=http://seminar0.bodic.org:5000
docker-compose.dev.yml
š https://github.com/ISITBODIK/docker-bodik/blob/master/docker-compose.dev.yml
CKAN
š production.ini
š
š /etc/ckan
š
š envvars
š https://github.com/okfn/ckanext-envvars
š CKAN
š docker-compose.yml .envckan.site_url=http://localhost:5000
CKAN_SITE_URL=http://localhost:5000
https://github.com/ckan/ckan/blob/master/
ckan/config/deployment.ini_tmpl
https://github.com/ISITBODIK/docker-
bodik/blob/master/env.example
CKAN
1. CKAN
š PyPI pip
2. CKAN production.ini
š
3.
$ pip install -r requirements.txt && pip install –editable .
ckan.plugins = stats text_view image_view recline_view datastore
CKAN
1. ONI docker
š docker-compose Ctrl-C
2. .env
3. docker-compose
4.
$ cd ~/docker-bodik/ckanext
$ git clone https://github.com/ISITBODIK/ckanext-record.git
CKAN__PLUGINS=image_view text_view recline_view datastore datapusher envvars record
record
$ docker-compose –f docker-compose.dev.yml up
$ docker exec -it solr bin/solr create -c record
$ docker exec -it ckan-dev paster --plugin=ckanext-record init -c /srv/app/production.ini
CKAN
1. CKAN
2.
š.env
3.
$ docker exec -it ckan-dev paster --plugin=ckan create -t ckanext ckanext-hello_world
$ docker cp ckan-dev:/srv/app/ckanext-seminar ~/docker-bodik/ckanext/
CKAN__PLUGINS=image_view text_view recline_view datastore datapusher envvars hello_world
Hello, world
1. /hello_world/ckanext/seminar/templates home
2. home index.html
3. CKAN index.html
š https://github.com/ckan/ckan/blob/master/ckan/templates/home/index.html
4. index
5. CKAN
$ docker-compose -f docker-compose.dev.yml restart ckan-dev

More Related Content

PDF
Open Policy Agent
PPTX
NGSIv1 を知っている開発者向けの NGSIv2 の概要 (Orion 1.14.0対応)
PDF
Black Belt Online Seminar AWS Amazon S3
PPTX
Airflow를 이용한 데이터 Workflow 관리
PPTX
Intro to the Alfresco Public API
PDF
AWSのインフラはプログラミングコードで構築!AWS Cloud Development Kit 入門
PDF
높은 가용성과 성능 향상을 위한 ElastiCache 활용 팁 - 임근택, SendBird :: AWS Summit Seoul 2019
PPTX
IBM API Connect Deployment `Good Practices - IBM Think 2018
Open Policy Agent
NGSIv1 を知っている開発者向けの NGSIv2 の概要 (Orion 1.14.0対応)
Black Belt Online Seminar AWS Amazon S3
Airflow를 이용한 데이터 Workflow 관리
Intro to the Alfresco Public API
AWSのインフラはプログラミングコードで構築!AWS Cloud Development Kit 入門
높은 가용성과 성능 향상을 위한 ElastiCache 활용 팁 - 임근택, SendBird :: AWS Summit Seoul 2019
IBM API Connect Deployment `Good Practices - IBM Think 2018

What's hot (20)

PPTX
Designing and building Mule applications
PDF
20190522 AWS Black Belt Online Seminar AWS Step Functions
PDF
MySQL operator for_kubernetes
PDF
20200714 AWS Black Belt Online Seminar Amazon Neptune
PDF
20190226 AWS Black Belt Online Seminar Amazon WorkSpaces
PDF
AWS Kubernetes 서비스 자세히 살펴보기 (정영준 & 이창수, AWS 솔루션즈 아키텍트) :: AWS DevDay2018
PDF
API Trends & Use Cases
PDF
쿠알못이 Amazon EKS로 안정적인 서비스 운영하기 - 최용호(넥슨코리아) :: AWS Community Day 2020
PDF
20191002 AWS Black Belt Online Seminar Amazon EC2 Auto Scaling and AWS Auto S...
PDF
Lambda@Edge를통한멀티리전기반글로벌트래픽길들이기::이상현::AWS Summit Seoul 2018
PPTX
API Security : Patterns and Practices
ODP
Kong API Gateway
PDF
NGINX Back to Basics: Ingress Controller (Japanese Webinar)
PDF
Amazon Simple Workflow Service (SWF)
PDF
AWS Transit Gateway를 통한 Multi-VPC 아키텍처 패턴 - 강동환 솔루션즈 아키텍트, AWS :: AWS Summit ...
PDF
Making the big data ecosystem work together with python apache arrow, spark,...
PDF
AWS Black Belt Online Seminar 2017 Amazon Pinpoint で始めるモバイルアプリのグロースハック
PDF
20명 규모의 팀에서 Vault 사용하기
PDF
20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要
PDF
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
Designing and building Mule applications
20190522 AWS Black Belt Online Seminar AWS Step Functions
MySQL operator for_kubernetes
20200714 AWS Black Belt Online Seminar Amazon Neptune
20190226 AWS Black Belt Online Seminar Amazon WorkSpaces
AWS Kubernetes 서비스 자세히 살펴보기 (정영준 & 이창수, AWS 솔루션즈 아키텍트) :: AWS DevDay2018
API Trends & Use Cases
쿠알못이 Amazon EKS로 안정적인 서비스 운영하기 - 최용호(넥슨코리아) :: AWS Community Day 2020
20191002 AWS Black Belt Online Seminar Amazon EC2 Auto Scaling and AWS Auto S...
Lambda@Edge를통한멀티리전기반글로벌트래픽길들이기::이상현::AWS Summit Seoul 2018
API Security : Patterns and Practices
Kong API Gateway
NGINX Back to Basics: Ingress Controller (Japanese Webinar)
Amazon Simple Workflow Service (SWF)
AWS Transit Gateway를 통한 Multi-VPC 아키텍처 패턴 - 강동환 솔루션즈 아키텍트, AWS :: AWS Summit ...
Making the big data ecosystem work together with python apache arrow, spark,...
AWS Black Belt Online Seminar 2017 Amazon Pinpoint で始めるモバイルアプリのグロースハック
20명 규모의 팀에서 Vault 사용하기
20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
Ad

Similar to DockerでCKANを動かそう (20)

PDF
Dockerを利用したローカル環境から本番環境までの構築設計
PDF
時代在變 Docker 要會:台北 Docker 一日入門篇
PPTX
Real World Experience of Running Docker in Development and Production
PDF
手把手帶你學Docker 03042017
PDF
DevOPS training - Day 2/2
PPTX
Docker Workshop
PPTX
From Docker to Production - ZendCon 2016
PDF
手把手帶你學 Docker 入門篇
PDF
Docker workshop 0507 Taichung
PDF
Introduction of Docker and Docker Compose
PPTX
Docker for developers z java
PDF
Docker for developers on mac and windows
PDF
Docker in everyday development
PPTX
Docker for the new Era: Introducing Docker,its components and tools
PPTX
Docker Compose: Docker Configuration for the Real World
PDF
Adventures in docker compose
PDF
Docker & FieldAware
PDF
Docker, the Future of DevOps
PDF
Introduction to Docker
PDF
Docker: A New Way to Turbocharging Your Apps Development
Dockerを利用したローカル環境から本番環境までの構築設計
時代在變 Docker 要會:台北 Docker 一日入門篇
Real World Experience of Running Docker in Development and Production
手把手帶你學Docker 03042017
DevOPS training - Day 2/2
Docker Workshop
From Docker to Production - ZendCon 2016
手把手帶你學 Docker 入門篇
Docker workshop 0507 Taichung
Introduction of Docker and Docker Compose
Docker for developers z java
Docker for developers on mac and windows
Docker in everyday development
Docker for the new Era: Introducing Docker,its components and tools
Docker Compose: Docker Configuration for the Real World
Adventures in docker compose
Docker & FieldAware
Docker, the Future of DevOps
Introduction to Docker
Docker: A New Way to Turbocharging Your Apps Development
Ad

More from Takayuki Goto (7)

PDF
ros2_cmd_api : ROS2コマンド機能のAPIを提供するROS2パッケージ.pdf
PDF
OculusのPassthrough APIを使ってみた
PDF
WindowsではじめるROSプログラミング
PDF
オープンデータを使ったモバイルアプリ開発(応用編)
PDF
オープンデータを使ったモバイルアプリ開発(入門編)
PDF
オープンデータを使った モバイルアプリ開発入門
PDF
Expoによるモバイルアプリ開発入門
ros2_cmd_api : ROS2コマンド機能のAPIを提供するROS2パッケージ.pdf
OculusのPassthrough APIを使ってみた
WindowsではじめるROSプログラミング
オープンデータを使ったモバイルアプリ開発(応用編)
オープンデータを使ったモバイルアプリ開発(入門編)
オープンデータを使った モバイルアプリ開発入門
Expoによるモバイルアプリ開発入門

Recently uploaded (20)

PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
PPT
Mechanical Engineering MATERIALS Selection
PPT
Project quality management in manufacturing
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
web development for engineering and engineering
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Digital Logic Computer Design lecture notes
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Fluid Mechanics, Module 3: Basics of Fluid Mechanics
PPTX
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
Structs to JSON How Go Powers REST APIs.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Operating System & Kernel Study Guide-1 - converted.pdf
Arduino robotics embedded978-1-4302-3184-4.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
UNIT-1 - COAL BASED THERMAL POWER PLANTS
bas. eng. economics group 4 presentation 1.pptx
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
Mechanical Engineering MATERIALS Selection
Project quality management in manufacturing
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
additive manufacturing of ss316l using mig welding
web development for engineering and engineering
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Digital Logic Computer Design lecture notes
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
CH1 Production IntroductoryConcepts.pptx
Fluid Mechanics, Module 3: Basics of Fluid Mechanics
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx

DockerでCKANを動かそう