Skip to content

Instantly share code, notes, and snippets.

@jay-johnson
jay-johnson / Connect the XD Shell to XD Admin running in Docker.md
Last active Nov 27, 2015
Connect the XD Shell to XD Admin running in Docker
View Connect the XD Shell to XD Admin running in Docker.md
spring-xd-1.3.0.RELEASE$ ./shell/bin/xd-shell
 _____                           __   _______
/  ___|          (-)             \ \ / /  _  \
\ `--. _ __  _ __ _ _ __   __ _   \ V /| | | |
 `--. \ '_ \| '__| | '_ \ / _` |  / ^ \| | | |
/\__/ / |_) | |  | | | | | (_| | / / \ \ |/ /
\____/| .__/|_|  |_|_| |_|\__, | \/   \/___/
      | |                  __/ |
      |_|                 |___/
@jay-johnson
jay-johnson / Spring XD 1.3 Shell Dockerfile
Created Nov 28, 2015
Spring XD 1.3 Shell Dockerfile
View Spring XD 1.3 Shell Dockerfile
FROM jayjohnson/springxd-base
MAINTAINER Jay Johnson jay.p.h.johnson@gmail.com
CMD ["shell/bin/xd-shell"]
@jay-johnson
jay-johnson / Travis Build Environment Variables for Docker Hub Integration
Created Nov 28, 2015
Travis Build Environment Variables for Docker Hub Integration
View Travis Build Environment Variables for Docker Hub Integration
DOCKER_EMAIL Your Docker Hub Email
DOCKER_USERNAME Your Docker Hub User Name
DOCKER_PASSWORD Your Docker Hub Password
@jay-johnson
jay-johnson / Find the Docker Container's IP Address
Created Nov 28, 2015
Find the Docker Container's IP Address
View Find the Docker Container's IP Address
spring-xd-1.3.0.RELEASE$ docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container1
172.17.0.9
spring-xd-1.3.0.RELEASE$
@jay-johnson
jay-johnson / Mounting a new Volume for increasing var hard drive space.md
Last active Jan 17, 2018
Mounting a new Volume for increasing /var hard drive space
View Mounting a new Volume for increasing var hard drive space.md

Format the Volume

driver@localhost:/var/lib$ sudo fdisk -l

Disk /dev/sda: 31.5 GB, 31515377664 bytes
255 heads, 63 sectors/track, 3831 cylinders, total 61553472 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
@jay-johnson
jay-johnson / Starting the Docker Schema Prototyper Composition - MySQL + PhpMyAdmin + SQLAlchemy.md
Last active Apr 11, 2016
Starting the Docker Schema Prototyper Composition - MySQL + PhpMyAdmin + SQLAlchemy
View Starting the Docker Schema Prototyper Composition - MySQL + PhpMyAdmin + SQLAlchemy.md
$ ./start_composition.sh 
Starting with Docker Compose
Pulling db (jayjohnson/schemaprototyping:latest)...
latest: Pulling from jayjohnson/schemaprototyping
a3ed95caeb02: Pull complete
5989106db7fb: Pull complete
75e2f0ff048c: Pull complete
98d3fe0e5a2b: Pull complete
cb2b06526018: Pull complete
View Check the composition is running.md
$ docker ps -a
CONTAINER ID        IMAGE                          COMMAND                  CREATED              STATUS              PORTS                                        NAMES
74b3b71e19e0        jayjohnson/schemaprototyping   "/root/start_containe"   About a minute ago   Up 27 seconds       0.0.0.0:81->80/tcp, 0.0.0.0:3307->3306/tcp   schemaprototyping
$
@jay-johnson
jay-johnson / Verify the Container's Database using the MySQL CLI.md
Created Apr 11, 2016
Verify the Container's Database using the MySQL CLI
View Verify the Container's Database using the MySQL CLI.md
$ ./verify_mysql_user.sh
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.6.29 MySQL Community Server (GPL)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
@jay-johnson
jay-johnson / Verify MySQL Connectivity from inside the Container.md
Created Apr 11, 2016
Verify MySQL Connectivity from inside the Container
View Verify MySQL Connectivity from inside the Container.md
$ ./ssh.sh
SSH-ing into Docker image(schemaprototyping)
[root@mysql1 db-loaders]# /opt/db-loaders/bin/verify_mysql_user.sh
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 25
Server version: 5.6.29 MySQL Community Server (GPL)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
@jay-johnson
jay-johnson / Changing the Container's Configuration by editing the Compose file.md
Created Apr 11, 2016
Changing the Container's Configuration by editing the Compose file
View Changing the Container's Configuration by editing the Compose file.md
$ cat docker-compose.yml | grep "=" | sort
- DATADIR=/var/lib/mysql
- DBADDRESS=127.0.0.1
- DBHOST=127.0.0.1
- DBINITIALIZER=/opt/db-loaders/schema/initialize_db.py
- DBNAME=stocks
- DBPASS=dbadmin123
- DBPORT=3306
- DBSCHEMA=/opt/db-loaders/schema/db_schema.py
You can’t perform that action at this time.