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
gstafford@gstafford-X555LA:~/NetBeansProjects/tw-cn-ip-build-deploy$ bash 1-machine-create.sh | |
executing: /usr/bin/VBoxManage | |
STDOUT: Oracle VM VirtualBox Command Line Management Interface Version 5.0.0 | |
(C) 2005-2015 Oracle Corporation | |
All rights reserved. | |
Usage: | |
VBoxManage [<general option>] <command> | |
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
gstafford@gstafford-X555LA:~/NetBeansProjects/tw-cn-ip-build-deploy$ bash 1-machine-create.sh | |
driver_flags | |
swarm_token | |
swarm_flags | |
executing: /usr/bin/VBoxManage | |
STDOUT: Oracle VM VirtualBox Command Line Management Interface Version 5.0.0 | |
(C) 2005-2015 Oracle Corporation | |
All rights reserved. | |
Usage: |
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
gstafford@gstafford-X555LA:$ VBoxManage list hostonlyifs | |
Name: vboxnet2 | |
GUID: 786f6276-656e-4274-8000-0a0027000002 | |
DHCP: Disabled | |
IPAddress: 192.168.35.1 | |
NetworkMask: 255.255.255.0 | |
IPV6Address: | |
IPV6NetworkMaskPrefixLength: 0 | |
HardwareAddress: 0a:00:27:00:00:02 | |
MediumType: Ethernet |
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
gstafford@gstafford-X555LA:$ VBoxManage list dhcpservers | |
NetworkName: HostInterfaceNetworking-vboxnet0 | |
IP: 192.168.56.100 | |
NetworkMask: 255.255.255.0 | |
lowerIPAddress: 192.168.56.101 | |
upperIPAddress: 192.168.56.254 | |
Enabled: Yes | |
NetworkName: HostInterfaceNetworking-vboxnet3 | |
IP: 192.168.99.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
gstafford@gstafford-X555LA:~/NetBeansProjects/spring-music-docker$ docker info | |
Containers: 16 | |
Images: 15 | |
Role: primary | |
Strategy: spread | |
Filters: affinity, health, constraint, port, dependency | |
Nodes: 5 | |
swarm-master: 192.168.99.100:2376 | |
└ Containers: 4 | |
└ Reserved CPUs: 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
[gstafford@devops-server-2 spring-music-docker]$ cat /etc/*release* | |
Fedora release 22 (Twenty Two) | |
NAME=Fedora | |
VERSION="22 (Twenty Two)" | |
ID=fedora | |
VERSION_ID=22 | |
PRETTY_NAME="Fedora 22 (Twenty Two)" | |
ANSI_COLOR="0;34" | |
CPE_NAME="cpe:/o:fedoraproject:fedora:22" | |
HOME_URL="https://fedoraproject.org/" |
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
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home | |
export ANT_HOME=/opt/apache/apache-ant-1.9.6 | |
export MAVEN_HOME=/opt/apache/apache-maven-3.3.3 | |
export GRADLE_HOME=/opt/gradle-2.7 | |
export PATH=${JAVA_HOME}/bin:${ANT_HOME}:${MAVEN_HOME}/bin:${GRADLE_HOME}/bin:$PATH |
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
#!/bin/sh | |
# Clean-up / start-up script for Docker/Fig and MEAN app | |
# Gary A. Stafford | |
# https://github.com/garystafford | |
# remove all exited containers | |
echo "Removing all 'Exited' containers..." | |
docker rm -f $(docker ps --filter 'status=Exited' -a) > /dev/null 2>&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
#!/bin/bash | |
# Backup git server on devops-server-01 | |
cd "/run/media/gstafford/thumb_drive/git_server_bu/" | |
rm -rf *.git | |
git clone --mirror ~/GitServer/<repo_1>.git/ | |
git clone --mirror ~/GitServer/<repo_2>.git/ | |
git clone --mirror ~/GitServer/<repo_3>.git/ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> | |
<bean id="vehicle1" class="com.blogpost.maven.maven_spring.Vehicle"> | |
<property name="make" value="Mercedes-Benz" /> | |
<property name="model" value="ML550" /> |