Install Cloud Torrent on Docker

Setup Cloud Torrent Using Docker Centos Ubunthu Debian



Make Sure you have installed Docker On your Machine..... if you dont know please click below link

Installation Docker On Ubunthu


Step 1 : Create One Folder

                       Command :  mkdir foldername

Step 2: Enter on that Folder

                      Command : cd foldername


Step 3: then open text file in name of  "Dockerfile"  (D must be Uppercase)

                     Command : vi Dockerfile


Step 4 : Paste this below content


FROM alpine
MAINTAINER dev@jpillora.com

#configure go path
ENV GOPATH /root/go
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin

#package
ENV PACKAGE github.com/jpillora/cloud-torrent
ENV PACKAGE_DIR $GOPATH/src/$PACKAGE

#install go and godep, then compile cloud-torrent using godep, then wipe build tools
RUN apk update && \
    apk add git go gzip && \
    go get github.com/tools/godep && \
    mkdir -p $PACKAGE_DIR && \
    git clone https://$PACKAGE.git $PACKAGE_DIR && \
    cd $PACKAGE_DIR && \
    godep go build -ldflags "-X main.VERSION=$(git describe --abbrev=0 --tags)" -o /usr/local/bin/cloud-torrent && \
    cd /tmp && \
    rm -rf $GOPATH && \
    apk del git go gzip && \
    echo "Installed $PACKAGE"

#run package
ENTRYPOINT ["cloud-torrent"]




Step 5 :  Test on your browser http://your-ip:3000
it will came like this  screenshot



Comments

Popular posts from this blog

Load Balancinng Nginx with two vps server

Install Wordpress Using Docker Yml file