Last active
May 1, 2017 08:29
-
-
Save ajeetraina/bcb7c45b0f9465c9e98b68a3a55f9b8f to your computer and use it in GitHub Desktop.
Script to setup LInuxKit OS on Ubuntu 16.04 OS
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 | |
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