読者です 読者をやめる 読者になる 読者になる

AKAI TSUKI

System development or Technical something

Let's check OpenShift-ansible

get openshift-ansible-3.4.70-1.tar.gz [root@centos01 ~]# wget https://github.com/openshift/openshift-ansible/archive/openshift-ansible-3.4.70-1.tar.gz

setup bridge device on CentOS 7, by use OVS

add bridge device by ovs-vsctl [root@kvmtest ~]# ovs-vsctl add-br br0 [root@kvmtest ~]# ovs-vsctl add-port br0 enp0s3 ifcfgenp0s3 interface configuration file [root@kvmtest ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3 DEVICE=enp0s3 …

Let's check config.yml for installation using ansible.

when we install OpenShift, we will use config.yml file . https://docs.openshift.org/latest/install_config/install/advanced_install.html#running-the-advanced-installation ~/openshift-ansible/playbooks/byo/config.yml open openshift-ansible/p…

Let's check Advanced Installation of OpenShift origin.

check below page. https://docs.openshift.org/latest/install_config/install/advanced_install.html#single-master create hosts file Host Name Infrastructure Component to Install centos01 Master and node centos01 etcd centos02 Node centos03 No…

install Open vSwitch on CentOS 7

Add rpm repository I get rpm from below page to add rdo repository. I perform this command [root@kvmtest ~]# yum localinstall https://repos.fedorapeople.org/repos/openstack/openstack-ocata/rdo-release-ocata-2.noarch.rpm Install OVS [root@k…

Upgrade Docker from 1.13.0 to 1.13.1 on CentOS 7

Command List $ docker version $ yum makecache fast $ sudo yum -y upgrade docker-engine $ docker version Detail upgrade docker [vagrant@localhost ~]$ docker version Client: Version: 1.13.0 API version: 1.25 Go version: go1.7.3 Git commit: 4…

Create a Vagrant Base Box from a VM.

Command list >vagrant status >vagrant halt >vagrant status >vagrant package --output centos7test.box >vagrant box list >vagrant box add centos7test centos7test.box >vagrant box list Detail from vagrant help e:\VM\centos01>vagrant package -…

install bash_kernel for jupyter notebook.

After installation of jupyter notebook, I install bash kernel to jupyter notebook. GitHub - takluyver/bash_kernel: A bash kernel for IPython Command list install bash_kernel # pip3.5 install bash_kernel # python3 -m bash_kernel.install sta…

commit container and re-run on docker.

After I commited container to image, I run container by saved image again and add option to publish the container’s port(8888). Command list stop container $ docker ps $ docker container stop work $ docker ps commit container to image $ do…

Install Jupyter Notebook by pip3.5 in CentOS 7 and python 3.5

Commadn list install jupyter notebook # find / -name "pip*" # pip3.5 -V # pip3.5 install jupyter Detail [root@519dd98187dd /]# find / -name "pip*" /usr/bin/pip3.5 /usr/lib/python3.5/site-packages/pip /usr/lib/python3.5/site-packages/pip-9.…

Install python 3.5 in CentOS 7(docker container)

Command List install and confirm python3.5 # yum install -y python35u python35u-libs python35u-devel python35u-pip # find / -name python3.5 # python3.5 -V create symbolic link. # ln -s /usr/bin/python3.5 /usr/bin/python3 # ls -l /usr/bin/p…

Add IUS Community Project to Yum Repository in CentOS 7

Command List add IUS Community Project # yum install -y https://centos7.iuscommunity.org/ius-release.rpm yum search python35 (or something) # yum search python3 Detail [root@519dd98187dd /]# yum install -y https://centos7.iuscommunity.org/…

Install iproute in docker container (centos7).

I did not use ip/ss commands in default centos7 container. So, I install iproute package to container. Command list install iproute # yum install iproute Detail [root@519dd98187dd /]# yum install iproute Loaded plugins: fastestmirror, ovl …

install docker-compose 1.10.1 on CentOS 7

install I failed to get docker-compose as follows: [vagrant@localhost ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.10.1/dock er-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose -bash: /usr/local/bin/d…

install docker 1.13 on CentOS 7

I try to install docker 1.13 on CentOS 7. (Reference) https://docs.docker.com/engine/installation/linux/centos/ add repo to yum install hello world setting add repo to yum [vagrant@localhost ~]$ sudo yum install -y yum-utils Loaded plugins…

Use docker container for ssh test.

https://hub.docker.com/r/jdeathe/centos-ssh/ [root@localhost ~]# docker run -d \ > --name ssh.pool-1.1.1 \ > -p 2020:22 \ > jdeathe/centos-ssh:centos-7 Unable to find image 'jdeathe/centos-ssh:centos-7' locally centos-7: Pulling from jdeat…

What is dularion/streama?

etc

It's like Netflix, but self-hosted! http://dularion.github.io/streama/ github.com

confirm package(apt) version in Ubuntu

I confirmed version of zfs(zfsutils-linux) and lxd. ubu@ubuntu16:~$ apt-cache policy zfsutils-linux zfsutils-linux: Installed: 0.6.5.6-0ubuntu15 Candidate: 0.6.5.6-0ubuntu15 Version table: *** 0.6.5.6-0ubuntu15 500 500 http://jp.archive.ub…

Install lxd in Ubuntu

I executed the command "sudo apt install zfs lxd" in Ubuntu 16.04. But... lxd is already the newest version (2.0.8-0ubuntu1~ubuntu16.04.2). ubu@ubuntu16:~$ sudo apt install zfs lxd [sudo] password for ubu: Reading package lists... Done Bui…

apt update in ubuntu

I executed the command "sudo apt update". ubu@ubuntu16:~$ sudo apt update [sudo] password for ubu: Hit:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease Get:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:3…

network configuration for ubuntu

I use ubuntu 16.04. I configured interfaces file for static ip as follows: ubu@ubuntu16:~$ cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, …

start postgres

try to start postgres by docker. [root@localhost ~]# docker pull postgres Using default tag: latest latest: Pulling from library/postgres 75a822cd7888: Pull complete 68f8c57d4ec8: Pull complete 1ee19503c02a: Pull complete ea8f451ca276: Pul…

install ansible on docker container.

I installed ansible on docker container. [root@localhost ~]# docker run -d --name ansible centos:7 tail -f /dev/null 89fc39c2cbb0de2fe9f520ccfbb7cd43fa77ed62632d7479ab3e9779b73de258 [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND …

hello world by springboot

I uploaded hello world sorce code to github. github.com After I executed app, I use curl command as follows: # curl http://192.168.0.6:8080/hello {"message":"Hello world"}

start Java and Eclipse

新しく環境を用意してみた。 1. download java jdk-8u112-windows-x64.exe http://www.oracle.com/technetwork/jp/java/javase/downloads/index.html http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 2. download ecl…

try to use filebeat.

ログファイルが出力されたら、filebeatを実行したコンソールに出力されるまで試してみました。 設定 # cat filebeat.yml | sed '/^ *#/d' | sed '/^$/d' filebeat.prospectors: - input_type: log paths: - /tmp/log/*.log output.console: pretty: false ロ…

docker run with '-d' option

[root@localhost ~]# docker run -d --name ansible centos:7 tail -f /dev/null 97f8213ed1883270d11067a24bc6f718e77c5918005d58206d6b569fc02e8e58 [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 97f8213ed188 c…

docker pull image

[root@localhost ~]# docker pull centos Using default tag: latest latest: Pulling from library/centos 45a2e645736c: Pull complete Digest: sha256:c577af3197aacedf79c5a204cd7f493c8e07ffbce7f88f7600bf19c688c38799 Status: Downloaded newer image…

start docker (version 1.12.5)

[root@localhost ~]# systemctl enable docker.service Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service. [root@localhost ~]# systemctl start docker [root@localhost ~]# d…

install docker in CentOS 7

[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) [root@localhost ~]# getenforce Enforcing [root@localhost ~]# [root@localhost ~]# yum install docker-engine Loaded plugins: fastestmirror Loading mirror speeds…

remove '#' and empty lines

設定ファイルを確認する際に、コメント行などを表示しないようにする。 コメント行削除する場合には、sedで、 $ cat filename | sed -e '/^#.*$/d' 空行も削除するなら $ sed -e 's/#.*$//' -e '/^$/d' さらに以下を行うと、空行が2回続く場合に1行にまとめ…

After Installation, Verification StackStorm status.

Verify なんか、いろいろFailedとか出てます。 OKなのかどうなのか微妙だ。。。 [root@stackstorm ~]# st2 --version st2 2.0.0 [root@stackstorm ~]# st2 action list --pack=core +-------------------+------+-----------------------------------+ | ref…

Start Services of StackStorm.(2)

Start services [root@stackstorm ~]# st2ctl start Failed to start st2chatops.service: Unit st2chatops.service failed to load: No such file or directory. ##### st2 components status ##### st2actionrunner PID: 5308 st2actionrunner PID: 5310 s…

Start Services of StackStorm.

Configure SSH and SUDO [root@stackstorm ~]# mkdir -p /home/stanley/.ssh [root@stackstorm ~]# chmod 0700 /home/stanley/.ssh [root@stackstorm ~]# ssh-keygen -f /home/stanley/.ssh/stanley_rsa -P "" Generating public/private rsa key pair. Your…

install StackStorm. (Setup Mistral Database)

Setup Mistral Database [root@stackstorm ~]# cat << EHD | sudo -u postgres psql > CREATE ROLE mistral WITH CREATEDB LOGIN ENCRYPTED PASSWORD 'StackStorm'; > CREATE DATABASE mistral OWNER mistral; > EHD could not change directory to "/root" …

install StackStorm.

RHEL 7 / CentOS 7 — StackStorm 2.0.0 documentation akai-tsuki.hatenablog.com Setup repositories [root@stackstorm ~]# curl -s https://packagecloud.io/install/repositories/StackStorm/stable/script.rpm.sh | bash Detected operating system as c…

install StackStorm (MongoDB, RabbitMQ and PostgreSQL.)

Precondition [root@stackstorm ~]# getenforce Disabled [root@stackstorm ~]# iptables -nL Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy AC…

photos

きれいな写真があります。 skuawk.com

docker service create option(endopoint-mode/publish)

option pattern --endpoint-mode -p(--publish) --network Network ip vip -p 80:80 (none) ingress,docker_gwbridge ingress->全ノードでコンテナ固有のIPdocker_gwbridge->各ノード毎に、コンテナ固有のIP vip (none) (none) bridge 各ノード毎に、コンテ…

service create option "--endpoint-mode dnsrr" with overlay network

docker network [root@docker01 ~]# docker network create --driver overlay overlay1 docker service create [root@docker01 ~]# docker service create --endpoint-mode dnsrr --name test --network overlay1 --replicas 1 nginx [root@docker01 ~]# doc…

use docker inspect command

"docker inspect -f" docker inpsect コマンドのフォーマット指定について確認してみました。 途中省略していますが、以下のように表示されます。 # docker inspect af8068 [ { "Id": "af80684d6eee152466c11f595b930e70bc523c8404126d034742cd00e677b469", …

docker network inspect

formatの指定(例) IPを確認するのにフォーマットオプションを指定してみた。 # docker network inspect -f '{{range .Containers}}{{print .Name}}{{print " "}}{{println .IPv4Address}}{{end}}' ingress demo.4.1wiax61a7q6m933jqgi9wsraj 10.255.0.8/16…

service create option "--endpoint-mode dnsrr" with bridge network

docker service create [root@docker01 ~]# docker service create --endpoint-mode dnsrr --name demo --replicas 1 nginx [root@docker01 ~]# docker service scale demo=3 [root@docker01 ~]# docker service create --endpoint-mode dnsrr --name client…

service create option "--endpoint-mode dnsrr" and Publish a container's port

docker service create エラーになりました。 --endpoint-mode dnsrrを指定し、さらに外からのアクセス用のポートを指定することはできないようです。 [root@docker01 ~]# docker service create --endpoint-mode dnsrr --name demo-dnsrr --replicas 4 -p 8…

service create option "--endpoint-mode vip"

--endpoint-mode vip を指定しています。 外部からnginxにアクセスするために80番ポートを指定します。 service create [root@docker01 ~]# docker service create --endpoint-mode vip --name demo-vip --replicas 1 -p 80:80 nginx bnbd8ngo3nf8yh6777gt7w…

Nginx install CentOS 7(Docker Container)

お試しインストールということで、コンテナ環境を使っています。 (参考) mainline version http://nginx.org/en/linux_packages.html#mainline write about stable version install https://www.nginx.com/resources/wiki/start/topics/tutorials/install/…

Use data volume container in Docker

データコンテナを起動。 # docker create -v /data --name data-container busybox 作成したコンテナのボリュームにテキストファイルを配置。 [root@docker01 ~]# docker run -it --volumes-from data-container centos bash [root@84a6154b093f /]# echo "t…

When I create Volume in Docker, I supply a name.

最初の状態 [root@docker01 ~]# docker volume ls DRIVER VOLUME NAME [root@docker01 ~] ボリュームに名前を指定して、コンテナを起動 [root@docker01 ~]# docker run -it --rm -v testvol:/data1 -v /data2 centos bash [root@7a90d1063265 /] ボリューム…

Configuration Logstash(filter:grok) 2

設定ファイルの/etc/logstash/conf.d/nginx-access_log.confにて filter設定を試してみました。 pattern 1 設定内容 filter { grok { match => { "message" => "%{COMBINEDAPACHELOG}" } } } Logstashで出力された内容 { "message":"127.0.0.1 - - [02/Jul/2…

Use docker for temporary work

何か作業、操作のテストなどを行いたい場合に利用するコンテナの起動です。 とりあえずポート80を利用できるようにしておきます。 # docker run -it --rm -p 80 centosただし、これだとexitした際に、コンテナは終了します。 以下のようにすると起動し続けま…