Skip to content

Instantly share code, notes, and snippets.

@ajeetraina
Last active May 1, 2017 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajeetraina/bcb7c45b0f9465c9e98b68a3a55f9b8f to your computer and use it in GitHub Desktop.
Save ajeetraina/bcb7c45b0f9465c9e98b68a3a55f9b8f to your computer and use it in GitHub Desktop.
Script to setup LInuxKit OS on Ubuntu 16.04 OS
#!/bin/sh
set -e
#
#
#Verify if Docker is installed or not
url="https://get.docker.com/"
docker version
if [ $? -ne 0 ]; then
echo "Docker is not installed"
curl -sSL $url | sh
else
echo "docker is already installed and running"
fi
# Installing Pre-requisite Packages
sudo apt install make golang git -y
#Pulling LinuxKit Repository
git clone https://github.com/linuxkit/linuxkit
# Execute make command
cd linuxkit
sudo make
#Copy moby and linuxkit into PATH variable
sudo cp bin/* /usr/local/bin
# Use Moby to build the LinuxkitOS
sudo moby build linuxkit.yml
# Use Linuxkit to run the LinuxKit OS
sudo linuxkit run linuxkit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment