$ docker run -it --name node1 ubuntu:14.04 /bin/bash
$ docker run -it --name node2 ubuntu:14.04 /bin/bash
Then in each one, I run:
$ apt-get update && apt-get install iperf
#!/bin/bash | |
SERVICE_NAME="mattermostdocker_app" # Change this with the service name you're using for the Mattermost service | |
SHORT_SERVICE_NAME="app" | |
VERBOSE_SERVICE_NAME="Mattermost" | |
DIRECTORY="/root/projects/mattermost-docker" # Change this with the path of your mattermost-docker project directory | |
PREVIOUS_CONTAINER=$(docker ps --format "table {{.ID}} {{.Names}} {{.CreatedAt}}" --filter "name=$SERVICE_NAME" | grep -v "ID" | awk -F " " '{print $1}') | |
cd $DIRECTORY |
#!/bin/bash | |
# Install dependencies and tools | |
apt-get update | |
apt-get install software-properties-common -y | |
add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | |
apt-get update | |
apt-get install oracle-java8-installer vim curl -y | |
#!/bin/bash | |
# Install dependencies and tools | |
apt-get update | |
apt-get install software-properties-common -y | |
add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | |
apt-get update | |
apt-get install oracle-java8-installer vim curl -y | |